Question: 1. Write a C++ program that evaluates the following function based on x value that will be given by the user. sin(xx) x (x

1. Write a C++ program that evaluates the following function based on x value that will be given by the user.

1. Write a C++ program that evaluates the following function based on x value that will be given by the user. sin(xx) x (x +ex(x+1) x < -1 -nxn x>n f(x) = 0 = { 2. Write a C++ program that prompts the user to input the x-y coordinate of a point in the Cartesian plane. The program should then output a message indicating whether the point is the origin, is located on the x- (or y-) axis, or appears in a particular quadrant. For example: (0,0) is the origin (4,0) is on the x-axis (0,-3) is on the y-axis (-2,3) is in the second quadrant 3. Write program to perform simple banking operations. The user at first will be given a starting balance. Then, he will be asked to select one of the following operations: deposit, withdraw or balance inquiry. The account should not allow overdrafts (i.e. Withdraw an amount greater than the current balance) and should prevent user from entering negative values for withdraw and deposit. The program should display the final balance after it performs any deposit or withdraw operation requested by the user. 4. Write a C++ program that calculates and prints the bill for a car rental company. The company charges a daily fee for each day a car is rented depending on the type of the car. Moreover, an additional fee is charged if the car travels more than 400 KM. This fee also varies depending on the type of the car. Type of car Mercedes Toyota Cadillac Jaguar Daily fee 150 60 120 130 Fee for additional KM 15 7 10 Your program should ask the user to enter The type of the car (M or m for Mercedes, T or t for Toyota...) How many days was the car rented? How many KM did the car travel? 5. Write a program that calculates and displays a person's body mass index (BMI). The BMI is often used to determine whether a person is overweight or underweight for his or her height. A person's BMI is calculated with the following formula:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here are the C programs for each of the specified tasks 1 Evaluate Function cpp include include int main double x Get user input for x stdcout Enter t... View full answer

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 Computer Network Questions!