CMIS 140
Lab exercise 3
Write a program that uses a for loop to input a user-specified number
of numbers, sum them, find the minimum and maximum of the numbers, and
their average.
Also sum the square roots of the numbers. Does the sum of the square
roots equal the square root of the sum of the numbers?
Write a program that converts Roman numeral numbers to decimal
numbers.
The Roman number will be a sequence of Roman numeral characters like
MDCCLXXVI
where an M equals 1000
D is 500
C is 100
L is 50
X is 10
V is 5
I is 1
these can be input one by one by:
cin.get(charVar);
then switching on the charVar and adding the appropriate decimal value
to a summing int variable. Loop until the charVar is '\n'