100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Class notes

Confidence

Rating
-
Sold
-
Pages
24
Uploaded on
21-06-2024
Written in
2023/2024

Lecture notes study book Exam Ref 70-740 Installation, Storage and Compute with Windows Server 2016 of Craig Zacker - ISBN: 9780735698826, Edition: 1, Year of publication: - (Study verywell)

Institution
Course










Whoops! We can’t load your doc right now. Try again or contact support.

Connected book

Written for

Institution
Secondary school
School year
2

Document information

Uploaded on
June 21, 2024
Number of pages
24
Written in
2023/2024
Type
Class notes
Professor(s)
Abhi
Contains
All classes

Subjects

Content preview

Join Now: https://join.hsslive.in Downloaded from https://www.hsslive.in ®

SOLVED LAB WORK OF COMPUTER APPLICATIONS(COMMERCE)
2023-24
1. Input three numbers and find the largest.

#include<iostream>
using namespace std;
int main()
{
int a,b,c;
cout<<"Find the largest number among three\n\n\n";
cout<<"Enter three numbers :";
cin>>a>>b>>c;
if((a>b) && (a>c))
cout<<"The largest number is :"<<a;
else if(b>c)
cout<<"The largest number is :"<<b;
else
cout<<"The largest number is :"<<c;
return 0;
}

OUTPUT

Find the largest number among three


Enter three numbers :23 76 54
The largest number is :76

2. Input the principal amount, type of account (C for current a/c or S for SB a/c) and number of years, and
display the amount of interest. Rate of interest for current a/c is 8.5% and that of SB a/c is 6.5%.

#include<iostream>
using namespace std;
int main()
{
int am,yr;
char ty;
float cint,sint;
cout<<"Enter the principle amount :\n";
cin>>am;
cout<<"Enter the type of account(c for current and s for savings)\n";
cin>>ty;
cout<<"Enter the number of years (period of deposit) :";
cin>>yr;
cint=(am*8.5/100)*yr;
sint=(am*6.5/100)*yr;
if((ty=='c') || (ty=='C'))




Prepared by Binu Kumar V V, HSSTComputer Science, NSS HSS Mundathicode for Hsslive.in Page No:1

, Join Now: https://join.hsslive.in Downloaded from https://www.hsslive.in ®




cout<<"The rate of interest (Current Account) :"<<cint;
else if((ty=='s') || (ty=='S'))
cout<<"the rate of interest (Savings) :"<<sint;
return 0;
}

OUTPUT


Enter the principle amount :
1000
Enter the type of account(c for current and s for savings)
c
Enter the number of years (period of deposit) :2
The rate of interest (Current Account) :170

Enter the principle amount :
1000
Enter the type of account(c for current and s for savings)
s
Enter the number of years (period of deposit) :2
the rate of interest (Savings) :130


3. Input a digit and display the same in word. (Zero for 0, One for 1, …., Nine for 9)
#include <iostream>
using namespace std;
int main()
{
long int n,sum=0,r;
cout<<"Enter the Number= ";
cin>>n;
while(n>0)
{
r=n%10;
sum=sum*10+r;
n=n/10;
}
n=sum;
while(n>0)
{
r=n%10;




Prepared by Binu Kumar V V, HSSTComputer Science, NSS HSS Mundathicode for Hsslive.in Page No:2

, Join Now: https://join.hsslive.in Downloaded from https://www.hsslive.in ®




switch(r)
{
case 1:
cout<<"one ";
break;
case 2:
cout<<"two ";
break;
case 3:
cout<<"three ";
break;
case 4:
cout<<"four ";
break;
case 5:
cout<<"five ";
break;
case 6:
cout<<"six ";
break;
case 7:
cout<<"seven ";
break;
case 8:
cout<<"eight ";
break;
case 9:
cout<<"nine ";
break;
case 0:
cout<<"zero ";
break;
default:
cout<<"not valid";
break;
}
n=n/10;
}
}


OUTPUT
Enter the Number= 485
four eight five




Prepared by Binu Kumar V V, HSSTComputer Science, NSS HSS Mundathicode for Hsslive.in Page No:3
$7.99
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
abhinandh

Get to know the seller

Seller avatar
abhinandh
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
1 year
Number of followers
0
Documents
4
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions