Question: Answer Q1 and Q2. Assignment Problem(s) O1: Write a program that reads in the values x and y. Your program should compute the expression shown
Answer Q1 and Q2. Assignment Problem(s) O1: Write a program that reads in the values x and y. Your program should compute the expression shown below and assign the result to the variable z. The program should finally print the mean of x, y, and z Note: z=x+4y Sample output Please enter x: 10 Please enter y: 20 The value of z is: 90 The mean of x, y . and z is: 40 The solution: 02: Write a program that asks the user to type the price without tax of one kilogram of tomatoes, the number of kilograms you want to buy and the tax in percent units. The program must calculate the total price including taxes. Sample output Please enter the price vithout tax of one kilogran of tomatoes Please enter the nunber of kilograms:5 Please enter tax in percent units: 3 Total price: 51.5 S.R The solution
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
