You are on page 1of 5

Ali Suleman

ID # 22K-4060
Programming Fundamentals ( Assignment 1 )
Submitted to : Ma’am Syeda Ulya Seerat
AI – Section (1A)
Question 1: Make a simple calculator of addition, subtraction and division
Question 2: Problem:
Write a program to make calculate simple interest.

Question 3:
Write a program to accept roll no and marks of 3 subjects of a student,
Calculate total of 3 subjects and average.
Question 4:
Calculate the area for a triangle in which user inputs height and length of a
triangle using scratch.

Question 5: To compute and display the temperature inside the earth in


Celsius and Fahrenheit.
Question 6: Write a program that asks a user to enter the distance of a trip in miles, the
miles per gallon estimate for the user’s car, and the average cost of a gallon of gas. Calculate
and display the number of gallons of gas needed and the estimated cost of the trip.

Question 7: Calculate the hypotenuse of a right-angled triangle with given two


sides by Pythagorean theorem using scratch.
Question 8: A water cooler is on sale for 15% off the original price. The original
price is Rs. 8500. Using scratch calculate and print the sale price.

You might also like