Design an algorithm to read an arbitrary number of data


All to be done in Visio (flowchart). Header Record Logic.

Book Tools for Structured and Object-Oriented Design 7th edition. (Marilyn Bohl author)

1. Design an algorithm to read an arbitrary number of data records, each containing a name, age, and code. A Code of 1 will indicate female, a code of 2 will indicate male; and a code of 0 will indicate that the end-of-file has been reached. For each record, write a detail line listing the person's name and age. In addition, compute and output the following values: Number of males less than or equal to 21 yrs old. Number of females less than or equal to 21 years old. Avg age of all persons over 21. Total number of people.
1B. Redo same flowchart in modular approach.

2. Design an algorithm to prepare a daily hotel charge report. Input consists of a series of records that contain a room number, the customer name, the cost of the room, and the cost of meals charged to the room. Output is a hotel charge report that will contain the room numbers, customer name, room charge, meal charges, and total charges. After all records have been processed, the total number of rooms rented, the total room charges, total meal charges, and a final total of all charges are to be printed. A room number of 000 will be used to signal the end of the input.
2B. Redo same flowchart in modular approach

3. Design an algorithm to prepare a job applicant report. Input consists of a series of records that contain the Social Security number or equivalent, last name, first name, middle initial, verbal test score, science test score, math test score, and logic test score of each job applicant. Output is to consist of detail lines containing the contents of each input record as well as the average of the four test scores. In addition, averages for each of the four test score categories should be output at the end of the report. Use automatic end of file logic to signal the end of the input.
3B. Redo same flowchart in modular approach

4. Design an algorithm to compute and print the average earnings, lowest earnings, and highest earnings of a group of employees. Each input record will contain the name and earnings of one employee. No headings or page numbers are required. Used Automatic end-of-file logic to signal the end of the input.

Request for Solution File

Ask an Expert for Answer!!
Data Structure & Algorithms: Design an algorithm to read an arbitrary number of data
Reference No:- TGS0144166

Expected delivery within 24 Hours