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

  Discuss the importance of saving work

Access saves database values as they are added eliminating the need to save every time a record is added, edited, or deleted. Discuss and explain the importance of protecting your work.

  Create class diagram for company has number of employees

Create a class diagram for following problem. A company has a number of employees. Attributes of employee include employeeID (primary key), name, address, and birthdate.

  Question about make buy decision

The make purchase decision is an important management prerogative. Assumed to be a manager of a software company that has an average software development cost of $20/LOC.

  Draw entity relationship model for project management system

A consultant is not necessarily a project leader, but they can only be project leader for one project. Draw an entity relationship model for the project management System.

  Brainstorming and delphi technique for risk identification

Discuss the difference between using brainstorming and the Delphi Technique for risk identification and determine some of the advantages and disadvantages of each approach?

  Internal events by creatinguml one state diagram

Which event driven modeling can be used to illustrate how system responds to external and/or internal events by creating a UML ONE State Diagram.

  Tcp sender and receiver sequence

Think about a TCP sender and receiver. Suppose bytes 0 .. 99 have been sent, received, and acknowledged (the sender has received ack's for them). Suppose the sender sends the following segments

  Write down critical success factors for project manager

Write down the critical success factors for project manager? what skills must managers look for when hiring someone who would be successful in this job?

  Create single conceptual erd showing entity-s primary key

Create single Conceptual ERD (on a single slide) for entire Case Study showing all attributes and identifying each entity's primary key.

  Changes require to make to premiere products database design

Indicate changes (using shorthand representation) which you would require to make to Premiere Products database design to support following requirements.

  Drawing diagram of payroll edi system

Draw diagram of the proposed payroll EDI and EFT system. It is suggested for students to utilize Microsoft Visio to draw the diagram.

  Benefits rfp in process of purchasing technology

Why do companies use RFPs and what benefits does use of RFP give to process of purchasing technology?

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