Identify the number of potential customers for a business

Assignment Help C/C++ Programming
Reference no: EM131138874

In this programming assignment, you'll identify the number of potential customers for a business. The starter program outputs the number of potential customers in a user­entered age range given a file with people's data.

1. Move the class Person to the separate files: person.h and person.cpp. Make sure you can still compile with separate files.

2. During file reading, the program isn't storing the gender or yearly income of the people. Instead, the default values are being printed. Fix the program to correctly set the data read from file.

The regions of the code that need to be fixed are marked with:

"FIXME Also set gender and yearly income"

3. Allow the user to select the potential customer's gender: "male", "female", or "any". The program should now output only potential customers with the user­specified gender and age. Update the GetUserInput function to prompt the user and store the user's gender selection. Also, create a function GetPeopleWithSpecificGender that returns only people with the user­specified gender.

Debugging suggestion: Use a function to print main's vector of Persons so that you can see who is in the vector after each function call. This technique may help debug the newly created function GetPeopleWithSpecificGender.

4. In addition to age and gender, allow the user to select the lower and upper range of a customer's yearly income.

Update the GetUserInput function to prompt the user and store the user's specified range. Also, create a function GetPeopleInIncomeRange that returns only people with the user­specified yearly income.

Attachment:- Assignment.rar

Reference no: EM131138874

Questions Cloud

How disney diversifies with acquisitions : Discuss why Disney’s vision and mission make the firm one of the most admired firms and how Disney diversifies with acquisitions, such as Lucasfilm.
Identify an acute and non-acute health care facility : Identify an acute care facility and a non-acute health care facility in your area. Arrange to speak to the health information management professional at each facility and discuss the challenges they feel they face in collecting data, the type of d..
The public sphere-the social sphere-the tribal sphere : In Advertising's New Medium: Human Experience by J.F. Rayport, he discusses the four spheres of human experience (The Public Sphere, The Social Sphere, The Tribal Sphere, and the Psychological Sphere) as a way of better structuring advertising to rea..
What is the price per share of the company stock : Ward Corp. is expected to have an EBIT of $2,000,000 next year. Depreciation, the increase in net working capital, and capital spending are expected to be $167,000, $89,000, and $117,000, respectively. All are expected to grow at 16 percent per year ..
Identify the number of potential customers for a business : In this programming assignment, you'll identify the number of potential customers for a business. The starter program outputs the number of potential customers in a user­entered age range given a file with people's data
Acting within the course and scope of his employment : Bob's Painting Service hired 3 temporary workers through Deb's Temps. Bob didn't ask if back ground checks had been done on the employees. Deb did not check the criminal records for the workers hired by Bob. Bob may be liable because he did not make ..
Determine the expected rate of return on phoenix stock : Assuming that Phoenix is not expected to pay any dividends during the coming year, determine the expected rate of return on Phoenix Stock.
Evaluation of applicants attitudes : If your boss was not sure if it would be worth the investment to change the company's hiring practices to include an evaluation of applicants' attitudes, what would you tell him or her?
Determine the equation for distribution of shear strength : (Hint: Try a circular failure surface, determine the equation for the distribution of shear strength with depth, and integrate the shear strength over the radius to find the shear force.)

Reviews

Write a Review

 

C/C++ Programming Questions & Answers

  Include the iostream, fstream, string, and cctype libraries

1. Include the iostream, fstream, string, and cctype libraries in your program.

  Dynamic behavior of the working pointers

Dynamic behavior of the working pointers the four LinkedList Methods: Append(), Display(), Insert(), and Delete() in the Chapter 17 LinkedList Template (LinkedList.h) Version 2

  Develop a program that meets the following requirements.

Your consulting firm has been hired to develop a program that meets the following requirements.

  Design an employee class that has fields for name

Design an Employee class that has fields for the following pieces of information: Employee Name and Employee Number

  C program to solve the quadratic equation of rocket launch

Write a C program to solve the quadratic equation of rocket launch by computing the roots (t1 and t2) of that quadratic equation: gt2 + vt + l = 0 (or) for simplicity ax2 + bx + c = 0. Get the values of g, v, and l from the user. The program should d..

  You need to prepare a program linear solver

Write a C program, called linear solver.c, that solves single-variable linear equations. The pro- gram should prompt the user to enter a linear equation of the form

  Transformations of the graphic objects

The second project builds on the first project by adding the ability to specify transformations of some of the graphic objects. The specification for those objects now will require less information about their position and size because both will b..

  Implement some rules for winning and losing the game

Your task is to create a "click and kill" game. The game features items moving around the window. The goal of the game is to eliminate the items by clicking them. Keep track of and display the player's score (how many items have been eliminated). ..

  Design a class named productionworker that extends employee

The workday is divided into two shifts: day and night. The shift field will hold an integer value representing the shift that the employee works. The day shift is shift 1 and the night shift is shift 2. Design the appropriate accessor and mutator ..

  Write an application that reads the user''s weight

Write an application (BMICalc) that reads the user's weight in poinds and height in inches, then calculates the Body Mass Index.

  What are generic classes in c++

What are generic classes

  Write a program that accepts as input a string variable

Write a program that accepts as input a string variable called strFirstName, then another string variable called strLastName, and an integer variable called intAge.

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