Reference no: EM13887634
1. Show the calculate answer for the following problem. Show the answers for both arrays.
Given the following array, INT[ ] myNumbers(7, 5)
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
And the variable INT numOne = 0.
What are the contents of these variables after running the following code?
numOne = 3
FOR count = 0, count < 5, count = count + 2
FOR count2 = 1, count2 <= count, count2++
myNumbers[ count, count2 ] = numOne + count + count2
ENDFOR
ENDFOR
FOR count = 0, count < 5, count = count + 2
FOR count2 = 1, count2 < 7, count2++
myNumbers[ count2, count ] = numOne + count + count2 +
myNumbers[ count2, count ] % count2
ENDFOR
ENDFOR
I strongly recommend that you use a memory map and keep track of your variables as you work your way through the code.
2. For the following problem:
-
- Draw a defining diagram (IPO).
- Draw a structure chart.
- Write a program using pseudocode and modularization.
Your modules must not use any global variables.
You have multiple mini sets of student records which are grouped together with their own header file that tells how many students are in that class set. The entire set of records has an EOF marker. The student records contain the student's name, class subject code, and a number grade. The class subject code is a string of letters and numbers. You are to produce a class report that gives the name of the class from the lookup table below, the numeric and letter grade for each student and for each class the high and low grades, the class average, and number of students in the class. The letter grade is determined by the student's numeric grade divided by the high grade for that class.
ITP 100
|
Programming Logic
|
ITP 120
|
Intro to Java
|
ITE 115
|
Intro to Computers
|
ITE 200
|
Local Networking
|
ITE 201
|
Wide Area Nets
|
ITP 200
|
C++ Objects
|
ITP 287
|
Python
|
ITD 100
|
Intro to Data Bases
|
Table 1 Course code and Name
90% - 100%
|
A
|
80% - 89.99%
|
B
|
70% - 79.99%
|
C
|
60% - 69.99%
|
D
|
0% - 59.99%
|
F
|
Table 2 Grade Percentage and Letter Grade
Compute the after tax cost of sandy gambling
: Sandy Assam enjoys betting on horse and dog races. This year, she won $4,308 and lost $6,735 on her gambling activities. If Sandy's marginal tax rate is 25 percent, compute the aftertax cost of her gambling assuming that: a. She does itemize deductio..
|
Why the dimensionless constant is of order one
: Usually in all discussions and arguments of scaling or solving problems using dimensional analysis, the dimensionless constant is indeterminate but it is usually assumed that it is of order 1. What does "of order 1" mean? 0.1-10?
|
How might those expansionist desires challenge
: How might those expansionist desires challenge
|
Create the inverse version of the number guesser
: Create the inverse version of the number guesser program. In this version of the program, the user comes up with the number and the computer will 'guess' the user's number. Your algorithm should be able to find a number between 1 and 100 within seven..
|
Grade percentage and letter grade
: 1. Show the calculate answer for the following problem. Show the answers for both arrays. Given the following array, INT[ ] myNumbers(7, 5)
|
Calculate length of air column that produces third resonance
: A vibrating tuning fork is held above column of air. Reservoir is raised and lowered to change water level and length of column of air. Shortest length of air that produces resonance is .25.
|
Determining the strong-field zeeman splitting
: Consider the (eight) n = 2 states, 12 / m1 ms}. Find the energy of each state, under strong-field Zeeman splitting.
|
How much time does it take to change your displacement
: As you walk to class with a constant speed of 1.55m/s , you are moving in a direction that is 19.1?north of east. How much time does it take to change your displacement by 25.0m east?
|
Threads to improve the performance of a sort algorithm
: In previous assignments, you used threads to improve the performance of a sort algorithm. Threads were initially applied in order to achieve processing concurrency in order to reduce the time required to sort data.
|