Question: write the coding on c++ based on the question and output below:. the output LAB EXERCISE 4 (5%) Your company needs 250 uniform every year.
write the coding on c++ based on the question and output below:.

the output

LAB EXERCISE 4 (5%) Your company needs 250 uniform every year. As market prices are unstable, the inflation factor should be taken into account to determine the total cost required for the coming years. Write a program to measure the expected cost of an item in a specified number of years. The inputs required by your program are (1) The cost of the items, (2) The year the items will be purchased, (3) the inflation rate (in percent). Your program should then convert the percentage into decimal fractions. You need to use loops to estimate the price adjusted for inflation. cost = cost + cost x inflation rate (decimal fractions) EXPECTED OUTCOME Enter the number of years in which the Uniform will be purchased: 5 Enter the total cost of the Uniform: RM 1000 Enter the inflation rate as a percentage: 5.6 The cost of the item after 5 years will be $ 1313.17. Process exited after 10.11 seconds with return value o Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
