Checkout
checkout
view
Your Cart Your Cart: item(s)
View Details $1.99 Download Add to Cart

Program Test Procedures

Generate a set of test inputs and expected results for the Currency Conversion program. Pseudocode: Input: Arrays of Employee Name and Salary [1..N] Output: MeanSalary, nSalaryAbove, nSalaryBelow Uses: BubbleSort Declaration: Real TotalSalary, MeanSalary Integer nSalaryAbove, nSalaryBelow, Count, i Process Begin //sort the Salary Array Call BubbleSort(Salary[1..N]) //Find the Average TotalSalary = 0 Count = 0 For i = 1 to N Do TotalSalary = TotalSalary + Salary[i] Count = Count + 1 Done MeanSalary = TotalSalary / Count //Find the number of salaries above or below the mean nSalaryAbove = 0 nSalaryBelow = 0 For i = 1 to N Do If Salary[i] > MeanSalary T... click for more

Subject:

Computer Science

Topic:

Data Structures and Algorithms

Posting ID:

189967

OTA ID:

106103

View Details $1.99 Download Add to Cart

Pseudocode Code

For each of the following problems, use the top-down modular approach and pseudocode to design a suitable program to solve it. 1. Input names of students from the user, terminated by ZZZ, and create a data file GRADES with records of the form: student (string), test1 (integer), test2 (integer), test3 (integer) In this file, all test scores should be set equal to 0. 2. Display the contents of the file GRADES created in Problem 1. Each student’s record should appear on a separate line and include the total score (the sum of the three tests) for that student. For example, a line of output might be: R. Abrams 76 84 82 242

Subject:

Computer Science

Topic:

Data Structures and Algorithms

Posting ID:

190915

OTA ID:

105859

View Details $1.99 Download Add to Cart

Object oriented thinking about microwave oven in your kitchen.

Consider the microwave oven in your kitchen, using object-oriented thinking. • Create a table with the following four column headings: Top-Level Objects, Communicates With, Incoming Messages, and Outgoing Messages. o Identity the top-level objects of the microwave. o Explain some of the graphical user interfaces (GUIs) and communications messages that occur during the operation of a microwave. • Describe some of the advantages of having a componentized system. For example, what happens if the microwave breaks?

Subject:

Computer Science

Topic:

Data Structures and Algorithms

Posting ID:

191793

OTA ID:

103644

View Details $1.99 Download Add to Cart

Pseudocode - Driving a Car

Driving a Car • Write a short, structured design (pseudocode) that accomplishes this task. • Think about this task in an object-oriented way, and identify the objects involved in the task. • Identify how you can encapsulate the data and processes you identified into an objectoriented design. • Describe the architectural differences between the object-oriented and structured designs.

Subject:

Computer Science

Topic:

Data Structures and Algorithms

Posting ID:

192345

OTA ID:

103644

View Details $1.99 Download Add to Cart

Generate an object-oriented design for a system that keeps tracks of your CD and DVD collection.

Generate an object-oriented design for a system that keeps tracks of your CD and DVD collection. • Identify each of the classes, associated data, and operations for the classes. • Generate the pseudocode for each of the classes. • Draw a GUI that will create the objects and provide access to each object’s processing methods. Here is the example Class Cube Side As Real Volume As Real Subprogram SetSide(NewSide) Set Side = NewSide End Subprogram Subprogram ComputeVolume() Set Volume = Side ^ 3 End Subprogram Function GetVolume() As Real Set GetVolume = Volume End Function Function GetSide() As Real Set GetSide = Side End Function End Class Class SquareBox As Cube Height... click for more

Subject:

Computer Science

Topic:

Data Structures and Algorithms

Posting ID:

192347

OTA ID:

105277

Page generated in 0.112 seconds

About Us ·  Contact Us ·  Samples ·  Solutions ·  Legal Terms and Conditions ·  Privacy Policy

©2008 SolutionLibrary.com

Search for Solutions About Us Samples