Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c language program -- For this version of the code, you will ask for 2 items and it is expected that 2 items will be

c language program -- For this version of the code, you will ask for 2 items and it is expected that 2 items will be purchased. The first is the long or short sleeve T-shirt of a particular colour as per Assignment #0 The second is another item of your chose (you pick) It must have two versions (don't use long and shirt sleeve) It must have a colour choice as well (you pick). It must have a price (you pick). Ensure all prices are shown to the user before they pick what they are ordering. When getting any input, the program should repeat prompts until a valid choice is given. A brief error message should show as to why the prompt is repeating if that is the case. Provide a discount of 10% for students or senior citizens, as well as a quantity discount 15% for purchasing 3 or more of a particular item. You will need to ask if the customer is a student, or a senior. Ensure your approach will accept more than one way of answering the question (ie, "Y" or "y", or "S" or "s", or however you approach it) A person cannot get both a student or a senior discount A person cannot get a student or senior discount as well as a quantity discount Discounts could be different per item; for example, a senior citizen purchasing 10 shirts but one pair of another item would get a 15% quantity discount on the first, and a 10% seniors discount on the second type of item. Ensure you logic reflects this. Apply 13% sale tax to the sale and show the cost before and after tax. Ensure that the tax is applied on the final total after any discounts. Discounts could be different per item; for example, a senior citizen purchasing 10 shirts but one pair of another item would get a 15% quantity discount on the first, and a 10% seniors discount on the second type of item. Print a summary menu that shows what was bought including the name the type of item, the details, and the total cost payable. If any discounts were applied, the discount columns should be included (else they should not show). Have the output at the end of your program follow a standard format as per below.

You can pick how wide your columns are, but make sure text lines up in the columns The data being printed should line up to the column headers. The discount and savings columns should only be there if a discount was given. The below uses 5 shirts as the input. Yours would have a second line for the new item of your choice, but should follow the same format

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

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions

Question

Describe three other types of visual aids.

Answered: 1 week ago