Below is the beginning pseudocode for a program that performs computes weekly salary. The program is designed
Fantastic news! We've Found the answer you've been seeking!
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 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
Related Book For
Posted Date: