

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Objective of this cours is to develop effective computer programming skills in solving complex problems and to learn adequate and operational software organization in developing real life engineering solutions using powerful object oriented paradigm of the language. It includes: Include, Class, Public, Float, Continue, While, Input, System, Case, Switch
Typology: Exercises
1 / 2
This page cannot be seen from the preview
Don't miss anything!
#include"copmuter.h"
class MAIN_LB:public chem_lab,public PHYSICS_lab,public bio,public comput { float z; int input; public: int get_menu() { while(1) { q1: z=0; cin.clear(); cout<<" IN WHICH LAB YOU WANT TO ENTER\n\n"; cout<<" PRESS 1 FOR BIOLOGY LAB\n"; cout<<" PRESS 2 FOR COMPUTER LAB\n"; cout<<" \tPRESS 3 FOR CHEMISTRY LAB\n"; cout<<" PRESS 4 FOR PHYSICS LAB\n"; cout<<" PRESS 5 FOR EXIT\n"; cin>>z; system("cls"); input=z; if(z-input>0) { cout<<"Not a valid option \n"; goto q1; }
if ( input!=1 && input!=2 && input!=3 && input!=4 && input!=5 ) { cout<<"Not a Valid choice \n" ; cin.clear () ; cin.ignore (INT_MAX,'\n') ; continue ; } switch(input) { case 1: biology_menu(); break; case 2: computer_menu(); break; case 3: chemistry_menu(); break; case 4: physics_menu(); break; case 5: return 1; break;
default: goto q1;
} } } };