Write a C program that asks the user to enter an iPhone 6 wholesale cost and its markup percentage. Then, it should display the iPhone 6 retail price. For example: If user enters wholesale cost of...


Write a C program that asks the user to enter an iPhone 6 wholesale cost and its markup percentage. Then, it should display the iPhone 6 retail price. For example:


If user enters wholesale cost of iPhone is RM3 500.00 and its markup percentage is 100%, then the iPhone retail price RM7 000.00. The name of this function for this program is retailPrice ( ) that receives the wholesale cost and the markup percentage as parameters. Once the calculation has been made, this function will display the price.


a- function with return value - display in main(),


b- function without return value - display output in function definition



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here