0% found this document useful (0 votes)
18 views4 pages

Programming Exercises by Rakshanna

The document contains program prompts for students to write code to: 1) Calculate the perimeter of a triangle given its height and width as input. 2) Display student names and dates of birth sequentially from input for an ID card process. 3) Convert kilometers per hour to miles per hour to help audiences understand Usain Bolt's speed. 4) Calculate total minutes of travel given hours and minutes as input to determine travel time from Chennai to Bangalore. 5) Calculate the third angle of a triangle given two other angles as input.

Uploaded by

Raskshanna
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)
18 views4 pages

Programming Exercises by Rakshanna

The document contains program prompts for students to write code to: 1) Calculate the perimeter of a triangle given its height and width as input. 2) Display student names and dates of birth sequentially from input for an ID card process. 3) Convert kilometers per hour to miles per hour to help audiences understand Usain Bolt's speed. 4) Calculate total minutes of travel given hours and minutes as input to determine travel time from Chennai to Bangalore. 5) Calculate the third angle of a triangle given two other angles as input.

Uploaded by

Raskshanna
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

Programming for

Problem Polving
18CSS101J

Name:Rakshanna Kanthan
Roll No:RA2011003010145
Date of submission:21-04-2021
Print the perimeter of a triangle to take its height and
width as input .

Karthi was working in SRM university. He want to know


students Name and dob sequentially for id card process.
Please help him write a program that reads a first name,
last name, and year of the birth and display the names and
the year one after the another sequentially.
Usain Bolt has participated in Olympic competition. He
was running in some kilometers per hour but the audience
don’t know about his speed in kilometers per hour. Please
help the audience .write a program that converts
kilometers per hour to miles per hour.

Suresh has travelled from Chennai to Bangalore. That has


taken some hours. but he want to know how to calculate
how many minutes from Chennai to Bangalore. Write a
program that takes hours and minutes as input and
calculates the total number of minutes.
Find the third angle of thetriangle taking other 2 angles
as input.

You might also like