good day maam sir... please take a look with my practiced program... please do help me on: 1. what should I add in order the program will also show the price of the user's selected item on the output...


good day maam sir... please take a look with my practiced program... please do help me on:


1. what should I add in order the program will also show the price of the user's selected item on the output please


#include <stdio.h><br>int main ()<br>char ch;<br>do<br>printf (>>>>>>>>>>>\n"); printf ("\nThese are the following products found in our small tindahan:\n"); printf ("\nNotebook\t\tfor 15.00php"); printf ("\nBallpen\t\t\tfor 8.00php"); printf("\nPencil\t\t\tfor 6.00php"); printf ("\nEraser\t\t\tfor 2.00php"); printf("\nSharpener\t\tfor 2.00php") ; printf ("\nIntermediate\t\tfor 20.00php"); printf("\nYellow paper\t\tfor 25.00php\n"); >>>>>>>>>>> These are the following products found in our small tindahan: Notebook Ballpen Pencil for 15.00php for 8.00php for 6.00php for 2.00php for 2.00php for 20.00php for 25.00php printf ("\nInput what do you want to buy: "); char s[100]; Eraser scanf ("%s",s); Sharpener Intermediate Yellow paper printf ("How many of this would you want to buy?: "); int n; scanf ("%d", &n); Input what do you want to buy: Notebook How many of this would you want to buy?: 15 printf(" printf ("The item you selected and number of item:\n\n"); printf ("%s\t%d\n",s,n); printf ("- printf ("Would you like to continue? (y/n) "); scanf (" %c", &ch); --\n\n"); The item you selected and number of item: ----\n\n"); Notebook 15 while (ch=='y'); Would you like to continue? (y/n) return 0; "/>
Extracted text: #include int main () char ch; do printf (" >>>>>>>>>>>\n"); printf ("\nThese are the following products found in our small tindahan:\n"); printf ("\nNotebook\t\tfor 15.00php"); printf ("\nBallpen\t\t\tfor 8.00php"); printf("\nPencil\t\t\tfor 6.00php"); printf ("\nEraser\t\t\tfor 2.00php"); printf("\nSharpener\t\tfor 2.00php") ; printf ("\nIntermediate\t\tfor 20.00php"); printf("\nYellow paper\t\tfor 25.00php\n"); >>>>>>>>>>> These are the following products found in our small tindahan: Notebook Ballpen Pencil for 15.00php for 8.00php for 6.00php for 2.00php for 2.00php for 20.00php for 25.00php printf ("\nInput what do you want to buy: "); char s[100]; Eraser scanf ("%s",s); Sharpener Intermediate Yellow paper printf ("How many of this would you want to buy?: "); int n; scanf ("%d", &n); Input what do you want to buy: Notebook How many of this would you want to buy?: 15 printf(" printf ("The item you selected and number of item:\n\n"); printf ("%s\t%d\n",s,n); printf ("- printf ("Would you like to continue? (y/n) "); scanf (" %c", &ch); --\n\n"); The item you selected and number of item: ----\n\n"); Notebook 15 while (ch=='y'); Would you like to continue? (y/n) return 0;
Jun 01, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here