Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

you can use the name. Joe Smith for a name. so initials J.S we used putty for a source to remote into a machine. Make

image text in transcribed

you can use the name. Joe Smith for a name. so initials J.S we used putty for a source to remote into a machine.

Make sure to include documentation (comments) about your program that include your name, the date written and a brief description of the program. Submit the source code files (*.c) using the submit button on the assignment link in Blackboard. Program One: Design and write a program called "Program1+yourfirst and last initials (mine would be Program1gf.c) that calculates the total amount of a meal purchased at a restaurant. The program should ask the user to enter the charge for the food and then calculate the amount of a 15 % tip and 7 % sales tax. Display (2 decimal and print $ sign): Tip: $$$.$$ Tax $$$.$$ Total $$$.$$ Program Two: Create a program named "Program2+yourfirst and last initials (mine would be Program2gf.c). This program should ask or prompt the user to enter a U.S. dollar amount (no decimal) and then show how to pay the amount using the smallest number of $20, $10, $5, and $1 bills. Example: Enter a dollar amount: 93 $20 bills: 4 $10 bills: 1 $5 bills: 0 $1 bills: 3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

2. Compare the sales and service departments at Auto World.

Answered: 1 week ago