Question: write a c++ program that read in a person's name and major using array. 1. create constant for maximum number of characters in a name

write a c++ program that read in a person's name and major using array.

1. create constant for maximum number of characters in a name and for max number of characters for major.

2. in main create two arrays. ( for full name and another for major)

3. ask user to enter full name

- capitalize the first letter of the first word

- write a for loop to find (space) that exists in the array and capitalize the first non-blank character immediately afterwards

4. ask user to enter major

#include

#include

#include

using namespace std;

const int SIZE {20};

const int MaxName{20};

const int MaxMajor{20};

int main()

{

// your code here

return 0;

}

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!