Write a program for a pharmacy to generate bills. The program should ask about the code associated with the medicine and then inquire the number of tablets required. Then program should repeat this...


Write a program for a pharmacy to generate bills. The program should ask about the code associated with the medicine<br>and then inquire the number of tablets required. Then program should repeat this process until user enter the termination<br>code. After that program should print the details containing the medicine name, number of tablet, price per tablet, total<br>price for the medicine and at the last sum the total bill.<br>List of medicine and there prices are following.<br>Code<br>Medicine<br>Price / Tablet<br>Code<br>Medicine<br>Price<br>1<br>Panadol<br>5.5<br>Ponstron<br>10.7<br>Fledgel<br>Loprine<br>Rigix<br>2<br>8.5<br>7<br>Bruphine<br>5.9<br>3<br>20<br>8<br>Folic Acid<br>21.6<br>4<br>3.1<br>Calpol X<br>19.8<br>Delacine C<br>25.9<br>10<br>Denizen DS<br>37<br>Your program should show output similar to the following<br>CA\UsersVamila Habib\Documents\C++ Files\Q6.exe<br>Medicine codes<br>Panadol<br>Medicine<br>codes<br>Ponstron<br>6<br>Fledgel<br>Loprine<br>Rigix<br>De lacine C 5<br>2<br>3<br>4<br>Bruphine<br>Folic Acid<br>Calpol X<br>Denizen DS<br>9<br>10<br>Enter the code of nedicine(-1 to quit)<br>Enter the number of tablets<br>Enter the code of nedicine(-1 to quit)<br>Enter the number of tablets<br>Enter the code of nedic ine(-1 to quit)<br>Enter the number of tablets<br>Enter the code of nedicine(-1 to quit)<br>Enter the number of tablets<br>Enter the code of nedicine(-1 to quit)<br>1<br>13<br>31<br>3<br>9<br>17<br>-1<br>%3D<br>Bill<br>了 I<br>Medicine<br>Tablets<br>Price<br>(per tablet)<br>5.5<br>5.9<br>20.0<br>19.8<br>Total Bill<br>Total price<br>1<br>2 Bruphine<br>3 Loprine<br>9 Calpol X<br>Panadol<br>13<br>31<br>71.5<br>182.9<br>140.0<br>336.6<br>731.0<br>17<br>Process exited after 0.05538 seconds with return value B<br>Press any key to continue<br>

Extracted text: Write a program for a pharmacy to generate bills. The program should ask about the code associated with the medicine and then inquire the number of tablets required. Then program should repeat this process until user enter the termination code. After that program should print the details containing the medicine name, number of tablet, price per tablet, total price for the medicine and at the last sum the total bill. List of medicine and there prices are following. Code Medicine Price / Tablet Code Medicine Price 1 Panadol 5.5 Ponstron 10.7 Fledgel Loprine Rigix 2 8.5 7 Bruphine 5.9 3 20 8 Folic Acid 21.6 4 3.1 Calpol X 19.8 Delacine C 25.9 10 Denizen DS 37 Your program should show output similar to the following CA\UsersVamila Habib\Documents\C++ Files\Q6.exe Medicine codes Panadol Medicine codes Ponstron 6 Fledgel Loprine Rigix De lacine C 5 2 3 4 Bruphine Folic Acid Calpol X Denizen DS 9 10 Enter the code of nedicine(-1 to quit) Enter the number of tablets Enter the code of nedicine(-1 to quit) Enter the number of tablets Enter the code of nedic ine(-1 to quit) Enter the number of tablets Enter the code of nedicine(-1 to quit) Enter the number of tablets Enter the code of nedicine(-1 to quit) 1 13 31 3 9 17 -1 %3D Bill 了 I Medicine Tablets Price (per tablet) 5.5 5.9 20.0 19.8 Total Bill Total price 1 2 Bruphine 3 Loprine 9 Calpol X Panadol 13 31 71.5 182.9 140.0 336.6 731.0 17 Process exited after 0.05538 seconds with return value B Press any key to continue

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here