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
Hatshy [7]
4 years ago
9

Assume that grade is a variable whose value is a letter grade-- any one of the following letters: 'A', 'B', 'C', 'D', 'E', 'F',

'W', 'I'. Assume further that there are the following int variables, declared and already initialized: acount, bcount, ccount, dcount, ecount, fcount, wcount, icount. Write a switch statement that increments the appropriate variable (acount, bcount, ccount, etc.) depending on the value of grade. So if grade is 'A' then acount is incremented; if grade is'B' then bcount is incremented, and so on.
Computers and Technology
1 answer:
d1i1m1o1n [39]4 years ago
6 0

Answer:

switch (grade) {

 case 'A':

   acount++;

   break;

 case 'B':

   bcount++;

   break;

 case 'C':

   ccount++;

   break;

 case 'D':

   dcount++;

   break;

 case 'E':

   ecount++;

   break;

 case 'F':

   fcount++;

   break;

 case 'W':

   wcount++;

   break;

 case 'I':

   icount++;

   break;

}

Explanation:

You might be interested in
Write a program that prompts the user to input the number of quarters, dimes, and nickels. The program then outputs the total va
Anni [7]

Answer:

The program to this question can be given as follows:

Program:

#defining variable quarters, dimes, and nickels.

quarters=int(input("Enter value of quarters: ")) #input value by user  dimes=int(input("Enter value of dimes: ")) #input value by user  nickels=int(input("Enter value of nickels: ")) #input value by user  

#defining variable pennies

pennies = ((25*quarters)+(10*dimes)+(5*nickels)) #calculate value in pennies variable

print('Total number of coins in pennies is: ',pennies)#print value

Output:

Enter value of quarters: 3

Enter value of dimes: 2

Enter value of nickels: 1

Total number of coins in pennies is:  100

Explanation:

In the above python program code, firstly three variable "quarters, dimes, and nickels", all of these variable uses input function, that is used to take input value from the user side, in these variable, an int is used that defined, that user input only integer value.

  • After taking input from the user a new variable "pennies" is defined, which is uses the user input values and calculates its addition.
  • In the next line, print function is used, which uses variable "pennies" to print its calculated value.
7 0
3 years ago
Which of the following are features of the HTTPS protocol?
gavmur [86]

Answer:

All traffic is encrypted. No one on your network can see what is going on (except for knowing where those packets are going to).

The identity of the remote server can be verified using certificates. So you also know that it really is your bank that you are talking to.

Optionally (and not in wide-spread use), the identity of the client can also be verified using certificates. This would allow for secure login to a site using chip cards instead of (or in addition to) password

8 0
3 years ago
Test prints can help you determine the exposure time for a print as well as help you identify any issues in the negative. True F
Dahasolnce [82]
I'd say TRUE

It is always important to have a correct exposure in rendering a highlight tone on a print. To find the correct highlight exposure, make test strips using pieces of paper separately to the area of the negative containing the most the most critical highlight. Once you have enough test strips, you should pick the one that contains the best highlight rendering. Exposure time of that test strip is the correct exposure.



5 0
4 years ago
Read 2 more answers
What does this program does?
tester [92]
Peoples from around the world help you answer the question you have.
4 0
4 years ago
An identifier that allows multiple elements in an HTML document to be<br> styled in the same way
oksian1 [2.3K]

Answer:

CSS , (Possibly Divs)

Explanation:

I have picked CSS, and possibly Div's as my main explanation and answer here is why.

CSS - Cascading Style Sheets, this allows you to edit multiple elements in a HTML document, such as the color or any CSS attribute.

If you would like to learn more about CSS, and the multiple options that CSS provides such as Internal Styles, External Styles, lastly In-line styles. I highly recommend the resource "W3Schools".

DIV's - Divs are basically like a container, where you can input styles into this container that can effect those elements such as if I want the background-color, of the div it would effect all the elements inside that div. However, I said this could be a possibility since it isn't CSS where it is styled however you can group these elements to one div. You can also edit the CSS of the Div to effect it.

6 0
3 years ago
Other questions:
  • What is a geotag?
    10·1 answer
  • Zenmap's topology tab displays a __________ that shows the relative size and connection type of all discovered ip hosts.
    10·1 answer
  • Apache web server is the most widely used network operating system used on web servers.
    8·2 answers
  • During college jesse spent four semesters studying abroad in other parts of the world how could jesses time abroad benefit his e
    5·2 answers
  • What is the advantage of utilizing trees as a data structure? Describe a scenario where you may use either a linear data structu
    9·1 answer
  • Write a program that sorts an array of 20 random numbersin the range from 0 through 1000.
    6·1 answer
  • Reports produced by the United Nations are considered
    11·2 answers
  • Role and importance of internet in today's world
    9·2 answers
  • Kkkkkkkkkkkkkkkkkk kkkkkkkkkkkkkkkkkkkkkkkkkk
    15·2 answers
  • A computer hardware feature that is vital to the effective operation of a multiprogramming operating system is:
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!