1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
lesya692 [45]
4 years ago
14

Write the prototype for a function named showSeatingChart that will accept the following two-dimensional array as an argument. c

onst int ROWS = 20; const int COLS = 40; string seatingChart[ROWS][COLS]; Note: The two-dimensional array argument must be a const string array. You must include a second integer argument (scalar, not an array).
Computers and Technology
1 answer:
barxatty [35]4 years ago
4 0

Answer:

See explaination

Explanation:

void showSeatingChart(string seatingChart[20][40], const int ROWS, const int COLS){

for(int i = 0;i<ROWS;i++){

for(int j = 0;j<COLS;j++){

cout<<seatingChart[i][j]<<" ";

}

cout<<endl;

}

}

You might be interested in
The "Rudolph Rule" is best described by which of the following?
umka21 [38]

Answer:

B) Emphazizing certain points by using color.

Explanation:

I had the same question and I got it right. The answer is this because just like how Rudolph's nose and how it stands out from the others. And so if you pick only the important parts and add color then it will stand out.

7 0
3 years ago
Define the acronym WAECUP and its components
Mariana [72]

WAECUP stands for waste, accident, error, crime, and unethical practices.

Assuming that the components are the same as what's included in the acronym, that should be your answer.

Hope this helps!

8 0
3 years ago
What happens when your computer is in Hibernate mode?
marusya05 [52]
It keeps you logged in to everything but it turns the screen off to save power.
8 0
3 years ago
What is the primary purpose of EHRs?
Solnce55 [7]

Answer:

It is important to note that the primary purpose of EHRs is to support and improve individual patient care. As such the EHR is created and held according to professional and legal obligations of confidentiality

Explanation:

8 0
3 years ago
Suppose we have a dictionary called grades as shown below:
mihalych1998 [28]

Answer:

import statistics as st # importing statistics package to calculate mean as st.

grades = {"John": [87,90,86.8], "Mary": [78, 81.5, 88.6],"Susan":[45,67,76]}

for key,value in grades.items():#iterating over the dictionary

   average_score=st.mean(value)#calculating the mean of every student

   gr="" empty string to store the grades

   if average_score>=90: # nested if else if and statements for the grades in gr

       gr="A"

   elif average_score>=80.0 and average_score<90.0:

       gr="B"

   elif average_score>=70.0 and average_score<80.0:

       gr="C"

   elif average_score>=60.0 and average_score<70.0:

       gr="D"

   else :

       gr="F"

       

   print(str(key)+" "+str(average_score)+" "+str(gr)) #printing grades of every student.

Output:-Mary 82.7 B

John 87.93333333333334 B

Susan 62.666666666666664 D

Explanation:

1.In this program we are iterating over the dictionary grades.

2.Storing and calculating the mean of the scores of every student us statistics package.

3.Storing the grade in string gr and updating the gr according to the mean score

4.After that printing the grade of the student with their name and mean score.

6 0
3 years ago
Other questions:
  • Which of the following actions has no impact on your credit score
    9·1 answer
  • What is responsible for coordinating a computer's hardware and software components?
    13·1 answer
  • What is the primary difference between the windows server 2012 r2 server manager and previous versions (before windows server 20
    11·1 answer
  • A key tactic that is used in many attacks, but very frequently in CEO Fraud, is creating a sense of what?
    15·2 answers
  • What are attributes and what role do they play with in a HTML document?
    11·1 answer
  • What is digital scavenger hunting? A. An application that locates addresses B. A scavenger hunt where players use GPS and digita
    5·1 answer
  • Why does a computer need programs? ​
    8·2 answers
  • Write aemail to brother for laptop for vitrual classes​
    7·2 answers
  • Complete the sentence.<br> In your program, you can open
    5·1 answer
  • What is bit in computer science? (You must select all correct answers.) Hb. A. A part of a tool, such as a router. Non. B. A bas
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!