Arithmetic Operations and Printing On Screen-Computer Programming-Lab Assignment, Exercises of Computer Engineering and Programming

This is lab task for Computer Programming course. It was assigned by Sonia Singh at Alliance University. It includes: Implement, Programs, Flow, Charts, Calculate, Perform, Arithmetic, Operations, Modulus, Convert, Temperature

Typology: Exercises

2011/2012

Uploaded on 07/12/2012

vish
vish 🇮🇳

3 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Computer Programming-LAB
SPRING 2012
PROGRAMMING ASSIGNMENT I
Note: Implement the given programs in to C++ and also draw flow charts of any three of
the given programs.
Program-1: Write a program to get name and age (in years) of a person. Calculate the
age in months and print the name of person and its age in months.
Program-2: Write a program to perform the arithmetic operations by using all
arithmetic operators (including modulus operator). Also print the results on screen.
Program-3: Write a program that will display the following output on the screen as it
is mentioned here:
Computer programming
(often shortened to programming or coding) is the process of designing,
writing, testing, debugging / troubleshooting, and maintaining the
source code of computer programs.
This source code is
written in a
programming language.
Program-4: Write a program that will display the following output on the screen as it
is mentioned here:
*
* *
* * *
* * * *
* * * * *
* * * * * *
* * * * * * *
Program-5: Lets suppose a car is moving on the road we are required to calculate its
final velocity through a computer program. Write a program that calculates and prints
the final velocity of the car.
Program-6: Write a program that takes temperature in Fahrenheit from the user.
Convert the temperature to Celsius degrees.
Directions: Understand the Problems thoroughly and implement them by yours own
don’t copy or cheat of any of yours mate because demonstration in class of individual
student will be held according to the given plan of five students in a class, in case of
plagiarism detected the person will be directly given 0. Good luck and May Allah Pak
bless you.
Deadline: 27th February
2011
Deadline: 27th February
2012
Docsity.com

Partial preview of the text

Download Arithmetic Operations and Printing On Screen-Computer Programming-Lab Assignment and more Exercises Computer Engineering and Programming in PDF only on Docsity!

Computer Programming-LAB SPRING 2012

PROGRAMMING ASSIGNMENT– I

Note : Implement the given programs in to C++ and also draw flow charts of any three of the given programs.

Program-1 : Write a program to get name and age (in years) of a person. Calculate the age in months and print the name of person and its age in months.  Program-2: Write a program to perform the arithmetic operations by using all arithmetic operators (including modulus operator). Also print the results on screen.  Program-3: Write a program that will display the following output on the screen as it is mentioned here:

Computer programming (often shortened to programming or coding) is the process of designing, writing, testing, debugging / troubleshooting, and maintaining the source code of computer programs. This source code is written in a programming language.

Program-4: Write a program that will display the following output on the screen as it is mentioned here:






Program-5: Lets suppose a car is moving on the road we are required to calculate its final velocity through a computer program. Write a program that calculates and prints the final velocity of the car.  Program-6: Write a program that takes temperature in Fahrenheit from the user. Convert the temperature to Celsius degrees.

Directions: Understand the Problems thoroughly and implement them by yours own don’t copy or cheat of any of yours mate because demonstration in class of individual student will be held according to the given plan of five students in a class, in case of plagiarism detected the person will be directly given 0. Good luck and May Allah Pak bless you.

Deadline: 27 th^ February 2011

Deadline: 27th^ February 2012

Docsity.com