Answered step by step
Verified Expert Solution
Question
1 Approved Answer
#include #include Monitor.h int main ( ) { / / Instantiate the first monitor object Monitor monitor 1 ; monitor 1 . setBrand (
#include
#include "Monitor.h
int main
Instantiate the first monitor object
Monitor monitor;
monitorsetBrandJohn;
monitorsetModelHH;
monitorsetWidth;
monitorsetHeight;
monitorsetPpi;
Calculate and display screen size for monitor
std::cout "Brand: monitorgetBrand Model: monitorgetModel Screen size pixels
monitorgetWidthx monitorgetHeight @ monitorgetPpi "ppi, diagonal
monitorgetScreenSize inches" std::endl;
Instantiate the second monitor object
Monitor monitor;
monitorsetBrandDoe;
monitorsetModelVX;
monitorsetWidth;
monitorsetHeight;
monitorsetPpi;
Calculate and display screen size for monitor
std::cout "Brand: monitorgetBrand Model: monitorgetModel Screen size pixels
monitorgetWidthx monitorgetHeight @ monitorgetPpi "ppi, diagonal
monitorgetScreenSize inches" std::endl;
return ;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started