Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise #2: Bill + program that calculates and prints the total bill including 5% VAT for a customer at a fruit shop according to the

image text in transcribed
Exercise #2: Bill + program that calculates and prints the total bill including 5% VAT for a customer at a fruit shop according to the following table. The user will enter fruit code followed by the quantity in Kg. Each time the user will be asked to continue or to quit. The user should be notified for the incorrect fruit code as shown in the sample input/output. You are required to print the bill in the format given in the sample input/output. Note that all letters are lower case. Fruit Item bananas grape mangoes oranges Unit Price 2.5 4.5 5.0 6.0 Code Sample input/output: nths any other hey to w.it.... t anoheut rer ny qust.... ress V to another uster prese any ether key to qwit.... any other hey te quit... hte andheraftityin pe eytos i.- hier'Priit in the anti table . tragait le, te qui, ss Y to another fruit or press any other key to qwit... other fruit or press any other key te quie.... o anothrtu prass any ether ey to quit.... " ter Pruit and Quaneity in Kc ter Fruit and Qantity in NG g 2 ter Frust and Quant ity in KG b s ..BILL ..sa AED 12.58 RED 38.00 RED 9.98 AED 5.00 RED otal Cine UATI etal (Ine UATI

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions

Question

What does not need any further processing before consumption

Answered: 1 week ago