0% found this document useful (0 votes)
6 views2 pages

Sample 1

The document outlines a homework assignment for Computer Applications due on 8/8/2022, which requires students to write Java programs for ten specific tasks. These tasks include converting distances, displaying currency denominations, calculating weighted marks, swapping values, computing simple interest, and more. Students are instructed to execute the programs and submit their code along with the output on a blue sheet.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

Sample 1

The document outlines a homework assignment for Computer Applications due on 8/8/2022, which requires students to write Java programs for ten specific tasks. These tasks include converting distances, displaying currency denominations, calculating weighted marks, swapping values, computing simple interest, and more. Students are instructed to execute the programs and submit their code along with the output on a blue sheet.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Home work – Computer Applications

Date: 6/8/2022
Instructions:
Execute java program for the following questions and write the
program along with the output on a blue sheet and submit by
8/8/2022

1. Write a program that converts a distance given in yards, feet and inches
and converts the given distance in meters. (Hint 1 yard=3 feet, 1 foot=12
inches, 1 inch=2.54 cm, 1m = 100 cm)
2. Write a program that displays an amount in rupees in terms of notes of
different denominations example, amount 1782 is displayed as
Re 1000 notes = 1
Re 500 notes = 1
Re 100 notes = 2
Re 50 notes = 1
Re 20 notes = 1
Re 10 notes = 1
Re 5 notes = 0
Re 2 notes = 1
Re 1 notes = 0
3. A school conducts three exams namely term1 exams, term2 exams and
final-term exams. Final marks scored (weightedmarks) are computed as
30% of term1 and term2 each’s marks + 40% of the final-term marks.
Write a program to compute the weighted marks for a student who
scored 412 in first term, 423 in second term and 430 in third term. Then
compute the weighted percentage out of 500 marks.
4. Write a program to swap 2 values.
5. Write a program to calculate simple interest for any principal amount,
with rate as 7.2% and time as 3 years.
6. Write a program to calculate are of a circle whose radius is given as 7.5.
(Hint area of a circle = Pi*r*r)
7. Write a program to calculate perimeters of a circle whose radius is
7.5(Hint perimeter of a circle = 2 * pi * r)
8. Write a program to convert temperature 98.6 F into degree Celsius.
(Hint Celsius = 5*(Farenheit – 32)/9)
9. Write a program that computes Bowling average for a bowler who has
given 1153 runs in 18 matches taking 109 wickets)
(Note: Bowling average is no of runs given per wickets i.e. runs / wickets)
10. A store has purchased some cola-cans of various brands. It purchased
50 cans @15 per can, 30 cans @ 20, 40 can @ 21 per can. Write a
program to compute how much amount did the store pay.

You might also like