#include<iostream.h> #include<conio.h> void main() { long float interest, prince, rate, amt; int time, temp, r; char choice; do { clrscr (); cout<<"PLEASE ENTER THE PRINCIPAL AMOUNT : "; cin>>prince; cout<<"\nENTER THE RATE OF INTEREST : "; cin>>rate; cout<<"\nENTER THE TIME : "; cin>>time; amt=prince; cout<<"\n\tTIME\tSIMPLE INTEREST\tAMOUNT"; for(r=8, temp=0,interest=0;temp<=time;temp++, r++) { cout<<"\n\t"<<temp<<"\t"<<interest; gotoxy(33,r); cout<<amt; interest=(amt*rate)/100; amt=amt+interest; } cout<<"\n\tClosing"<<"\t"<<interest; cout<<amt; cout<<"\n\nTHUS, THE FINAL AMOUNT IS : "<<amt; cout<<"\n\nREPEAT? (y/n) : "; cin>>choice; if(choice=='n'||choice=='N') cout<<"\nTHANK YOU"; getch(); }while(choice=='y'||choice=='Y'); } |
Define the essential properties of the following types of operating sys-tems: Batch Interactive Time sharing Real time Network Parallel Distributed Clustered Handheld ANSWERS: a. Batch processing:- Jobs with similar needs are batched together and run through the computer as a group by an operator or automatic job sequencer. Performance is increased by attempting to keep CPU and I/O devices busy at all times through buffering, off-line operation, spooling, and multi-programming. Batch is good for executing large jobs that need little interaction; it can be submitted and picked up later. b. Interactive System:- This system is composed of many short transactions where the results of the next transaction may be unpredictable. Response time needs to be short (seconds) since the user submits and waits for the result. c. Time sharing:- This systems uses CPU scheduling and multipro-gramming to provide econ...
Comments
Post a Comment