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
lorasvet [3.4K]
3 years ago
3

3.5 code practice input a grade number (9-12) and print Freshman, Sophomore, junior, senior. if it is not in [9-12] , print not

in highschool.​
Computers and Technology
1 answer:
kkurt [141]3 years ago
4 0

Answer:

#include <iostream>

using namespace std;

int main()

{

   int grade_number=-2;

   while(grade_number!=0){

       

      cout<<"Enter grade number";

   cin >> grade_number;

   

   switch (grade_number)

   {

   case 9:

       cout<<"Freshman"<<endl;

       break;

   case 10:

       cout<<"Sphomore"<<endl;

       break;

   case 11:

       cout<<"Junior"<<endl;

       break;

   case 12:

       cout<<"Senior"<<endl;

       break;

   default : //Optional

       cout<<"Not in highschool"<<endl;

   }

   }

   return 0;

}

Explanation:

Take input from user for grade number and run it through a switch statement.

Switch statement takes a variable and perform specific task for predefined different values of that variable.

You might be interested in
What steps should you take if your harassed online​
AURORKA [14]
Tell an adult and report the person harassing you
8 0
3 years ago
Read 2 more answers
Harvey is creating a presentation for his school project. He wants to have the same look on all the slides of his presentation.
Dimas [21]
<h2>Answer:</h2>

<u>Theme option in the design tab</u>

<h2>Explanation:</h2>

After opening his slides in power point he must click on the Design Tab and then selecting a theme from various options that come in front of him. He can select any theme and then click apply to all. This will allow him to apply the same theme over all his slides of presentation.

6 0
4 years ago
Read 2 more answers
Nadeen runs a website on vegan lifestyle. She wants to spread the word and make more people visit her site to read her recipes a
pashok25 [27]

What Nadeen needs to do to get people to engage with her web site is to regularly post new content and regularly respond to user comments and questions (options A and C).

<h3>What should Nadeen do to increase visits to her website?</h3>

Currently, social networks and pages have become tools to share information and create a community of people around a topic.

From this trend, many people have developed their own web pages to share their knowledge and experience with other people so that knowledge becomes public and help those who do not have as much knowledge.

However, for a page to have high interactions and visits from the public, the owner of the page must ensure that they comply with some recommendations that will increase the traffic of their page, such as:

  • Post frequently: This is because people are constantly looking for information and like to be up to date with the latest.
  • Respond to user comments and questions: This creates a link between the page owner and their visitors that makes them feel comfortable with this page. This also helps the owner create a community where everyone participates by contributing knowledge.

Note: This question is incomplete because the options are missing. Here are the options:

A. She must post new content on her website regularly.

B. She must increase the number of pay-per-click advertisements on her website.

C. She must regularly respond to user comments and questions.

D. She must use a secure payment gateway.

Learn more about vegan in: brainly.com/question/8708517

3 0
2 years ago
A file concordance tracks the unique words in a file and their frequencies. Write a program that displays a concordance for a fi
neonofarm [45]

Answer:

Python file with appropriate comments given below

Explanation:

#Take the input file name

filename=input('Enter the input file name: ')

#Open the input file

inputFile = open(filename,"r+")

#Define the dictionary.

list={}

#Read and split the file using for loop

for word in inputFile.read().split():

  #Check the word to be or not in file.

  if word not in list:

     list[word] = 1

  #increment by 1

  else:

     list[word] += 1

#Close the file.

inputFile.close();

#print a line

print();

#The word are sorted as per their ASCII value.

fori in sorted(list):

  #print the unique words and their

  #frequencies in alphabetical order.

  print("{0} {1} ".format(i, list[i]));

3 0
4 years ago
Explain why regular system cleanup is vital to ensuring the operating system runs efficiently.
Oksanka [162]
Cleaning up a system helps clear up the space on the drives. It may also clear up processor usage, ram usage if you uninstall programs that automatically started when the system booted. You may also delete some unwanted programs in the process.
5 0
4 years ago
Other questions:
  • What is the most common threat on the internet? auction fraud illegal software computer viruses hackers?
    14·1 answer
  • A ___________ lists all possible packet switches and gives a next hop for each.
    12·1 answer
  • What is a digital certificate? Select one: a. It is a means of establishing the validity of an offer from a person, entity, web
    7·1 answer
  • The statement cout &lt;&lt; sales[0,3] + sales[1,3]; will __________. Use the following array named sales to answer this questio
    14·1 answer
  • What are some types of vehicle technology advancements?
    5·1 answer
  • Help me choose framework in programming
    14·1 answer
  • Will give brainliest!<br> Who created binary, and does anyone have any idea how?
    13·1 answer
  • guys look at this https://brainly.com/app/profile/17971193/answers i need help and tips to get this cute girl to give me her num
    14·2 answers
  • Brainly keeps deleting my questions and I don’t know why It says I violated the rules but I didn’t. pls help
    5·1 answer
  • Page 1. I who invented computer?​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!