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.*

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

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.*

|14
Table brown 10 01:16:2000 100.00
Chair black 20 05:14:2006 25.20
10
WoolRug white 10 24.20
NaturalFiberRug red 21 18.65
Drapes brown 15 10.60
DoorMat green 50 21.20
TableMat red 60 5.95
CottonRug white 10 14.26
SyntheticRug blue 15 18.10
PlaceMat brown 26 2.55
Couch brown 5 10:21:2015 325.50
LoveSeat yellow 3 09:08:2011 145.70
RockingChair red 15 06:03:2013 45.60
Desk brown 5 11:10:2004 50.00
Lamp blue 8 12:06:2014 10.95
Light grey 1o 06:12:2003 11.00 Furniture.txt
Fabric.txt
Bed red 7 07:18:2006 150.00
HighChair white 11 08:22:2007 25.60
FootRest brown 5 08:23:2015 15.95
ClothNapkins white 18 3.05
Curtains grey 28 12.32
CoffeeTable white 0 06:25:2016 57.10
BedsideTable black 2 04:23:2015 45.23
Stool brown 25 08:26:2014 20.00
art
Screen Shot 2021-...
» Q
PrideandPrejudice 1 209 10.99 10 04:01:2010
TOKillaMockingbird 0 276 10.99 3 03:10:2013
TheGreatGatsby 1 257 7.99 3 06:21:2000
JaneEyre 1 294 10.99 8 06:01:2005
TheCatcherintheRye 1 171 10.99 2 07:06:2006
12
WaterColorPainting 25.95 20 07:02:2015 20:20:1
AcrylicPainting 10.22 89 06:15: 2014 12:14:1
Photo 2.50 4 06:25:2017 10:10:1
LatexPainting 22.49 11 08:29:2015 18:13:1
PencilDrawing 5.25 56 05:01:2010 12:10:1
ClaySculpture 20.25 16 04:19:2011 12:12:3
GlassSculpture 15.40 40 09:05:2002 4:18:15
PlasticSculpture 2.96 22 05:20:2010 10:10:10
WoodenSculpture 27.89 9 03:11:2016 14:12:4
MetalSculpture 14.65 1 06:24:2013 18:15:7
ConcreteSculpture 3.69 0 03:29:2016 19:28:4
MarbleSculpture 29.99 16 06:15:2013 13:20:7
LittleWomen 0 354 10.99 3 02:26:2008
Вook.txt
Art.txt
HuckleberryFin 1 269 7.99 2 02:27:2015
MobyDick 0 278 10.99 1 07:13:2012
AliceinWonderland 1 494 10.99 7 08:17:2015
LordoftheFlies 1 133 10.99 1 06:06:2016
AnimalFarm 1 119 7.99 5 03:22:2015
GreatExpectations 0 287 10.99 9 06:13:2013
1984 0 275 10.99 8 04:14:2017
GreatExpectations 1 360 10.99 7 07:23:2016
Frakenstein 0 146 10.99 3 03:20:2010
TheScarletLetter 1 248 10.99 5 02:28:2014
Transcribed Image Text:|14 Table brown 10 01:16:2000 100.00 Chair black 20 05:14:2006 25.20 10 WoolRug white 10 24.20 NaturalFiberRug red 21 18.65 Drapes brown 15 10.60 DoorMat green 50 21.20 TableMat red 60 5.95 CottonRug white 10 14.26 SyntheticRug blue 15 18.10 PlaceMat brown 26 2.55 Couch brown 5 10:21:2015 325.50 LoveSeat yellow 3 09:08:2011 145.70 RockingChair red 15 06:03:2013 45.60 Desk brown 5 11:10:2004 50.00 Lamp blue 8 12:06:2014 10.95 Light grey 1o 06:12:2003 11.00 Furniture.txt Fabric.txt Bed red 7 07:18:2006 150.00 HighChair white 11 08:22:2007 25.60 FootRest brown 5 08:23:2015 15.95 ClothNapkins white 18 3.05 Curtains grey 28 12.32 CoffeeTable white 0 06:25:2016 57.10 BedsideTable black 2 04:23:2015 45.23 Stool brown 25 08:26:2014 20.00 art Screen Shot 2021-... » Q PrideandPrejudice 1 209 10.99 10 04:01:2010 TOKillaMockingbird 0 276 10.99 3 03:10:2013 TheGreatGatsby 1 257 7.99 3 06:21:2000 JaneEyre 1 294 10.99 8 06:01:2005 TheCatcherintheRye 1 171 10.99 2 07:06:2006 12 WaterColorPainting 25.95 20 07:02:2015 20:20:1 AcrylicPainting 10.22 89 06:15: 2014 12:14:1 Photo 2.50 4 06:25:2017 10:10:1 LatexPainting 22.49 11 08:29:2015 18:13:1 PencilDrawing 5.25 56 05:01:2010 12:10:1 ClaySculpture 20.25 16 04:19:2011 12:12:3 GlassSculpture 15.40 40 09:05:2002 4:18:15 PlasticSculpture 2.96 22 05:20:2010 10:10:10 WoodenSculpture 27.89 9 03:11:2016 14:12:4 MetalSculpture 14.65 1 06:24:2013 18:15:7 ConcreteSculpture 3.69 0 03:29:2016 19:28:4 MarbleSculpture 29.99 16 06:15:2013 13:20:7 LittleWomen 0 354 10.99 3 02:26:2008 Вook.txt Art.txt HuckleberryFin 1 269 7.99 2 02:27:2015 MobyDick 0 278 10.99 1 07:13:2012 AliceinWonderland 1 494 10.99 7 08:17:2015 LordoftheFlies 1 133 10.99 1 06:06:2016 AnimalFarm 1 119 7.99 5 03:22:2015 GreatExpectations 0 287 10.99 9 06:13:2013 1984 0 275 10.99 8 04:14:2017 GreatExpectations 1 360 10.99 7 07:23:2016 Frakenstein 0 146 10.99 3 03:20:2010 TheScarletLetter 1 248 10.99 5 02:28:2014
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY