0% found this document useful (0 votes)
23 views6 pages

Report Template

This document summarizes a lab experiment on fundamentals of programming. The objective was to learn about input/output statements and different variable data types in C++. The lab tasks involved writing programs to input and output user data, perform calculations, and convert time formats. The conclusion restated that the lab helped practice using variables in C++ programs.

Uploaded by

aquib14125
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)
23 views6 pages

Report Template

This document summarizes a lab experiment on fundamentals of programming. The objective was to learn about input/output statements and different variable data types in C++. The lab tasks involved writing programs to input and output user data, perform calculations, and convert time formats. The conclusion restated that the lab helped practice using variables in C++ programs.

Uploaded by

aquib14125
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/ 6

AIR UNIVERSITY

DEPARTMENT OF MECHANICAL AND AEROSPACE ENGINEERING.

EXPERIMENT NO 2

Lab Title Fundamentals of Programming.


Student Name: AQIB HUSSAIN Reg. No: 220933

Objective: In this lab we are about to learn further more about cout and cin statements in
detail and different types of variables or datatypes which are int,float,double
float,char,string, and bool and we are going to use them in different programs.

LAB ASSESSMENT:

Excellent Good Average Satisfactory Unsatisfactory


Attributes
(5) (4) (3) (2) (1)
Ability to Conduct
Experiment
Ability to assimilate the
results
Effective use of lab
equipment and follows
the lab safety rules

Total Marks: Obtained Marks:

LAB REPORT ASSESSMENT:


Excellent Good Average Satisfactory Unsatisfactory
Attributes
(5) (4) (3) (2) (1)

Data presentation

Experimental results

Conclusion

Total Marks: Obtained Marks:

Date: 1-Feb-2022 Signature:


Computer Programming Lab Air University, Islamabad

Lab Tasks
Task # 1
Write a program that inputs name,age,address from the user and then displays these values on the screen.

2
Computer Programming Lab Air University, Islamabad

Task # 2
Write a program that calculates the gravitational force F.

3
Computer Programming Lab Air University, Islamabad

Task # 3
Write a C++ program that takes two floating point numbers and show the
sum,difference,multiplication,division and modulus result.

4
Computer Programming Lab Air University, Islamabad

Task # 4
Write a program that inputs time in seconds and converts it into hh-mm-ss format.

5
Computer Programming Lab Air University, Islamabad

Conclusion:
In this lab we learned about cout and cin statements in detail and how and when to use different types of
variables or datatypes which are int,float,double float,char,string,bool. We practiced all these variables by
using them in different C++ programs.

You might also like