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

  Research report on software design

Write a Research Report on software design and answer diffrent type of questions related to design. Report contain diffrent basic questions related to software design.

  A case study in c to java conversion and extensibility

A Case Study in C to Java Conversion and Extensibility

  Create a structural model

Structural modeling is a different view of the same system that you analyzed from a functional perspective. This model shows how data is organized within the system.

  Write an report on a significant software security

Write an report on a significant software security

  Development of a small software system

Analysis, design and development of a small software system.

  Systems analysis and design requirements

Systems Analysis and Design requirements

  Create a complete limited entry decision table

Create a complete limited entry decision table

  Explain flow boundaries map

Explain flow boundaries map the dfd into a software architecture using transform mapping.

  Frame diagrams

Prepare a frame diagram for the software systems.

  Identified systems and elements of the sap system

Identify computing devices, which could be used to support Your Improved Process

  Design a wireframe prototype

Design a wireframe prototype to meet the needs of the personas and requirements.

  Explain the characteristics of visual studio 2005

Explain the characteristics of Visual Studio 2005.

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