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

  Examine how computer forensics investigations pertain to law

Examine how computer forensics investigations pertain to law

  Design a class diagram for the ticket-processing system

Design a class diagram for the ticket-processing system

  What is the output of code fragment that invokes calc

What is output of code fragment that invokes calc

  C program to implement sieve of erastosthenes

Prepare a C program which implements the Sieve of Erastosthenes and determines the primes among the first N integers that you enter through a prompt or the command line.

  How to maintain the list of cd/dvds

How to maintain the list of CD/DVDs.

  Write down program for a bank account

Write down program for a bank account

  Suggest all sources using APA style

Suggest all sources using APA style

  Kind of the collapsible furniture

An inventor has just developed a new kind of the collapsible furniture which will be useful for the students in college dorms where space is limited.

  Describe what java environment contain to pass an arraylist

Describe what Java environment contain to pass an ArrayList

  How to concern about personal privacy, efficiency

How to concern about personal privacy, efficiency

  A system that calculates and returns the mean and a method

A system that calculates and returns the mean and a method

  Problem on sql statement

Problem on  SQL statement

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