Reference no: EM1379966
Question 1
Determine the screen output of the following code segment? Describe the reasoning behind your answer.
Test1 = 70
Test2 = 98
Test3 = 84
NumberOfTests = 3
Average = (Test1 + Test2 + Test3) / NumberOfTests
IF Average >= 90 THEN
Output = "Great job"
Output = "Your average is: ", Average
ELSE
IF Average >= 80 or Average <=89 THEN
Output = "Nice work"
Output = "Your average is: ", Average
ELSE
Output = "You will better next time!"
ENDIF
Question 2
What screen output does the following code segment produce?
p = 2
q = 4
while p < q
Output = "Adios"
r = 1
while r < q
output = "Adios"
r = r + 1
endwhile
p = p + 1
endwhile
Question 3
Design a program that allows a user to enter 10 numbers, then displays them in the reverse order of their entry. You
must use an Array as your data structure.
Question 4
Design a class named CustomerRecord that holds a customer number, name, and address. Include methods to set
the values for each data field and output the values for each data field. Create the class diagram and write the
pseudocode that defines the class.
Question 5
Design an application in which you declare an array of five numbers and store five values in the array. Write a try block in which you loop to display each successive element of the array, increasing a subscript by one on each pass through the loop. Assume you are working with a language that automatically creates an ArrayIndexOutOfBoundsException when a subscript is not correct for an array. Create a catch block that catches the exception if it is generated and displays the message, "Now you've gone too far."
Vhdl coding
: The main mission of this project is to design and build a tap changer which is going to be fitted to power transformers for regulation of the output voltage to required levels for the Micro Grid. The tap changer system will consist of 9 changers with..
|
Creating a modularized body mass index program
: Create a modularized Body Mass Index (BMI) Program which will compute the BMI of a team player.
|
Restaurant of marketing strategy of manhattan ks
: If you were inquired to develop one restaurant of marketing strategy of Manhattan KS you just want to come up with about five information wants (explain what do people in Riley County spend per week on dining out?
|
What does it express us about capitalism
: Is Wal-Mart's rapid increase to retail dominance a positive or a negative development for our society? What does it express us about capitalism, globalization and the plight of workers?
|
Determine the screen output of code segment
: Determine the screen output of the following code segment? Explain your answer.
|
Jarret owns city of savannah promises with an adjusted basis
: Jarret owns city of Savannah promises with an adjusted basis of $100000. During the year he receives interest payments of $3000. Jarret partially financed the purchase of the bonds by borrowing $80000 at 5% interest
|
Research about dining facilities at the grand hyatt seattle
: As a meeting planner you want choices for meals. Please research about dining facilities at the Grand Hyatt Seattle. You need to know what sites will be interesting to your attendees
|
Create an employee class
: Create an Employee class that has fields for the given pieces of data, Also create a class named ProductionWorker that extends the Employee class.
|
One manufacturer of dictating machines recruits
: One manufacturer of dictating machines recruits merely experienced people and doesn't recruit among graduating college students. A competitor recruits extensively amongst colleges in its search for salespeople
|