Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedAnswer 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions