c++ programming language lab # 4 loopssite.iugaza.edu.ps/rsalamah/files/2010/02/lab4_a.pdf · 2 c++...
TRANSCRIPT
Faculty of Engineering Computer Engineering Department Islamic University of Gaza
2014
C++ Programming Language Lab # 4 Loops
2
C++ Programming Language Lab # 4 Loops
Lab work1
Write a program that reads a word and prints each character of the word
on a separate line. For example, if the user provides the input "Harry",
the program prints
H
a
r
r
y
Lab work2
Mean and standard deviation. Write a program that reads a set of
floating-point data values. Choose an appropriate mechanism for
prompting for the end of the data set.When all values have been read,
print out the count of the values, the average, and the standard deviation,
where
Lab work3
Write a program that prints all the prime numbers between 1 and num
(num entered by the user)
3
Lab work4
Write a program that prints a multiplication table, like this:
Lab work5
The Fibonacci numbers are defined by the sequence
The series will be like this:
1 1 2 3 5 8 13 21 34 ……………..and so on.
Implement a program that computes the Fibonacci numbers in that way.