Question

# I have an object struct named Course. I also have an array Course array[CAPACITY], where capacity...

I have an object struct named Course. I also have an array Course array[CAPACITY], where capacity = 100 and the size is 0. I do not know how to place the four attributes of object Course into an array and I was hoping to get an answer. I am using a for loop that takes in the class name, year, grade, and units, so how can I put that all into a Course object and then into an array of Course objects?

so once your read all the data than create and object for
the structure and plcae it

for(int i=0;i<100;i++){
cin>>name;
cin>>year;
cin>>units;
//creating structure object
Course c;
//assigning data to the structure object
c.name=name;
c.year=year;
c.units=units;
//putting that object into array
array[i]=c;
}

NOTE : PLEASE COMMENT BELOW IF YOU HAVE CONCERNS.

#### Earn Coins

Coins can be redeemed for fabulous gifts.

##### Need Online Homework Help?

Most questions answered within 1 hours.

##### Active Questions
• A mineral exploration firm is formed with enough capital to finance 9 ventures. The probability of...
• Do you consider yourself an internal or an external? Why is knowing what modality you typically...
• describe the basic functions of each component (block) of the ext4 filesystem.
• Which of the following collections of vectors are linearly independent {[1,2],[2,3]} {[1,2,3],[2,4,6]} {[1,2],[2,3],[3,4]} {[1,0,1],[1,0,0],[2,01]} {[1,0,1],[1,0,0],[3,0,1]} {[1,0,1],[1,0,0],[3,0,1],[4,0,1]}...
• What does a flexible budget performance report do that a simple comparison of budgeted to actual...
• Define a function named sumsin that accepts double precision variable theta, double precision variable alpha, and...