Answered step by step
Verified Expert Solution
Link Copied!

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 ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Programming Logic & Design Comprehensive

Authors: Joyce Farrell

9th edition

978-1337102070

More Books

Students also viewed these Programming questions

Question

Prove that if Σ an is absolutely convergent, then a. an

Answered: 1 week ago