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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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