Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Instruction: Answer all questions. Question 1 The Myra Company sells five types of vehicles for the month of December 2020. Each vehicle is given a

image text in transcribed

image text in transcribed

Instruction: Answer all questions. Question 1 The Myra Company sells five types of vehicles for the month of December 2020. Each vehicle is given a special discount as shown in Table 4. At the end of the month, the company should produce a report consists of vehicle prices after discount along with the discount given, gross profit earned by each type of vehicle, and finally the gross profit earned by the company. Example of input and output as shown in Figure 1. Table 4: Vehicles Price Vehicle Name Cost Price Selling Price Discount Myra A MyraB Myrac MyraD MyraE RM45,000 RM59,000 RM68,000 RM85,500 RM125,000 RM55,000 RM74,000 RM84,000 RM105,500 RM150,000 5% 5% 5% 10% 10% Enter sales of each type of vehicle: MyraA : 3 MyraB : 2 Myrac 5 MyraD : 4 MyraE : 1 Myra Company Report for December 2020 MyraA's price after discount is RM52,250. Discount given is RM2,750. MyraB's price after discount is RM70.300. Discount given is RM3,700. Myrac's price after discount is RM79.800. Discount given is RM4,200. MyraD's price after discount is RM94,950. Discount given is RM10,550. MyraE's price after discount is RM135,000. Discount given is RM15,000. Gross profit earned by each type of vehicle MyraA = RM21.750 MyraB = RM22,600 MyRaC = RM59,000 MyraD = RM37.800 MyraE = RM10,000 Gross profit earned by Myra company is RM151,150. Figure 1: Example of input and output a) Analyze the given problem and identify what is the input, output and process. b) Write a complete C++ program that can compute and produce output as shown in Figure 1. You are also required to use at least 3 functions in your program

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Foundations Technology Fundamentals For IT Success

Authors: Bob Bryla

1st Edition

0782143725, 9780782143720

More Books

Students also viewed these Databases questions

Question

What is the relation between ROC and AUC?

Answered: 1 week ago

Question

8. Satyam Computer Services Limited

Answered: 1 week ago

Question

2. Explain how the role of training is changing.

Answered: 1 week ago

Question

7. General Mills

Answered: 1 week ago