Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Markup: Please hand in your source code and runs to test valid and invalid data. Write a program that asks the user to enter an

Markup:

Please hand in your source code and runs to test valid and invalid data.

Write a program that asks the user to enter an items wholesale cost and its markup percentage. It should then display the items retail price. For example:

  • If an items wholesale cost is 5.00 and its markup percentage is 100%, then the items retail price is 10.00.
  • If an items wholesale cost is 5.00 and its markup percentage is 50%, then the items retail price is 7.50.

The program should have a function which enters and returns valid data the wholesale cost and its markup percentage.

void getData(double&,double&);

The program should have a function named

double calculateRetail(double,double);

that receives the wholesale cost and the markup percentage as arguments, and returns the retail price of the item.

The program should have a function to display the results given the wholesale cost, the markup percentage and the retail price.

void Display(double,double,double);

Input validation: Do not accept a negative values for either the wholesale cost of the item or the markup percentage. .

PLZ using C++ ASAP make the function simplification , Don't be too complicated thanks

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

AWS Certified Database Study Guide Specialty DBS-C01 Exam

Authors: Matheus Arrais, Rene Martinez Bravet, Leonardo Ciccone, Angie Nobre Cocharero, Erika Kurauchi, Hugo Rozestraten

1st Edition

1119778956, 978-1119778950

More Books

Students also viewed these Databases questions

Question

4. Show the trainees how to do it again.

Answered: 1 week ago

Question

8. Praise the trainees for their success in learning the task.

Answered: 1 week ago