Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 4 a) Write a C++ program that asks a user to enter the product cost and its markup percentage. Then, the program should display

image text in transcribed

QUESTION 4 a) Write a C++ program that asks a user to enter the product cost and its markup percentage. Then, the program should display the product retail price. For example, if the product cost is RM1000 and the markup percentage that entered by user is 50%, then the product retail price would be RM1500. Create a function name salePrice ) that receives the product cost and the markup Percentage as parameter and return the product retail price. (6 marks)

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

Step: 3

blur-text-image

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

Databases In Networked Information Systems 6th International Workshop Dnis 2010 Aizu Wakamatsu Japan March 2010 Proceedings Lncs 5999

Authors: Shinji Kikuchi ,Shelly Sachdeva ,Subhash Bhalla

2010th Edition

3642120377, 978-3642120374

More Books

Students also viewed these Databases questions

Question

Task B: Dictionary Operations

Answered: 1 week ago

Question

2. What potential barriers would you encourage Samuel to avoid?

Answered: 1 week ago