Speakers Bureau Write a program that keeps track of a speakers bureau. The progr
ID: 3539251 • Letter: S
Question
Speakers Bureau Write a program that keeps track of a speakers bureau. The program should use a structure to store the following data about a speaker:
Name Telephone Number Speaking Topic
The program should use an array of at least 10 structures. It should let the user enter data into the array, change the contents of any element, and display all the data stored in the array. The program should have a menu-driven user interface. Input Validation: When the data for a new speaker is entered, be sure the user enters data for all the fields. No negative amounts should be entered for a speaker's fee.
Explanation / Answer
#include "stdafx.h"
#include <iostream>
#include <cctype>
#include <cstring>
using namespace std;
struct Bureau
{
string name[25];
char number;
char topic[100];
int fee;
};
int main()
{
int num;
cout << " Please enter how many speakers will be attending" << endl;
cin << num;
Bureau *leader;
leader = new Bureau[num];
for (int count = 0; count < num; count++)
{
cout << " Enter the information for the speakers"<<endl;
cout << (count +1) <<": ";
cout <<"enter the information of the speaker,enter in this order";
cout <<" Name, telephone number, speaking topic, and the free required."<<endl;
cin >> leader[count].name;
cin >> leader[count].number;
cin >> leader[count].topic;
cin >> leader[count].fee;
}
return 0;
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.