Determine the screen output of code segment

Assignment Help Software Engineering
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."

Reference no: EM1379966

Questions Cloud

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

Reviews

Write a Review

Software Engineering Questions & Answers

  Produce set of crc cards-uml diagram-javadoc comments

Produce a set of CRC cards, a UML diagram, and a set of javadoc comments (detailed JavaDoc only for each method created, no coding required).

  Different approaches for system development

In Systems Analysis and Design. There are at least 2 approaches to system development, variety of life cycles, and long list of techniques.

  Object oriented programming and object oriented design

Discover resources on Visual Basic. Choose your favorite 3-and describe what they have to offer. Also discuss the differences between Object-Oriented Programming and Object Oriented Design.

  Create crow-s foot erd for business rules for company

Create Crow's Foot ERD to include the following business rules for the ProdCo company: Each sales representative writes many invoices

  Finding cause of the bug

The following LMC program is supposed to input two numbers, compare them, and output the higher of the two numbers.

  Creating flowchart and pseudocode using control breaks

Shemrock Corporation is a brake pad manufacturing firm. This corporation uses raw materials, such as carbon powder, iron, ash, and resin.

  Requirements to analyse-design system of sell-bike software

What are the requirements to analyse and design the system of Sell-Bike software is a SME (small to medium enterprise) company selling students bicycles.

  End users must be involved in database design in a limit

End users must be involved in database design, but only to  degree. What are you are your toughts do you agree or did agree why or why not.

  Introduction to the theory of computation

The language define through the equality of two 2DIM-DFA machines on all inputs is un-decidable. The full definition of 2DIM-DFA can be discovered in Sipser's Introduction to the Theory of Computation.

  Draw pattern activity for adapter and data access object

Draw Pattern Activity: Create a 2-3 page paper comparing and contrasting five of design patterns. Select any five from the list.

  Draw flowchart to let a user play rounds of head

Draw a flowchart to let a user play 10rounds of head or tail guessing game. Display how many times the player has guessed the outcomes correctly.

  Design conceptual diagram to identify hardware elements

Design a conceptual diagram which identifies the hardware elements present inall computer systems and their relationships?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd