Genius

COM/204 COM204 COM 204 Chapter 7 Programming Logic and Design, PART 4

COM 204 Chapter 7 Programming Logic and Design, PART 4

Performing Maintenance

1.	A file named MAINTENANCE07-01.txt is included with your downloadable student files. Assume that this program is a working program in your organization and that it needs modifications as described in the comments (lines that begin with two slashes) at the beginning of the file. Your job is to alter the program to meet the new specifications.


Find the Bugs

1.	Your downloadable files for Chapter 7 include DEBUG07-01.txt, DEBUG07-02.txt, and DEBUG07-03.txt. Each file starts with some comments that describe the problem. Comments are lines that begin with two slashes (//). Following the comments, each file contains pseudocode that has one or more bugs you must find and correct.



2.	Your downloadable files for Chapter 7 include a file named DEBUG07-04.jpg that contains a flowchart with syntax and/or logical errors. Examine the flowchart and then find and correct all the bugs.

Game Zone


1.	The International Rock Paper Scissors Society holds regional and national championships. Each region holds a semifinal competition in which contestants play 500 games of Rock Paper Scissors. The top 20 competitors in each region are invited to the national finals. Assume that you are provided with files for the East, Midwest, and Western regions. Each file contains the following fields for the top 20 competitors: last name, first name, and number of games won. The records in each file are sorted in alphabetical order. Merge the three files to create a file of the top 60 competitors who will compete in the national championship.

2.	In the Game Zone section of Chapter 5, you designed a guessing game in which the application generates a random number and the player tries to guess it. After each guess, you displayed a message indicating whether the player- guess was correct, too high, or too low. When the player eventually guessed the correct number, you displayed a score that represented a count of the number of required guesses. Modify the game so that when it starts, the player enters his or her name. After a player plays the game exactly five times, save the best (lowest) score from the five games to a file. If the player- name already exists in the file, update the record with the new lowest score. If the player- name does not already exist in the file, create a new record for the player. After the file is updated, display all the best scores stored in the file.


Up for Discussion

1.	Suppose that you are hired by a police department to write a program that matches arrest records with court records detailing the ultimate outcome or verdict for each case. You have been given access to current files so that you can test the program. Your friend works in the personnel department of a large company and must perform background checks on potential employees. (The job applicants sign a form authorizing the check.) Police records are open to the public and your friend could look up police records at the courthouse, but it would take many hours per week. As a convenience, should you provide your friend with outcomes of any arrest records of job applicants?



2.	Suppose that you are hired by a clinic to match a file of patient office visits with patient master records to print various reports. While working with the confidential data, you notice the name of a friend- fiancé. Should you tell your friend that the fiancé is seeking medical treatment? Does the type of treatment affect your answer?


Answered
Other / Other
28 Oct 2016

Answers (1)

  1. Genius

    COM/204 COM204 COM 204 Chapter 7 Programming Logic and Design, PART 4

    Performing Maintenance 1. A file named MAINTENANCE07-01.txt is included with your downloadable st ****** ******
    To see full answer buy this answer.
    Answer Attachments

    1 attachments —

    • img
      part_4448206.docx

Report As Dispute

Share Your Feedback

Give Review : A+ A B C D F