, , , , , , , ,

[SOLVED] Csc250 computer science 2 programming assignment 1 sorting & searching arrays

$25

File Name: Csc250_computer_science_2_programming_assignment_1_sorting___searching_arrays.zip
File Size: 725.34 KB

5/5 - (1 vote)

Snowball Fight

A text file named snowball.txt contains a 3-digit Team ID, number of times the team hit a member of another time (hits), and the number of times a member of this team was hit (times hit) for each team participating in a campus-wide snowball fight.  The data is organized on up to 50 lines in the data file, as shown below.

 

182 37 12

837 14 25

374 29 28

 

Write a program that allows the user to enter a team’s ID and displays the number of hits for that team.  You must use the binary search algorithm studied in Unit 1 in this program.  Your program should do the following:

 

 

Your program must be modular, with separate functions to: read the data file, sort the arrays in parallel, input a number from the user, search, and print the results.  Your output should be well-organized, neat, and easy to read.

 

Design your program by completing the CSC 250 Program Design Document.  Be sure to include a structure chart for the program, a prototype for each function, and time estimates for program design, coding each function, program testing, and total time.  Save the design in a file named SnowballDesign_xxx.doc where xxx are your initials.  Submit your program design in the Program 1 Design drop box by the due date shown in the calendar and drop box tools.  (This is before the Program due date).

 

Write your program.

 

Save your program in a file named snowball_xxx.cpp where xxx are your initials.

 

Compile, run and test your program.

 

Update the structure chart & function descriptions in your Program Design Document to fit your working program.  Update the time estimates based on actual time spent.

 

Submit your updated Program Design document and working .cpp file in the Program 1 drop box by the due date shown in the calendar and drop box tools.

 

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] Csc250 computer science 2 programming assignment 1 sorting & searching arrays[SOLVED] Csc250 computer science 2 programming assignment 1 sorting & searching arrays
$25