Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
C CODE include using namespace std class ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started