0% found this document useful (0 votes)
83 views2 pages

SKR 3306 Lab 02-Assignment 2-Cal

This document outlines 8 programming assignments involving the use of function procedures in C++. The assignments involve: 1) calculating math operations on two user-inputted numbers, 2) comparing two integers and printing a message, 3) calculating operations on three integers, 4) determining if a number is even or odd, 5) checking if one number is a multiple of another, 6) separating digits of a number, 7) calculating squares and cubes of numbers 0-10, and 8) creating a BMI calculator.

Uploaded by

azmie2008
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
83 views2 pages

SKR 3306 Lab 02-Assignment 2-Cal

This document outlines 8 programming assignments involving the use of function procedures in C++. The assignments involve: 1) calculating math operations on two user-inputted numbers, 2) comparing two integers and printing a message, 3) calculating operations on three integers, 4) determining if a number is even or odd, 5) checking if one number is a multiple of another, 6) separating digits of a number, 7) calculating squares and cubes of numbers 0-10, and 8) creating a BMI calculator.

Uploaded by

azmie2008
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

SKR 3306 C++ Programming

Lab Assignment 2
1. Write a program that used un!tion pro!edures to as" the user to enter t#o
numbers$ obtains the t#o numbers rom the user and prints the sum$ produ!t$
dieren!e$ and %uotient o the t#o numbers.
2. Write a program that used un!tion pro!edures to as" the user to enter t#o
integers$ obtains the numbers rom the user$ then prints the &arge number o&&o#ed
b' the #ord (is &arger.) * the numbers are e%ua&$ print the message (+hese
numbers are e%ua&.)
3. Write a program that used un!tion pro!edures to inputs three integers rom the
"e'board and prints the sum$ a,erage$ produ!t$ sma&&est and &argest o these
numbers. +he s!reen dia&og shou&d appear as o&&o#-
.. Write a program that used un!tion pro!edures to reads an integer and determines
and prints #hether it/s odd or e,en.
0. Write a program that used un!tion pro!edures to reads in t#o integers and
determines and prints i the irst is a mu&tip&e o the se!ond.
6. Write a program that used un!tion pro!edures to inputs a i,e1digit integer$
separates the integer into its digits and prints them separated b' three spa!es ea!h
that &oo"s &i"e the o&&o#ing.
2. Write a program that !a&!u&ates the s%uares and !ubes o the integers rom 0 to 10.
3se tabs to print the o&&o#ing neat&' ormatted tab&e o ,a&ues-
4. Create a 56* 75od' 6ass *nde89 !a&!u&ator app&i!ation that reads the user/s
#eight in "i&ograms and height in meters$ then b' using a un!tion pro!edure to
!a&!u&ates and disp&a's the user/s bod' mass inde8.
weightInKilograms
BMI
heightInMeters heightInMeters
=

You might also like