UESTION PROVIDED IN ATTACH IMAGE KINDLY SEE. PROVIDE OUTPUT AS IT IS SHOWN IN QUESTION.   AND BELOW TEMPLATES PROVIDED CHECK THIS BEFORE MAKING SOLUTION ( main.cpp , Fridge.cpp  ) ----------------- TEMPLATES BELOW FOR SOLUTION -----------------------

Principles of Information Systems (MindTap Course List)
13th Edition
ISBN:9781305971776
Author:Ralph Stair, George Reynolds
Publisher:Ralph Stair, George Reynolds
Chapter9: Business Intelligence And Analytics
Section: Chapter Questions
Problem 3CTQ1
icon
Related questions
Question

QUESTION PROVIDED IN ATTACH IMAGE KINDLY SEE. PROVIDE OUTPUT AS IT IS SHOWN IN QUESTION.

 

AND BELOW TEMPLATES PROVIDED CHECK THIS BEFORE MAKING SOLUTION ( main.cpp , Fridge.cpp  )

----------------- TEMPLATES BELOW FOR SOLUTION -----------------------

 

MAIN.CPP

#include<cstring>
#include<iostream>
#include<string>
#include "Fridge.cpp"
using namespace std;
int main()
{
string type;
string model;
cout<<"The Best-Selling Manufacturer is Whirlpool\nThe refrigerator types manufactured by Whirlpool\n";
cout<<"1.SingleDoor\n";
cout<<"2.DoubleDoor\n";
cout<<"Refrigerator type of your choice?\n";
cin>>type;

//fill your code here

cout<<"Refrigerator of your choice?\n";
cin>>model;

//fill your code here
}

 

FRIDGE.CPP

#include<cstring>
#include<iostream>
#include<string>
using namespace std;

class Fridge
{
private:
string manufacturer;
string type;
string model;

Fridge(){
//Fill your code here
}

Fridge(string manufacturer,string type,string model){
//Fill your code here
}

void displayType()
{
cout<<"The refrigerator models manufactured by Whirlpool\n";
cout<<"1.Whirlpool_Royal\n";
cout<<"2.Whirlpool_ELT\n";
cout<<"3.Whirlpool_Icemagic\n";
cout<<"4.Whirlpool_Protton\n";
cout<<"5.Whirlpool_Powercool\n";
}

void displayDetails()
{
cout<<"Refrigerator Details\n";
cout<<"Manufacturer : Whirlpool\n";

//Fill your code here
}
};

Mrs.Roselin, a homemaker wished to buy a refrigerator with all new features in order to preserve and
store the vegetables, fruits, and food items more efficiently. She is in search of a best-selling
refrigerator, as she wants to buy the best always. For this, she wants to know the best-selling
manufacturer, the various models manufactured by them, and the features of that refrigerators. So She
visited a renowned showroom "Atlantic Appliances Pvt Ltd".
Write a C++ program to display the Best-Selling refrigerator Manufacturer and various models
manufactured by them to Roselin.
Strictly adhere to the Object-Oriented specifications given in the problem statement. All class names,
member variable names, and function names should be the same as specified in the problem
statement.
Note: Use constructor overloading concept.
Consider a class Fridge and has the following private member variables.
Data Type
string
string
string
Variable
manufacturer
type
model
The Fridge class has the following the constructor
Constructor
Fridge()
Fridge(string manufacturer,char *type,char *model) Set the values passed by parameters.
Description
Set the best-selling manufacturer as default.
Note: Specify the best selling manufacturer as "Whirlpool"
The Fridge class has the following methods
Method
Description
This method displays the best-selling manufacturer and the list of refrigerators manufactured
by the manufacturer.
This method displays the model and manufacturer specified by the user.
void displayType()
void displayDetails()
Types of refrigerators manufactured by "Whirlpool" are as follows:
1.Single Door
2.Double Door
Input and Output Format:
Refer sample input and output for formatting specifications.
[All text in bold corresponds to input and the rest corresponds to output]
Sample Input and Output :
The Best-Selling Manufacturer is Whirlpool
The refrigerator types manufactured by Whirlpool
1.SingleDoor
2.DoubleDoor
Refrigerator type of your choice?
SingleDoor
The refrigerator models manufactured by Whirlpool
1.Whirlpool_Royal
2.Whirlpool_ELT
3.Whirlpool_Icemagic
4.Whirlpool_Protton
5.Whirlpool_Powercool
Refrigerator of your choice?
Whirlpool_Icemagic
Refrigerator Details
Manufacturer :Whirlpool
Type: SingleDoor
Model:Whirlpool_Icemagic
Transcribed Image Text:Mrs.Roselin, a homemaker wished to buy a refrigerator with all new features in order to preserve and store the vegetables, fruits, and food items more efficiently. She is in search of a best-selling refrigerator, as she wants to buy the best always. For this, she wants to know the best-selling manufacturer, the various models manufactured by them, and the features of that refrigerators. So She visited a renowned showroom "Atlantic Appliances Pvt Ltd". Write a C++ program to display the Best-Selling refrigerator Manufacturer and various models manufactured by them to Roselin. Strictly adhere to the Object-Oriented specifications given in the problem statement. All class names, member variable names, and function names should be the same as specified in the problem statement. Note: Use constructor overloading concept. Consider a class Fridge and has the following private member variables. Data Type string string string Variable manufacturer type model The Fridge class has the following the constructor Constructor Fridge() Fridge(string manufacturer,char *type,char *model) Set the values passed by parameters. Description Set the best-selling manufacturer as default. Note: Specify the best selling manufacturer as "Whirlpool" The Fridge class has the following methods Method Description This method displays the best-selling manufacturer and the list of refrigerators manufactured by the manufacturer. This method displays the model and manufacturer specified by the user. void displayType() void displayDetails() Types of refrigerators manufactured by "Whirlpool" are as follows: 1.Single Door 2.Double Door Input and Output Format: Refer sample input and output for formatting specifications. [All text in bold corresponds to input and the rest corresponds to output] Sample Input and Output : The Best-Selling Manufacturer is Whirlpool The refrigerator types manufactured by Whirlpool 1.SingleDoor 2.DoubleDoor Refrigerator type of your choice? SingleDoor The refrigerator models manufactured by Whirlpool 1.Whirlpool_Royal 2.Whirlpool_ELT 3.Whirlpool_Icemagic 4.Whirlpool_Protton 5.Whirlpool_Powercool Refrigerator of your choice? Whirlpool_Icemagic Refrigerator Details Manufacturer :Whirlpool Type: SingleDoor Model:Whirlpool_Icemagic
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Database connectivity
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781305971776
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781337097536
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning