Objectives: The main objective of this assignment is checking students’ ability to implement membership functions. After completing this assignment, students will be able to: • implement member functions • convert a member function into a standalone function • convert a standalone function into a member function • call member functions • implement constructors • use structs for function overloading Part A: Problem description: revisiting the home decoration company assignment. Need to modify the program so the company can make some critical decisions, including processing the received inventory of art, books, furniture, and fabric. It needs the structs art, books, furniture, fabric, date, and dimension. Processing inventory: The company wants to organize its inventory by cost from least to greatest. If the price of two items is the same, either one can be displayed first. You must use a member function of the appropriate corresponding struct to perform the comparison. Lastly print all items in order by cost. You will need to save the output into a text file named SequencedOrders.txt. You must use constructors to initialize all data variables in structs with default values at the beginning of the program. Use of global variables will incur a deduction of 10 points from your total points. *art/book/fabric/furniture.txt attached as png.*
Objectives: The main objective of this assignment is checking students’ ability to implement membership functions. After completing this assignment, students will be able to:
• implement member functions
• convert a member function into a standalone function
• convert a standalone function into a member function
• call member functions
• implement constructors
• use structs for function overloading
Part A:
Problem description:
revisiting the home decoration company assignment. Need to modify the program so the company can make some critical decisions, including processing the received inventory of art, books, furniture, and fabric. It needs the structs art, books, furniture, fabric, date, and dimension.
Processing inventory: The company wants to organize its inventory by cost from least to greatest. If the price of two items is the same, either one can be displayed first. You must use a member function of the appropriate corresponding struct to perform the comparison. Lastly print all items in order by cost. You will need to save the output into a text file named SequencedOrders.txt. You must use constructors to initialize all data variables in structs with default values at the beginning of the program. Use of global variables will incur a deduction of 10 points from your total points.
*art/book/fabric/furniture.txt attached as png.*
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images