Question

please do all in C++ code, thank you.

Worth 1 point Checkpoint 7.12 Write a statement that assigns the value 10 to the first elementof an array of integers named mWorth 1 point Checkpoint 7.14 Write a cout statement that will display contents of the second element of an array named coursWorth 1 point Checkpoint 7.55 Write the prototype for a function named showValues. It should accept an array of Integers andWorth 1 point Checkpoint 7.57 Define a two-dimensional array of integers named grades. It should have 20 rows and 5 columns TWorth 1 point Checkpoint 7.61 Write the prototype for a function named showSeating Chart that will accept the following two-dWorth 1 point Checkpoint 7.69 Write a definition statement for a vector named frogs, frogs should be an empty vector of intsWorth 1 point Checkpoint 7.75 Write a statement using the push_back method that will storethe value 27 in the following vectoWorth 1 point Checkpoint 7.78 Write a statement that uses the pop_back method to remove the last element from the following v

0 0
Add a comment Improve this question Transcribed image text
Answer #1

7.12
Answer:
minutes[0]=10;//assigning value 10 to first element of array of integers
7.14
Answer:
cout<<courseNumbers[1]<<endl;//printing second element
7.15
Answer:
cin>>creditHours[0];//reading into first element of array
7.55
Answer:
void showValues(int a[],int size);//prototype
7.57
Answer:
int grades[20][5];
for(int i=0;i<20;i++)
for(int j=0;j<5;j++)
grades[i][j]=0;
7.61
Answer:
void showSeatingChart(string seatingChart[][],int rows,int cols);
7.69
Answer:
vector<int> frogs;
7.75
Answer:
ages.push_back(27);
7.78
Answer:
colors.pop_back();

Add a comment
Know the answer?
Add Answer to:
please do all in C++ code, thank you. Worth 1 point Checkpoint 7.12 Write a statement...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please answer in C++, and Please consider ALL parts of the question, especially where it asks the...

    Please answer in C++, and Please consider ALL parts of the question, especially where it asks the user for V. So there should be a "cin >> V" somewhere. The last guy did not answer it correctly so please make sure you do! Thank You!! Question 1 Write the following two functions. The first function accepts as input a two-dimensional array of integers. It returns two results: the sum of the elements of the array and the average The second...

  • Please solve only if you know how to do it. Write the code using C++ (not...

    Please solve only if you know how to do it. Write the code using C++ (not Python or Java). Show and explain everything neatly. COMMENTS (7.5% of programming assignment grade): Your program should have at least ten (10) different detailed comments explaining the different parts of your program. Each individual comment should be, at a minimum, a sentence explaining a particular part of your code. You should make each comment as detailed as necessary to fully explain your code. You...

  • Can you help us!! Thank you! C++ Write a program that can be used by a...

    Can you help us!! Thank you! C++ Write a program that can be used by a small theater to sell tickets for performances. The program should display a screen that shows which seats are available and which are taken. Here is a list of tasks this program must perform • The theater's auditorium has 15 rows, with 30 seats in each row. A two dimensional array can be used to represent the seats. The seats array can be initialized with...

  • Checkpoint 4.6 Write a statement that uses the increment operator, in postfix mode, to increase the...

    Checkpoint 4.6 Write a statement that uses the increment operator, in postfix mode, to increase the value of the variable points. Type your program submission here. Submit

  • C++ Checkpoint 11.33 Look at the following structure definition: struct Date int month int day int year, Write the pr...

    C++ Checkpoint 11.33 Look at the following structure definition: struct Date int month int day int year, Write the prototype for a function called getlnput that accepts a pointer to a Date structure as a parameter. Type your program submission here. Checkpoint 11.28 Look at the following structure definition struct Rectangle int length int width Write the definition of a pointer to a Rectangle structure called rectPtr and assign it the value nullptr Fype your progzam submission heze

  • Program in C++! Thank you in advance! Write a menu based program implementing the following functions: (1) Write a funct...

    Program in C++! Thank you in advance! Write a menu based program implementing the following functions: (1) Write a function that prompts the user for the name of a file to output as a text file that will hold a two dimensional array of the long double data type. Have the user specify the number of rows and the number of columns for the two dimensional array. Have the user enter the values for each row and column element in...

  • I am using C++ Write a program to determine if a gird follows the rules to...

    I am using C++ Write a program to determine if a gird follows the rules to be classified as a Lo Shu Magic Square. The Lo Shu Magic Square is a grid with 3 rows and 3 columns shown in figure below. The Lo Shu Magic Square has the following properties: The grid contains the numbers 1 through 9 exactly. The sum of each row, each column, and each diagonal all add up to the same number. This is shown...

  • Write a C program to do the following: 1. Write a C function named find that...

    Write a C program to do the following: 1. Write a C function named find that receives a one-dimensional array of type character named arr and its size of type integer. After that, the function must select a random index from the array. The function must find if the character stored in the randomly selected index comes before all the characters to its left alphabetically. Finally, the function prints to the screen the element if the element meets the condition...

  • help with C++ code The aim of this is to practice writing template classes. You must...

    help with C++ code The aim of this is to practice writing template classes. You must use SafeArray template class and implement a SafeMatrix template class that will allow you to work with two dimensional arrays of any type. The boundaries are checked. You must be able to create instances of SafeMatrix template class like, SafeMatrix<int> m(2,3); The above statement will create a 2 by 3 dimensional array of integers. You must be able to access and set values using...

  • C++ Programming 1. Write a function (header and body) that accepts an integer as an argument...

    C++ Programming 1. Write a function (header and body) that accepts an integer as an argument and returns that number squared. 2. Write the code that will fill an integer array named multiples with 10 integers from 5 to 50 that are multiples of five. (This should NOT be in the form of an initialization statement.) 3. Write the code that will display the contents of the integer array named multiples. Recall: the size of the array is 10. 4....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT