Discover how IDNLearn.com can help you find the answers you need quickly and easily. Whether your question is simple or complex, our community is here to provide detailed and trustworthy answers quickly and effectively.
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 :
Thank you for joining our conversation. Don't hesitate to return anytime to find answers to your questions. Let's continue sharing knowledge and experiences! Discover insightful answers at IDNLearn.com. We appreciate your visit and look forward to assisting you again.