subject

In this program you will be working with 2 arrays. One array is an array of 20 strings. This array holds the names of the colleges that have been the football National Champions from 2018 back to 1999. The second array will hold a list of twenty integers. You will use this array for the years. I have given you some of the beginning code to help you get started and so that you won't have to type in the long array. I suggest that you work on this program one section at a time and get each part working before moving on to the next. Your tasks for this assignment:
Fill in the missing parts of the program header and supply the names for the variables indicated
Print out the years from largest to smallest along with the National Champion team. I’ve provided this loop to you as an example. You can use the formatting that I have or you can change it to something that you like better, as long as the information is correct and easy for the user to read.
Print out the years from smallest to largest along with the National Champion team. Be sure that your formatting is consistent with whatever you used in the previous section.
Now you will notice that the two lists appear to be one long list. Create a break between the lists, using something that will add visual appeal. One example would be a row of stars surrounded by one or more blank lines above it and below it.
Create one or more loops that will go through the array(s) to count and display on separate rows the number of times that each of the following schools have been the National Champions: Alabama, Clemson, Texas. Be sure that the output will have meaning to the user. (Don’t just display 5, 2, 1.)
Create a loop that will go through the array(s) to determine and display which team held the title of National Champions in 2006. Again, be sure that your output will have meaning to the user.
//Chapter 7 Programming problem
#include
#include //What should you include here in order to use strings?
using namespace std;
int main()
{
//declare arrays
string team[20] = {"Clemson", "Alabama", "Clemson", "Alabama", "Ohio State",
"Florida State", "Alabama", "Alabama", "Auburn", "Alabama", "Florida", "Louisiana
State", "Florida", "Texas", "Southern California", "Louisiana State", "Ohio State",
"Miami", "Oklahoma", "Florida State"};
int year[20];
//Variable to hold the number of Clemson wins
//Variable to hold the number of Alabama wins
//Variable to hold the number of Texas wins
for (int count = 0; count <20; count++)
{
year[count] = 2018 - count;
cout << year[count] << "";
cout << team[count]<< endl;
}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:30
:you areto design the controller for alight that functions both as an ordinary light and also as a motion activated light and alarm. a.if the manual switch s is on, then the light l is on. b.besides the manual switch, there is a motion detector, m1, which activatesthis light.c.if motion is detected but the light is on anyway because s is on, only then a secondoutput a, an alarm, is turned on. d.the disable switch, d, disables the motion activated light and alarmbut leaves manual control operation of the light using switch s.(i)read the problem statement and clearly identify the inputs and outputs for the circuit you are designing. (ii)create the truth table for this system; include the light, alarm, switch, disable, and the motion sensor.(iii)draw a schematic of this system.
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Write a function called checkfactor that takes two arrays of positive numbers, firstnumberrow and secondnumberrow. checkfactor checks if the first entry in firstnumberrow is divisible by the first entry in secondnumberrow, and performs the same operation on the next array elements until all entries have been checked. all the numbers are positive and the number of entries in the arrays are the same. the function should return the identified divisible numbers in two row arrays named firstdivisible and seconddivisible.restrictions: branches or loops should not be used. the code must use the internal mod and logical functions.hint: the mod function should be used to determine if two numbers are divisible. ex: for num1 and num2 if mod(num1,num2) is 0, then the two numbers are divisible.this is matlab
Answers: 2
question
Computers and Technology, 23.06.2019 21:30
Enzo’s balance sheet for the month of july is shown. enzo’s balance sheet (july 2013) assets liabilities cash $600 credit card $4,000 investments $500 student loan $2,500 house $120,000 mortgage $80,000 car $6,000 car loan $2,000 total $127,100 total $88,500 which expression finds enzo’s net worth?
Answers: 1
question
Computers and Technology, 23.06.2019 22:20
Read “suburban homes construction project” at the end of chapters 8 and 9 (in the textbook) and then develop a wbs (work breakdown structure) in microsoft excel or in microsoft word (using tables)
Answers: 1
You know the right answer?
In this program you will be working with 2 arrays. One array is an array of 20 strings. This array h...
Questions
question
Mathematics, 28.07.2019 18:20
question
Mathematics, 28.07.2019 18:20
question
History, 28.07.2019 18:20