Write C++ program to check machine state. The program should have class I insert machine name...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write C++ program to check machine state. The program should have class I insert machine name and model using private member function, class 2 should insert error (electrical, mechanical), class 3 should insert engineering name. Friend function should diagnose error and display machine name, model, engineer name, and the error. Using object as array to insert 10 cars. Where: if electrical-1, mechanical=0= electrical error if electrical-0, mechanical=1 = mechanical error Write C++ program to check machine state. The program should have class I insert machine name and model using private member function, class 2 should insert error (electrical, mechanical), class 3 should insert engineering name. Friend function should diagnose error and display machine name, model, engineer name, and the error. Using object as array to insert 10 cars. Where: if electrical-1, mechanical=0= electrical error if electrical-0, mechanical=1 = mechanical error
Expert Answer:
Answer rating: 100% (QA)
The C program to check machine state using a class structure as shown in the image is as follows C include using namespace std Class 1 class Machine private string name string model public void insert... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
For the circuit shown in Figure 7.3, determine the p.d. across resistor Ry. If the total resistance of the circuit is 10012, determine the current flowing through resistor R. Find also the value of...
-
Write and verify the VHDL that implements your state machine from Exercise 14.3. Data in Exercise 14.3. Cycle 0 1 2 3 4 5 6 7 8 9 State 00 00 01 11 01 11 10 11 10 00 In 0 1 1 0 1 1 0 1 1 Out 0 0 0 0...
-
What are the 20 most Important Apple MacOS logs for incident response and digital forensic exams?
-
QUESTION Mahkota Oil Sdn Bhd has been involved in the palm oil processing industry for several years. It has a steady market and competing successfully with other more expensive vegetable oil...
-
How can each one of the business-level strategies be used to position the firm relative to the five forces of competition in a way that helps the firm earn above-average returns? Discuss.
-
Michael and Gabitel (MG) is a law firm that specializes in writing wills. Its job-costing system has one direct cost pool, professional labour, and a single indirect cost pool that includes all...
-
How to use social media sites for evidence in court?
-
Predecting sales and variable costs using contribution margin Bloom company management predicts that it will incur fixed costs of $160,000 and earn protax income of $164,000 in the next period. Its...
-
Cullumber Company leased equipment from Ayayai Company on July 1, 2025, for an eight-year period expiring June 30, 2033. Equal annual payments under the lease are $812000 and are due on July 1 of...
-
On January 1, 2016, Theta Corp. acquired a four unit apartment building at as cost of $1,475,000. Of this total, it is estimated that the land on which the building is situated is worth $250,000 and...
-
Gerald wants to put a dark stain on all sides of the gate, including the bottom. If x=6 inches, y=4 inches, and z=3 feet, what is the surface area of the gate that will need to be stained, to the...
-
Describe and explain what project documents should be archived?
-
Describe an area for study, research, and practice that places a priority on improving health and achieving health equity for all people worldwide, Explain.
-
Analyze how the application of strategic management and planning has played a part in defining the organization's ongoing innovation strategies and business model.
-
Describe and explain a cost-effective way to do staff training and development in today's healthcare environment. Some things to consider: different schedules, shifts, remote vs onsite employees,...
-
Analyze the strategic approach to organizations innovation management including the organizational culture and the role of the individuals in the process.
-
A side riser is to be designed for a hollow cylindrical casting of 50 mm inside diameter and 100 mm outside diameter. If the length of cylinder is 50 mm, the diameter of riser in mm is
-
Using Apple, demonstrate how the differentiation strategy can be well implemented.
-
Kathy Kennedy (age 44) is a single taxpayer and she lives at 212 North Pine Way, Payson, AZ 85541. Her Social Security number is 467-98-9784. Kathy's earnings and income tax withholding as the...
-
Jim is fired from his job as a waiter and decides to take an extended trip to Europe. After touring Europe for 3 months, Jim returns to look for a new job as a waiter. Are his job-hunting expenses...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
The comparative balance sheet of Northern Movie Theatre Company at March 31, 2020 , reported the following: {Requirements} 1. Prepare Northern Movie Theatre Company's statement of cash flows for the...
-
Primrose Software Inc. has assembled the following data for the year ended December 31, 2020. {Requirement} Prepare Primrose Software Inc.'s statement of cash flows using the indirect method to...
-
The 2020 comparative balance sheet and income statement of 4 Seasons Supply Corp. follow. 4 Seasons had no non-cash investing and financing transactions during 2020. During the year, there were no...
Study smarter with the SolutionInn App