COMP122
Week 5 iLab
Objectives
Apply structured and modular design principles to write programs that meet written
specifications and requirements.
Develop a pseudo-code design using appropriate program structure (sequence, selection,
repetition and nestin

COMP122
Week 7 iLab
The focus of this lab is on using strings. You will have an opportunity to work with both C style
strings and the string data type. This lab also gives you an opportunity to use what you have
learned previously, including using functio

COMP122
Week 1 Homework
Part 1: Complete the following problems.
1. What is machine code? Why is it preferable to write programs in a high level language
such as C+?
Machine code is in the form of 1's and 0's. It is the final code which runs on your
compu

COMP122
Week 3 iLab
Complete the following two programs:
Programming Problem 1
Write a program that generates all the factors of a number entered by the user. For
instance, the number 12 has the factors 2 * 2 * 3. This program has the following
requiremen

COMP122
Week 5 Homework
Complete the following problems.
1. Determine the value of the following expressions.
a. toupper('b')
B
b. tolower('C');
c
c. pow(3.0,3.0);
27
d. sqrt(81.0);
9
e. fabs(-1.23);
1.23
f. floor(22.46);
22
g. ceil(33.3);
34
2. Using the

COMP122
Week 3 iLab
Complete the following two programs:
Programming Problem 1
Write a program that generates all the factors of a number entered by the user. For
instance, the number 12 has the factors 2 * 2 * 3. This program has the following
requiremen