0% found this document useful (0 votes)
15 views3 pages

Sample Programming Lab Report

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)
15 views3 pages

Sample Programming Lab Report

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/ 3

ME-101L Lab Report

Department of Mechanical Engineering


University of Engineering & Technology
Main Campus, Peshawar

LAB REPORT # 1

ME-101L Lab Report Submitted By:

Name: Afraz Attaullah.

Registration No:

Section: A

Submitted To:

Dr. Fakhr e Alam Khan

Lab Date: Marks & Signature

Submission Date:
Objective(s):
♦ To convert temp into kelvin and Celsius in minimum amount of time.
♦Solve conversion problems involving temp in
fahrenheit scale.
Title:
Write down algorithm as well as make flowchart of program that take temp in F and convert it to
Kelvin and Celsius scale and then show the result in both the scale
Problem Analysis:

Input Processing Output Necessary header


variables variables/calculations variables files/functions/macros
Input F C=(F-32)*5/9 and C= -6.67
I.e 20 K=C+273.15 K= 266.48 ___________________
Algorithm:
1. Start.
2. Input temp in F.
3. Convert F to C via formula C=(F-32)*5/9.
4. Convert F into K via formula K=C+273.15.
5. Print temp in C.
6. Print temp in K.
7. End.
Flowchart:

Output (Compilation, Debugging & Testing)


The temp in C is -6.67 while in K it is 266.48 when the temp in F is taken 20.

Discussion and Conclusion This is the algorithm along with its flowchart for temperature
conversion. The algorithm is focused on the calculation of temp in K and C for the given temp in F.
From this lab, I understood the basic structure of flowchart including the meaning and purpose of
algorithm and steps of problem solving. Hence, temp in K and C is calculated and displayed.

You might also like