Generating algorithm to read artibitary number of records

Assignment Help Computer Engineering
Reference no: EM1316998

1) Build an algorithm in order to read an arbitrary number of data records, each containing of the name, age, and code. A Code of 1 will signify female, a code of 2 specifies male; and a code of 0 specifies that the end-of-file has been achieved. For each record, write down a detailed line listing the person's name and age. In addition, compute and output the following values:

a) Number of males less than or equal to 21 yrs old.

b) Number of females less than or equal to the 21 years old.

c) Average age of all persons over 21.

d) Total number of the people.

Reference no: EM1316998

Questions Cloud

Calculate the amount : Calculate the amount
Behavior of firms in oligopoly : Suppose that the software market currently has one firm operating -Microhard. What contract should be writen between the bank and Newvel?
Determining critical value using one-tailed t-test : Assume a one-tailed t -test is being applied to determine if population mean is less than $212.  Level of significance chosen is 0.01 and 26 accounts are sampled. Determine the critical value?
Relationship from sample information : At the .01 significance level, is there a relationship between job pressure and age?
Generating algorithm to read artibitary number of records : write down a detailed 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.
Finding decision rule-rejecting null hypothesis : We desire to test at 0.05 level of significance whether modification increases the life of battery.  What is our decision rule? Reject null hypothesis if calculated t is less than 1.96.
Assuming the distribution of heights : Assume that the distribution of heights of adults American normally distributed, with mean 69 inches and standard deviation 2.8 inches.
Find the contact time for inactivating gardia cysts : Find the contact time for inactivating Gardia cysts - How much contact time would be required for inactivating Gardia   cysts
Explain current dividend, current price and pe ratio : Explain Current dividend, current price and PE ratio of stock and what was the net price change for the date covered by the paper

Reviews

Write a Review

Computer Engineering Questions & Answers

  Illustrate the control flow graph

Illustrate the control flow graph

  Explain the reason for the project development

Two members of your project development team are differing about relative significance of training and documentation.

  Write an essay on wifi performance

Write an essay on WiFi performance

  Demonstrate that the expected search time for hashing

Demonstrate that the expected search time for hashing

  Write pseudo code - program and draw flow chart

Write pseudo code, program and draw flow chart for programs

  Problems on relation and functional dependencies

Problems on  relation and functional dependencies

  Define the way for creating work breakdown structure

Define the way for creating work breakdown structure Use a hypothetical project to illustrate your understanding of the WBS.

  What personnel implications are when setting up a wan

What personnel implications are when setting up a wan? You are hired by a firm that has offices in Peru, France, the United States, and Hungary. Your job is to coordinate a team of IT workers to connect all of individual sites into one large WAN.

  Classify and discuss compensation potentially

Classify and discuss compensation potentially.

  Windows live id and skydrive account

Suppose there are 1 million books within your campus library. Approximate (to the nearest order of magnitude) how several bytes of the data there are in case all these books were stored online and accessible across the computer network.

  What are disadvantages of low class

What are disadvantages of low class What are advantages of high value?

  Generate a class name that starts with string variable

Generate a class Name that starts with string variable

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd