Question: Course Name / Cod ] . CS 1 1 2 Date: 0 1 2 4 ? 2 0 1 8 Write a program that inputs

Course Name/ Cod].
CS112
Date: 0124?2018
Write a program that inputs the name, quantity, and price of three items. The name may contain spaces. Output a bill with a tax rate of 6.25%. All prices should be output to two decimal places. The bill should be formatted in columns with 30 characters for the name, 10 characters for the quantity, 10 characters for the price, and 10 characters for the total. Sample input and output is shown as follows:
Input name of item 1:
lollipops
Input quantity of item 1 :
10
Input price of item 1:
0.50
Input name of item 2:
diet soda
Input quantity of item 2 :
3
Input price of item 2:
1.25
Input name of item 3:
chocolate bar
Input quantity of item 3 :
20
Input price of item 3:
0.75
Your bill:
 Course Name/ Cod]. CS112 Date: 0124?2018 Write a program that inputs

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!