Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

i am having a hard time with this code Li bb.cod.edu/bbcswebdav/px e Homework He

ID: 669500 • Letter: I

Question

i am having a hard time with this code

Li bb.cod.edu/bbcswebdav/px e Homework Help Ask A Qu.x Dbb.cod.edu/bbcswebdav/pid3095571-dt-content-rid-12213818-2/courses/2014SP-CIS-2485-001-27904/DieselEngine-Diagnostic.pdf The Submissive Dog × Blackboard Learn fi Develop a C++ program that will simulate computer aided troubleshooting of a hypothetical diesel engine. The troubleshooting chart is shown below Check status lights Green Amber Red Do restart procedure Shut-off all input ines check meter #3 Check fuel line service routine

Explanation / Answer

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

int main()
{
   string checkStatusLight;
   string velocity ;
   string pressure;
   int meter;
  
   cout << "Enter Status Light : ";
   cin >> checkStatusLight;
  
   if(checkStatusLight == "Green")
       cout << "Do Restart Procedure ";
   else if (checkStatusLight == "Amber")
       cout << "Check fuel line service routine ";
   else if (checkStatusLight == "Red")
   {
       cout << "Shut-off all input lines ";
       cout << "Enter meter : ";
       cin >> meter;
      
       if(meter<50)
       {
           cout << "Enter main line test pressure : ";
           cin >> pressure;
          
           if(pressure == "Normal")
               cout << "Refer to motor service manual ";
           else if (pressure == "High" || pressure == "low")
               cout << "Refer to main line manual ";
       }
       else if (meter >= 50)
       {
           cout << "Enter flow velocity at inlet 2-B : ";
           cin >> velocity;
           if(velocity == "Normal")
               cout << "Refer to inlet service manual ";
           else if (velocity == "High" || velocity == "low")
               cout << "Refer unit for factory service ";
       }
   }
   return 0;
}