Page 1 of 1

please use #include , void main() , and only using c programming to solve !!! i also need the explain //

Posted: Fri Jul 08, 2022 6:16 am
by answerhappygod
please use #include<stdio.h> , void main() , and only using cprogramming to solve !!! i also need the explain//
Write a program to list items price and price after discount.The requirement of the program asbelow1. Declare 2D array called item and assign the data below insidethe arraya. Berasb. Telurc. Air Tind. Pisaue. Cawan2. Declare decimal array called price and assign the databelowa. 15.80b. 3.80c. 1.90d. 9.99e. 5.503. Declare decimal array called discount and assign the databelowa. 5b. 5c. 0d. 7e. 0
Please Use Include Stdio H Void Main And Only Using C Programming To Solve I Also Need The Explain 1
Please Use Include Stdio H Void Main And Only Using C Programming To Solve I Also Need The Explain 1 (29.42 KiB) Viewed 48 times
Please Use Include Stdio H Void Main And Only Using C Programming To Solve I Also Need The Explain 2
Please Use Include Stdio H Void Main And Only Using C Programming To Solve I Also Need The Explain 2 (19.71 KiB) Viewed 48 times
Please Use Include Stdio H Void Main And Only Using C Programming To Solve I Also Need The Explain 3
Please Use Include Stdio H Void Main And Only Using C Programming To Solve I Also Need The Explain 3 (28.42 KiB) Viewed 48 times
4. Display the output as figure 1 SELAMAT DATANG KE TEKCO MINIMART ITEM LIST ITEM 1. Beras 2. Telur 3. Air Tin 4. Pisau 5. Cawan ITEM 1. Beras 2. Telur 3. Air Tin 4. Pisau 5. Cawan PRICE 15.80 3.80 1.90 9.99 5.50 Figure 1 5. Ask user to press item number to determine the item price after discount (output as figure 2) or 0 to display all the items prices after discount (output as figure 3). SELAMAT DATANG KE TEKCO MINIMART ITEM LIST Discunt % 5% 5% 0% 7% 0% price 3.80 PRICE 15.80 3.80 1.90 9.99 5.50 Enter Item number to determine the price after discount or 0 to show all prices after discount : 2 Item Telur Do you want continue press Y or N to stop: Figure 2 Discunt % 5% 5% 0% 7% 0% price disccount 3.61
SELAMAT DATANG KE TEKCO MINIMART ITEM LIST ITEM 1. Beras 2. Telur 3. Air Tin 4. Pisau 5. Cawan price 15.80 PRICE 15.80 3.80 1.90 9.99 5.50 Enter Item number to determine the price after discount or @ to show all prices after discount:0 Item Beras Telur Air Tin Pisau Cawan 3.80 1.90 9.99 5.50 Discunt % 5% 5% 0% 7% 0% price disccount 15.01 3.61 1.90 9.29 5.50 Do you want continue press Y or N to stop: Figure 3 6. Ask user "Do you want continue press Y or N to stop 7. If user enter Y repeat step 1 else stop the program.
Question 2 rubric: Marking Criteria Question 1 Declare the arrays according to the question Using appropriate control structure Display the output according to the question. Marks 0 Not able declare the array not able to write a program using the appropriate structure Not able to produce the output 1 Able to declare with marginal error and structure Write the program, with the marginal error and structure 30% of the output correct 2 Able to declare with marginal syntax error Write a correct program with marginal syntax error 70% of the output correct 3 Albe to declare according to the question Using an appropriate control structure 100% of the output correct Marks