This exercise is about demonstration of basic analytical skills learnt during previous labs. 1- You are required to draw flow chart and write a Pseudocode for the following problem statement. Muscat MobiCare is a Mobile Outlet, which provides Mobile repair services. The charges of mobile repairs are based on the type of the service. Details of charges are as follow: Software Fault: 4 OMR Screen Fault: 6 OMR Network/Wi-Fi Fault: 8 OMR Internal Hardware Fault: 10 OMR The Outlet offers discount to the loyal customers. The discount is offered based on the customer visits to the outlet.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter6: User-defined Functions
Section: Chapter Questions
Problem 17PE
icon
Related questions
Question
Write a Program in C++ for a grocery shop payment bill/ receipt. The program should display
the final bill/receipt in the following format with and without built-in formatting functions e.g.,
setw().
Note: You are not required to input the data and perform calculations for Ex 2.1. You
are required to output the data in the correct format.
\" Food Stuff Grocery Shop"/
Customer Name: Salim
ITEM
PRICE
Sales Tax+ VAT
Sub-Total
Fresh Milk
1.0 OMR
0.05
1.05 OMR
Apple
2.0 OMR
0.10
2.10 OMR
Bread
0.8 OMR
0.05
1.30 OMR
Coffee
2.5 OMR
0.15
2.65 OMR
Gross Bill
7.1 OMR
Discount -
--------- 5%
Net Bill
6.745 OMR
Transcribed Image Text:Write a Program in C++ for a grocery shop payment bill/ receipt. The program should display the final bill/receipt in the following format with and without built-in formatting functions e.g., setw(). Note: You are not required to input the data and perform calculations for Ex 2.1. You are required to output the data in the correct format. \" Food Stuff Grocery Shop"/ Customer Name: Salim ITEM PRICE Sales Tax+ VAT Sub-Total Fresh Milk 1.0 OMR 0.05 1.05 OMR Apple 2.0 OMR 0.10 2.10 OMR Bread 0.8 OMR 0.05 1.30 OMR Coffee 2.5 OMR 0.15 2.65 OMR Gross Bill 7.1 OMR Discount - --------- 5% Net Bill 6.745 OMR
Programming Exercise 1
Assessment Component B
Weight: 6 out of 60
This exercise is about demonstration of basic analytical skills learnt during
previous labs.
1- You are required to draw flow chart and write a Pseudocode for the following
problem statement.
Muscat MobiCare is a Mobile Outlet, which provides Mobile repair services. The charges of mobile
repairs are based on the type of the service.
Details of charges are as follow:
Software Fault: 4 OMR
Screen Fault: 6 OMR
Network/Wi-Fi Fault: 8 OMR
Internal Hardware Fault: 10 OMR
The Outlet offers discount to the loyal customers. The discount is offered based on the customer
visits to the outlet.
Following is the detail of discounts.
1- Customer visiting 4 times a year gets 20% discount.
2- Customer visiting 6 times a year gets 30% discount.
3- Customer visiting 8 times a year gets 50% discount.
You are required to draw a Flow Chart diagram and write a Pseudocode for a computer program
that takes customer name, mobile model, visit date, total number of visits, and required service
(mentioned above). The program outputs a receipt with all the entered information plus repair
charges based on the required service and the discount.
Transcribed Image Text:Programming Exercise 1 Assessment Component B Weight: 6 out of 60 This exercise is about demonstration of basic analytical skills learnt during previous labs. 1- You are required to draw flow chart and write a Pseudocode for the following problem statement. Muscat MobiCare is a Mobile Outlet, which provides Mobile repair services. The charges of mobile repairs are based on the type of the service. Details of charges are as follow: Software Fault: 4 OMR Screen Fault: 6 OMR Network/Wi-Fi Fault: 8 OMR Internal Hardware Fault: 10 OMR The Outlet offers discount to the loyal customers. The discount is offered based on the customer visits to the outlet. Following is the detail of discounts. 1- Customer visiting 4 times a year gets 20% discount. 2- Customer visiting 6 times a year gets 30% discount. 3- Customer visiting 8 times a year gets 50% discount. You are required to draw a Flow Chart diagram and write a Pseudocode for a computer program that takes customer name, mobile model, visit date, total number of visits, and required service (mentioned above). The program outputs a receipt with all the entered information plus repair charges based on the required service and the discount.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Module hierarchy chart
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning