No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Life is a wonderful gift tat God given us...love,family,education and other things are the free gift of Him..so accept it with open heart!!!!!!!! â•”â•â•â•—───╔â•â•â•—─────────╔â•â•— ╚║║╬â•â•â•—║╔╗╠╗╔╦╦╦â•â•—╔╦╬â•â•‘…
#include<iostream> #include<cstdlib> #include<fstream> using namespace std; int main() { int n=3; float total,wait[3]={0}; float p[3],twaiting=0,waiting=0; int proc; int stack[3]; float burst[3],arrival[3],sburst,temp[3],top=3; for(int i=0;i<n;i++) { p[i]=i; stack[i]=i; cout<<"Enter arival time : "; cin>>arrival[i]; cout<<endl<<"Enter burst time: "; cin>>burst[i]; temp[i]=arrival[i]; sburst=burst[i]+sburst; for(i=0;i<sburst;i++) { proc=stack[0]; if(temp[proc]==i) { //temp[proc]=i+1;; twaiting=0; } else { twaiting=i-(temp[proc]); … | |
#include <iostream> #include <vector> #include <string> #include <fstream> #include <sstream> #include <windows.h> using namespace std; class Subject { protected: string sub_code; string sub_fac; public: Subject(string sub_code="", string sub_fac="") { this->sub_code = sub_code; this->sub_fac = sub_fac; } string getSubCode() {return sub_code;} string getSubFac() {return sub_fac;} }; class Student { protected: string … |