Question: Below is the beginning pseudocode for a program that performs computes weekly salary. The program is designed to contain one numeric variable for the annual

  • Below is the beginning pseudocode for a program that performs computes weekly salary. The program is designed to contain one numeric variable for the annual salary and prompt the user for the value of the annual salary. The variable will then be passed to a method named salary(). You will create the logic for the method salary(). You will need to include the method header. The method will compute the weekly salary based on a 52 week year – so the weekly salary will be 1/52 of the annual salary. The method should perform the appropriate computation and display the results. Complete the pseudocode below for the method salary. You may use more or less lines as you choose to create the method. Make sure you follow the instructions given above. (Grading 10 points) Pseudocode: class Salary main () //Declarations num annualSalary output “Please enter the annual salary” input annualSalary salary (annualSalary) ______________________ ______________________ ______________________ ______________________ ______________________ endClass

Step by Step Solution

3.37 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

C CODE include using namespace std class ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!