Question: // Project Name: DLAB01SP2021_LogicGate // File name:----- // Programmer: ------- VERSION DATE: February 22, 2021 #includeC:ETTIO.h // this file must include for any test program

// Project Name: DLAB01SP2021_LogicGate // File name:----- // Programmer: ------- VERSION DATE: February 22, 2021 #include"C:\ETT\IO.h" // this file must include for any test program //#include"\\Instructor2\dlabs\IO.h" void main() { // The following code must be in any test program Setup(0); // this function must be here system("cls"); // clear the screen system("COLOR 0F"); // LIGHT AQUA int choice = 0; char *VersionDate = " February 22, 2021"; // change the date Semester = "2021Spring"; Section = "TechII"; LastName = "pham"; // change name FirstName = "hoai"; // change name TestProgram = "DLAB01SP2021_LogicGate"; // change to each DLAB // UpLoadResult=""Yes"; if (!CheckNames()) return; // The test program starting here cout << TestProgram << " Test in progress..." << endl; system("cls"); // clear the screen system("COLOR 0D"); // LIGHT GREEN cout << " >>>>>>> D L A B 0 1 S P 2021 LogicGate <<<<<<<" << endl; cout << " Version Date: " << VersionDate << endl << endl; testno = 1; testtitle = "Test 01"; expected_data = 0x01;// from PORT C maskdata = 0X03; // from PORT C pcof = "U1,U2,U3,U4";// from PORT C WriteToPortA(0X00, 0); // from portA // the following codes can not be changed measured_data = ReadPortC(0); TestEvaluation(expected_data, measured_data); if (NOGO) TestFailed(); else TestPass(); testno = 2; testtitle = "Test 02"; expected_data = 0x01; WriteToPortA(0X01, 0); // the following codes can not be changed measured_data = ReadPortC(0); TestEvaluation(expected_data, measured_data); if (NOGO) TestFailed(); else TestPass(); testno = 3; testtitle = "Test 03"; expected_data = 0x01; WriteToPortA(0X02, 0); // the following codes can not be changed measured_data = ReadPortC(0); TestEvaluation(expected_data, measured_data); if (NOGO) TestFailed(); else TestPass(); testno = 4; testtitle = "Test 04"; expected_data = 0x00; WriteToPortA(0X03, 0); // the following codes can not be changed measured_data = ReadPortC(0); TestEvaluation(expected_data, measured_data); if (NOGO) TestFailed(); else TestPass(); testno = 5; testtitle = "Test 05"; expected_data = 0x03; // from Port C WriteToPortA(0X04, 0); // from Port A // the following codes can not be changed measured_data = ReadPortC(0); TestEvaluation(expected_data, measured_data); if (NOGO) TestFailed(); else TestPass(); testno = 6; testtitle = "Test 06"; expected_data = 0x03; // from Port C WriteToPortA(0X05, 0); // from Port A // the following codes can not be changed measured_data = ReadPortC(0); TestEvaluation(expected_data, measured_data); if (NOGO) TestFailed(); else TestPass(); ///////// YOUR CODE MUST BE ABOVE THIS LINE ////////////// EndTestProgram(); // function call to display PASS/FAIL Delay(10000); } ///////////////////////////// end main() //////////////////////////////////////////////

In visual studio c++, is there anyway tomake this program work by running it without debuuging? how to fix it?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!