0% found this document useful (0 votes)
2 views1 page

Programs 1.1

The document outlines seven programming tasks in C. Each task involves basic calculations or conversions, such as calculating gross salary, converting distances, finding aggregate marks, temperature conversion, calculating areas and perimeters, interchanging values, and converting age into months and days. These tasks are designed to practice fundamental programming concepts.

Uploaded by

tybaclothing
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Programs 1.1

The document outlines seven programming tasks in C. Each task involves basic calculations or conversions, such as calculating gross salary, converting distances, finding aggregate marks, temperature conversion, calculating areas and perimeters, interchanging values, and converting age into months and days. These tasks are designed to practice fundamental programming concepts.

Uploaded by

tybaclothing
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Tasks! Write C Programs for the followings!

*************************************************************************************
Program 1:

Ramsha’s basic salary is input through the keyboard. His medical allowance is 40% of basic salary, and
house rent allowance is 20% of basic salary. Write a program to calculate his gross salary?

Program 2:

The distance between two cities (in km.) is input through the keyboard. Write a program to convert and
print this distance in meters, feet, inches and centimeters?

Program 3:

If the marks obtained by a student in five different subjects are input through the keyboard, find out the
aggregate marks and percentage marks obtained by the student. Assume that the maximum marks that
can be obtained by a student in each subject is 100?

Program 4:

Temperature of a city in Fahrenheit degrees is input through the keyboard. Write a program to convert
this temperature into Centigrade degrees?

Program 5:

The length & breadth of a rectangle and radius of a circle are input through the keyboard. Write a
program to calculate the area & perimeter of the rectangle, and the area & circumference of the circle?

Program 6:

Two numbers are input through the keyboard into two locations C and D. Write a program to
interchange the contents of C and D?

Program 7:

Write a program that takes age of user in years and print his/ her age in months and days.

You might also like