<< Prev Showing: 346-350 of 353 Next >>
· 306-310 · 311-315 · 316-320 · 321-325 · 326-330 · 331-335 · 336-340 · 341-345 · 346-350 · 351-355 ·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
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
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
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
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
<< Prev Showing: 346-350 of 353 Next >>
· 1-5 · 6-10 · 11-15 · 16-20 · 21-25 · 26-30 · 31-35 · 36-40 · 41-45 · 46-50 · 51-55 · 56-60 · 61-65 · 66-70 · 71-75 · 76-80 · 81-85 · 86-90 · 91-95 · 96-100 · 101-105 · 106-110 · 111-115 · 116-120 · 121-125 · 126-130 · 131-135 · 136-140 · 141-145 · 146-150 · 151-155 · 156-160 · 161-165 · 166-170 · 171-175 · 176-180 · 181-185 · 186-190 · 191-195 · 196-200 · 201-205 · 206-210 · 211-215 · 216-220 · 221-225 · 226-230 · 231-235 · 236-240 · 241-245 · 246-250 · 251-255 · 256-260 · 261-265 · 266-270 · 271-275 · 276-280 · 281-285 · 286-290 · 291-295 · 296-300 · 301-305 · 306-310 · 311-315 · 316-320 · 321-325 · 326-330 · 331-335 · 336-340 · 341-345 · 346-350 · 351-353 ·Page generated in 0.112 seconds