Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a program that: - Creates a sales receipt, displays the receipt entries and totals, and save the receipt entries to a file Prompt the

image text in transcribed
Create a program that: - Creates a sales receipt, displays the receipt entries and totals, and save the receipt entries to a file Prompt the user to enter the - Item Name - Item Quantity - Item Price Display the item name, the quantity, and item price, and the extended price (i.e. Item Quantity multiplied by Item Price) after the entry is made Save the item name, quantity, item price, and extended price to a file - When you create the file, prompt the user for the name they want to give the file - Separate the items saved with commas - Each entry should be on a separate line in the text file Ask the user if they have more items to enter - Once the user has finished entering items Close the file with the items entered Display the sales total If the sales total is more than $100 - Calculate and display a 10% discount Calculate and display the sales tax using 8% as the sales tax rate - The sales tax should be calculated on the sales total after the discount Display the total for the sales receipt Save the program and submit it to this site for grading

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

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions