Question: Answer in C++ please. You have been asked to work for a company to help keep track of current sales leads. This company relies on

 Answer in C++ please. You have been asked to work forAnswer in C++ please.

You have been asked to work for a company to help keep track of current sales leads. This company relies on these leads to call and schedule meetings for their sales reps. They have asked you to create a simple data entry program that will allow them to input their leads into the system and retrieve their leads. Here's how it should work: Please create your struct inside of your main.cpp. don't use a header file to make uploading easy. The leads should be an array or vector of type struct called "Leads". You can size the array as you would like or you can make it a dynamic array/vector asking the user how many leads they have to enter. Your choice. Write a function called enterLead() that will take a struct and populate its data. This means to assign values to all of the member variables and return the struct to main. Make sure to store the data back inside of the struct array. The leads should have this data: string name - name of lead or business boolean active - the lead can be active or inactive. (write functionality to interpret "y" and "n" from the console as true and false assignments. int budget Write a void function called display() to display each element of the struct at the end of the program, call display and pass it the array of structs. inside of display ask the user if they would like to see only active leads Y or N for all leads If yes ("y"), check each struct element and only display the elements that active is assigned true with. if N, simply display all leads

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!