Program read data from input file and select specified items

Assignment Help Programming Languages
Reference no: EM1382528

The input of this program will be file in which each line represents one person. Person's name is first, followed by comma. After that, separated by spaces, are age and single-character code (M or F) for gender. This file contains records of people of all ages and both genders. You work for school system which requires to make one file comprising names of males of school age (5...18) and another for females of school age. Program should be able to read data from input file and select the specified items. Write data for school-age males to file male.out and data for school-age females to female.out. Log bad data sets on file error.log. Ignore any input data for children younger than 5 and adults older than 18.

Reference no: EM1382528

Questions Cloud

Effective thermal capacity in climates : For energy conservation, materials with a high thermal capacity are effective in climates in which the heat flow through the building envelope is:
Cross in pure breeding green budgie and albino budgie : A cross is made in a pure-breeding green budgie and a pure-breeding albino budgie. What are the genotypes of the parent birds?
How many seconds before plane is directly overhead : A piston, A, has a diameter of 0.74cm. A second piston, B, has a diameter of 2.6 cm. In the absence of friction, determine the force, F, essential to support the 539.7 N weights. Answer in units of N.
Gross sales for the quarter are projected : Gross sales for the quarter are projected as follows: January, $20,000; February, $10,000; and March, $30,000. Accounts receivable on December 31 were $15,000. Larsen's expected cash collections for March would be:
Program read data from input file and select specified items : Program should be able to read data from input file and select the specified items. Write data for school-age males to file male.out and data for school-age females to female.out.
What is the kinetic energy of emitted electrons : A person with perfect pitch sits on a bus bench listening to the 450 Hz horn of an approaching car. If the person detects the frequency of 470 Hz, how fast is the car moving.
Nonradioactive phosphorous for many generations : Phosphorous is needed to synthesize the deoxyribonucleoside thriphosphates used in DNA replication. A geneticist grows some  E. coli  in a medium containing nonradioactive phosphorous for many generations.
What minimum coefficient of friction : In a popular amusement park ride, the rotating cylinder of radius 3.0 m is set in rotation at an angular speed of 7.0 rad/s. The floor then drops away, leaving the riders suspended against the wall in a vertical position.
The pmi code of ethics is made up of four areas : The PMI Code of Ethics is made up of four areas: responsibility, honesty, respect, and fairness. Discuss the area of respect and what it means for you, the project manager.

Reviews

Write a Review

Programming Languages Questions & Answers

  Program to multiply two integers

What occurs when you multiply two integers whose product is larger than largest int value? Try out example and report your findings.

  Design a class for string field for toppings

Design a class named pizza. Data fields include a string field for toppings (such as pepperoni) and numeric fields for diameter in inches (such as 12) and price (such as 13.99).

  Write application to count number of both odd-even integers

Write application to count number of both odd and even integers of several positive integers. Fisrt value entered specifies number of values to input from user.

  Create a class for performing arithmetic with fractions

Create a class called Rational for performing arithmetic with fractions. Write a program to test your class. 1/2+2/3+3/4.......+98/99+99/100.Use integer variables to represent the private data of the class

  Create a program to store assignment grades for student

The elementary school for which you are doing development work has asked you to create a program to store assignment grades for one student.

  Advantages of turning the atm switches into lsr

Under these conditions, what are the advantages, if any, of turning the ATMswitches into LSRs, as opposed to using an overlay network?

  Hubspot: inbound marketing and web 2.0

Hubspot: Inbound Marketing and Web 2.0

  Create block using a loop to determine number of items

Create a block using a loop that will determine the number of items that can be purchased based on the price of the item and the total amount available to spend.

  Function to retrieve each of the private data members

Write a class called "Date" with month, day and year as private members. Have constructor that sets default date to 1st January 2000. Have accessor function which retrieves each of the private data members.

  Write application which calculates factorials

Write the application which computes the factorials of 1 through 20. use type long. Display results in tabular format. What difficulty might prevent you from calculating factorial of 100?

  Write program which takes as input arithmetic expression

Write program which takes as input an arithmetic expression. The program outputs whether expression contains matching grouping symbols.

  Create a function that takes a one dimentional array

Create a function that takes a one dimentional array us a argument the function should return only these members from the array which are divisible by 4.

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