logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

Write a program that will illustrate the use of a function for computing the square of a number.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Make a program that has a menu like the following: (Design is optional)

All menu option should be put in a function.

***************************************************

* YOURNAME CPE112 Special Exam Menu Programs *

* Press (1) for Square of a Number *

* Press (2) for Salary Computation *

* Press (3) to Exit *

***************************************************

If 1 is pressed, it will do the following:

Write a program that will illustrate the use of a function for computing the square of a number. The first function must be responsible for inputting the number, the second for computation of squares, and the third for displaying the result.

When done, ask user to repeat or go back to main menu.

If 2 is pressed, it will do the following:

Write a program that computes the employee’s payroll of ABC Company. The user is first asked to enter the employee’s name, hourly wages, and number of hours worked for the week. Then

when that is done the employee’s data, which consist of the employee’s name, their gross (wages

* hours), and their Net (gross after a 12% tax rate and 50 pesos insurance fee mandatory to all employees), has to be shown.

Sample Input:

Please Enter Employee’s Name: Juan dela Cruz

Please Enter Employee’s Hourly Wage: 115.75

Please Enter Employee’s Hours Work this Week: 40

Sample Output:

Employee’s Name: Juan dela Cruz Hourly Rate: 115.75

Hour’s Work: 40

Gross Income: 4630.00

Insurance Fee: 50.00

Tax Fee: 555.60

Net Income: 4024.40

When done, ask user to repeat or go back to main menu.

If 3 is pressed, the program will exit.

 

(5/5)
Attachments:

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

579 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

890 Answers

Hire Me
expert
Husnain SaeedComputer science

574 Answers

Hire Me
expert
Atharva PatilComputer science

623 Answers

Hire Me