Question: 4. Write a program that computes the tax and tip on a restaurant bill. The program should ask the user to enter the charge for
4. Write a program that computes the tax and tip on a restaurant bill. The program should ask the user to enter the charge for the meal. The tax should be 6.75 percent of the meal charge. The tip should be 20 percent of the total after adding the tax. Display the meal charge, tax amount, tip amount, and total bill on the screen.
5. stock commission
Kathryn bought 600 shares of stock at a price of $21.77 per share. She must pay her stock- broker a 2 percent commission for the transaction. Write a program that calculates and displays the following:
The amount paid for the stock alone (without the commission)
The amount of the commission
The total amount paid (for the stock plus the commission)
6.Write a program that plays a word game with the user. The program should ask the user to enter the following:
His or her name
His or her age
The name of a city
The name of a college A profession
A type of animal
A pets name
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
