Find the best answers to your questions with the help of IDNLearn.com's knowledgeable users. Join our community to receive prompt and reliable responses to your questions from experienced professionals.

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