Discover answers to your most pressing questions at Westonci.ca, the ultimate Q&A platform that connects you with expert solutions. Find reliable answers to your questions from a wide community of knowledgeable experts on our user-friendly Q&A platform. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.

Input processing and Output Chart

For this program, you will calculate the payrate for an organization. You will use the input, processing, and output to code this program. Include comments for each section of the program: declaration, input items, calculate the raise and new pay, end if, display new pay and a comment to end the main functions.

// Declare named constants and variables using the information below.

Rate one (4.5%) , rate two (3.5%), character code, current pay, pay raise and new pay

// Enter Input items. Ask the user for the pay code and the current pay. The user will input this information on the screen.

pay code

current pay

rate 1 (4.5)

rate 2 (3.5%)

Processing

Raise



Output



New pay



Algorithm // calculate raise and new pay

1. enter the pay code and current pay

2. if (the pay code is 1 or 4 or 9)

Calculate the raise by multiplying the current pay by rate 1

Else

Calculate the raise by multiplying the current pay by rate 2

Endif

3. calculate the new pay by adding the raise to the current pay

4. display the new pay


Sagot :

Thanks for stopping by. We strive to provide the best answers for all your questions. See you again soon. We hope you found what you were looking for. Feel free to revisit us for more answers and updated information. Thank you for trusting Westonci.ca. Don't forget to revisit us for more accurate and insightful answers.