Question: in C++ Problem 1 (20 pts) Write a program that takes the salary of an employee (EGP) as a decimal and do the following: 1.

in C++ in C++ Problem 1 (20 pts) Write a program that takes the

Problem 1 (20 pts) Write a program that takes the salary of an employee (EGP) as a decimal and do the following: 1. Compute and display the salary after 15% raise 2. Take the raised salary and display it after 2% tax deduction 3. Display the employee's original salary, the new salary, and their difference. 4. Assume the exchange rate USD to EGP is 15.7, display the employee's final salary in USD. Problem 2 (20 pts) Write a program that takes 4 decimal values (x1, x2, yl, y2) and do the following: 1. Compute and display their slope. 2. Compute and display the average of xl and x2. 3. Compute and display the average of yl and y2. Problem 3 (30 pts) Write a program that can do the following: 1. Compute the area of a circle, given the user's input(s). 2. Compute the area of a triangle, given the user's input(s) The program should ask the user to enter an input as a char '1' or 2' to indicate whether he/she wants option 1 or option 2 Problem 4 (30 pts) Given a, b, and c, write a program that solves the quadratic equation. 1. Compute and display the value of R1 as a float 2. Compute and display the value of R2 as a float. and R2= 20 -+-ac R1 = 20 (Hint: To test your solution; choose input values such that a not equal to zero and b - 4ac not negative)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!