What is the problem with the following pseudocode? Declare Real pay_amount Display "Your pay for the month is ", pay_amount
Added by Mark W.
Step 1
The pseudocode is intended to display the pay amount for the month. Show more…
Show all steps
Your feedback will help us improve your experience
Rosemary Charnley and 61 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Sample Problem #3 The ABC Manufacturing Company plans to give a YEAR-END BONUS to each of its employees. Write a program that will compute the bonus of an employee by considering the following criteria: - If the employee's monthly salary is less than P10,000.00, the bonus is 25% of the salary; - For employees with salaries greater than or equal to P10,000.00, the bonus is P2,500.00. Determine and display the bonus of an employee. Input: - Monthly salary of the employee Output: - Bonus of the employee
Rosemary C.
Modify the program so the output is: Annual pay is 40000 To solve this sample, replace /* Your solution goes here */ with cout << "Annual pay is ";, then click "Run". #include <iostream> using namespace std; int main() { int wage = 20; /* Your solution goes here */ cout << wage * 40 * 50; cout << endl; return 0; }
Akash M.
In this lab, you will complete a prewritten C++ program that calculates an employee's productivity bonus and prints the employee's name and bonus. Bonuses are calculated based on an employee's productivity score as shown below. A productivity score is calculated by first dividing an employee's transactions dollar value by the number of transactions and then dividing the result by the number of shifts worked. Productivity Score Bonus <= 30 $50 31-69 $75 70-199 $100 >= 200 $200 Instructions: 1. Ensure that the file named EmployeeBonus.cpp is open in the code editor. 2. Variables have been declared for you, and the input statements and output statements have been written. Read them over carefully before proceeding to the next step. 3. Design the logic and write the rest of the program using a nested if statement. 4. Execute the program by clicking the Run button and enter the following as input: - Employee's first name: Kim - Employee's last name: Smith - Number of shifts: 25 - Number of transactions: 75 - Transaction dollar value: 40000.00 Your output should be: - Employee Name: Kim Smith - Employee Bonus: $50.0
Supreeta N.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD