Question: write a program C++ about computer struct 1 create default and non default constructors 2 write a main () 3 create an instance of type
write a program C++ about computer struct
1 create default and non default constructors
2 write a main ()
3 create an instance of type computer using default constructor
4 set the value fir year, model,and purpose using any value you would like
5print value of year, model and purpose to the standard output
6prompt the user to enter a value for year,model and pupose
7creat a new instance of type computer using the non default constructor
8 print the value of year, model and pupose
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
