How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask LogicPro Your Own Question

LogicPro
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 12490
Experience:  Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
29751445
Type Your Programming Question Here...
LogicPro is online now
A new question is answered every 9 seconds

These are part of the final exam. I need these answered by

Resolved Question:

These are part of the final exam. I need these answered by Sunday 9/18.

Question 1
What is the screen output of the following code segment? Explain 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.”
Submitted: 5 years ago.
Category: Programming
Expert:  LogicPro replied 5 years ago.
Hi,
I will provide the answer ASAP
Expert:  LogicPro replied 5 years ago.
Download answer from here. CPP.docx

Ask me if you need more information.
LogicPro and other Programming Specialists are ready to help you