Write c++object-oriented Programming program assignment, World Health Organization (WHO) job generation

Source: Internet
Author: User

Write c++object-oriented Programming program assignment, World Health Organization (WHO) job generation
Project for object-oriented programming
Project Deliverables
The source code for this project is the following files:
Projparta.cpp–your Source code program for part A
Projpartb.cpp–your Source code program for part B
The grade of your project is determined by the followings:
–design with class diagrams (20%)
–programming Style (20%): style and efficiency of your program (comments is expected in
The source code).
–correctness (30%): We'll verify the correctness of your program by testing it through
–final report (30%): The includes the features of your system, a brief user manual of
Your system as well as the source codes of your system.
Specifications
1. The World Health Organization, compiles data about immunization levels around the
World. The file named "Measles.txt" contains data about the level of measles vaccinations
In various countries over time.
Each line of the file contains the following fields, where there are one space between fields:
Country (characters)
Income level (6 characters)
Percent vaccinated (3 characters)
Region (characters)
Year (4 characters)
The "Country" field contains the name of the country.
The ' Income level ' field identifies the category assigned to that country by the world Bank:
Wb_li Low Income
Wb_lmi Lower Middle income
Wb_umi Upper Middle income
Wb_hi High Income
The "Percent vaccinated" field contains an integer number representing the percentage of
Children in this country who has received measles vaccine by the age of one.
The ' Region ' field identifies the region assigned to that country by WHO.
The ' Year ' field contains the year for which the data was compiled.
2. You'll develop the programs described below. Each program would be is in a separate
Source code file (the names is given under "Project deliverables").
Part A
1. The program in "ProjPartA.cpp" would copy selected lines from "Measles.txt" to a
File selected by the user.
A) The program would always read from "Measles.txt" (it won't prompt the user for the
Name of the input file). If It is unable to open so file, the program would halt.
b) The program would prompt the user for the name of the output file. If The file does not exist,
The program would create it and continue. If The file does exist, the program would discard the
Current contents of the file and continue.
c) The program would prompt the user to enter a year, and would copy all lines of "Measles.txt"
Selected by the user ' s response. A Line is selected if the user's response matches the year field
Or any of the its prefixes. All lines is selected if the user's response is an any of the values in the set
{"", "all" and "all"}. Note that ' is the empty string.
For example, a line whose year field contains "1987" would is selected by any of the following
User responses: {"1", "+", "198", "1987", "" "," All "," all "}.
2. The output file created by the program would have the same format as the input file (same field
Widths and spacing). Note that if the user selects all lines, the output file is identical to
The input file.
3. The program would display appropriate messages to inform the user on any unusual
circumstances.
Part B
1. The program "ProjPartB.cpp" would display one summary report to the user.
A) The program would prompt the user to enter the name of the the input file. If It is unable to open
That file, the program would prompt the user again until the user enters a valid file name.
b) The program would prompt the user to enter a year, and would then prompt the user into enter an
Income level. The income level must is one of the characters in the set {1, 2, 3, 4}, where 1
Corresponds to ' low income ', 2 corresponds to ' lower middle income ', 3 corresponds to ' upper
Middle income "and 4 corresponds to" High income ".
c) The program would identify all records (lines) in the input file which match the user ' s criteria
For year and income level, and the program would display a report with the following information:
The count of records in the input file which match the user ' s criteria
The average percentage for those records (displayed with one fractional digit)
The country with the lowest percentage for those records
The country with the highest percentage for those records
The name of the country and the percent of children vaccinated'll be displayed
Items (lowest percentage and highest percentage).
2. The program would display appropriate messages to inform the user on any unusual
circumstances.
3. The program would contain the following functions (you may develop additional functions):
Open_file ()? File Object
Process_file (File object)? None
The notation above gives the name of each function, the number and type of its argument (s), and
The type of its return value.
A) The function names is spelled exactly as shown (for example, Open_file).
b) Function Open_file has no parameters. It returns a file object after prompting the user to
Enter the name of the input file (see above).
c) Function Process_file has one parameter (a file object). It performs the processing to
Read the input file and display the report.
Http://www.6daixie.com/contents/15/1372.html

The core staff of the team mainly include Silicon Valley engineers, bat front-line engineers, domestic TOP5 master, PhD students, proficient in German English! Our main business scope is to do programming big homework, curriculum design and so on.

Our Direction field: Window Programming numerical algorithm AI Artificial Intelligence financial statistical Metrology analysis Big Data network programming Web programming Communication Programming game Programming Multimedia Linux plug-in programming API image processing embedded/Microcontroller database programming console process and thread Network security assembly language Hardware programming software Design Engineering Standard Rules. The generation of programming languages or tools including, but not limited to, the following ranges:

C/c++/c# Write

Java Write generation

It generation

Python writes

Tutoring Programming Jobs

The MATLAB Generation writes

Haskell writes

Processing Write

Linux Environment Setup

Rust Generation Write

Data Structure assginment Data structure generation

MIPS Generation Writing

Machine Learning Job Writing

Oracle/sql/postgresql/pig database Generation/Generation/Coaching

Web development, Web development, Web site jobs

Asp. NET Web site development

Finance insurace Statistics Statistics, regression, iteration

Prolog write

Computer Computational Method Generation

Because of professional, so trustworthy. If necessary, please add qq:99515681 or e-mail:[email protected]

: Codinghelp

Write c++object-oriented Programming program assignment, World Health Organization (WHO) job generation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.