Question: This needs to be solved in C++ PROBLEM The Woody Furniture Company sells the following different styles of furniture. Write a program that has three

 This needs to be solved in C++ PROBLEM The Woody FurnitureCompany sells the following different styles of furniture. Write a program that

This needs to be solved in C++

PROBLEM The Woody Furniture Company sells the following different styles of furniture. Write a program that has three functions namely: main, inputFurniture, displayReport. Here are the specifications of the functions: Function main Declare three arrays whose names are furnitureStyle, unitPrice, numbersSold. All arrays may be set to the size of 100 . Call the inputFurniture function passing all the three arrays as arguments. Receive total number of furniture styles input. Call the displayReport function passing all the three arrays as arguments and the total number of furniture styles sold. Function inputFurniture Your program will have a while loop that, for each pass, will input a furniture style name, the price of that furniture style, and the number of items sold of that style. Here is an example of a program run: Function displayReport You program have a for loop. In the for loop, the program will display a table line of style, price per furniture style, number of units sold, and total amount sold for the style. At the end of the table, the program will display the words TOTAL and then the sum total of sales. After all the input, the program will calculate how much is sold for each furniture style that was entered by multiplying the unit price of that style and number of units sold of the style. The program will then display a table of style, price per unit, number of units sold, and total amount sold for the style. At the end of the table, the program will display the words TOTAL and then the total of sales. NOTE: The above table is just an example. Actual values depend on user input Use the setw and setprecision functions together with left, right, fixed, showpoint flags found in the iomanip standard library to create a tabular display

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!