Create the logic for a program that computes weekly salary


Problem

Create the logic for a program that computes weekly salary. Include two overloaded methods named compute Weekly Salary(). One version accepts an annual salary as a number and calculates weekly salary as 1/52 of the annual amount. The other accepts a number of hours worked per week and an hourly pay rate, and calculates weekly salary as a product of the two. Each method returns the weekly salary to the calling program. The main program prompts the user for the type of calculation to perform; then, based on the user's response, the program prompts for appropriate data, calls the correct method, and displays the result.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Create the logic for a program that computes weekly salary
Reference No:- TGS02648649

Expected delivery within 24 Hours