Test 3
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
COMP122
Week 6 iLab
You are to design a program that will allow some number of grades (up to a max of 100)
to be input by the user. After the data has been collected, your program should calculate
and output the mean and median of the collected data, as w
COMP122
Week 6 Homework
Complete the following problems.
1. Write C+ statements to do the following:
a. Declare an array alpha of 15 components of type int.
b. Output the value of the 10th component of the alpha array.
c. Set the value of the 5th componen
COMP122
Week 6 iLab
You are to design a program that will allow some number of grades (up to a max of 100)
to be input by the user. After the data has been collected, your program should calculate
and output the mean and median of the collected data, as w
COMP122
Week 5 Homework
Complete the following problems.
1. Determine the value of the following expressions.
a. toupper('b') This would be an error, unless it is a type and the semi-colon is
intended then it would be an upper case B.
b. tolower('C'); c
c
COMP122
Week 3 Homework
Complete the following problems.
1. What is the output from the following C+ code fragment?
int count = 1;
int y = 100;
while(count < 100)
cfw_
y = y - 1;
count+;
cout < "y = " < y < " and count = " < count < end;
y = 1 and count
COMP122
Week 2 iLab
Complete the following two programs:
Programming Problem 1
Write a program that calculates and outputs the monthly paycheck information for an
employee, including all the amounts deducted from an employees gross pay, and the net
pay th
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 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 a low-level programming language that is executed directly by the CPU.
Si
COMP122
Week 1 iLab - Part 2
Complete the following two programs:
Programming Problem 1
John wants to know the values of the area and perimeter of a rectangle. John can take
measurements of the length and width of the rectangle in inches. John's measureme
COMP122
Week 2 Homework
Complete the following problems.
1. Suppose you are given the following variable declarations:
int x, y;
char ch;
What values (if any) are assigned to x, y, and ch after each of these statements execute?
Assume that the input to ea
COMP122
Week 2 Homework
Complete the following problems.
1. Suppose you are given the following variable declarations:
int x, y;
char ch;
What values (if any) are assigned to x, y, and ch after each of these statements execute?
Assume that the input to ea
COMP122
Week 3 Homework
Complete the following problems.
1. What is the output from the following C+ code fragment?
int count = 1;
int y = 100;
while(count < 100)
cfw_
y = y - 1;
count+;
cout < "y = " < y < " and count = " < count < endl;
y = 1 and count
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 a language that a computer can understand and execute. Writing
programs i
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 6 Homework
Complete the following problems.
1. Write C+ statements to do the following:
a. Declare an array alpha of 15 components of type int.
int alpha[15];
b. Output the value of the 10th component of the alpha array.
cout < alpha[9];
c. S
COMP122
Week 2 iLab
Due: 11:59pm (Central Time), March 19th (Thursday midnight)
Late submission is not accepted, and will cause 0 points.
Please save your file as LastName_FirstName_W2_iLab.docx, and then submit to iLab
Folder in Dropbox.
Complete the fol
home / homework help / questions and answers / engineering / computer science / programming
problem 1 write a program that calculates .
Question
Programming Problem 1
Write a program that calculates and outputs the monthly paycheck information for an
empl
COMP122
Week 5 Homework
Due: 11:59pm (Central Time), April 9th (Thursday midnight)
Late submission is not accepted, and will cause 0 points.
Please save your file as LastName_FirstName_W5_Homework.docx, and then submit
to Assignments Folder in Dropbox.
Do
Mutaa Elamari
July 21, 2016
JasonMeltzer
Comp 122
COMP122
Week 3 Homework
Complete the following problems.
1. What is the output from the following C+ code fragment?
int count = 1;
int y = 100;
while(count < 100)
cfw_
y = y - 1;
count+;
cout < "y = " < y
MAT 230 Finite Analysis - SYLLABUS
Course Description:
MAT 230 Finite Analysis - 3 credits
This course introduces mathematical techniques used in business, economics, and social sciences. Topics
include mathematics of finance, systems of linear equations
COMP 122: Structured
Programming
Zhu Wang (Ph.D.)
College of Engineering &
Information Sciences, Devry
University
Email: zwang@devry.edu
Midterm Statistics
126-140
3
112-125
6
98-111
1
84-97
5
below 84
8
no attendance 2
Current Total Statistics
90%