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
Yanka [14]
4 years ago
12

HTTP is the protocol that governs communications between web servers and web clients (i.e. browsers). Part of the protocol inclu

des a status code returned by the server to tell the browser the status of its most recent page request. Some of the codes and their meanings are listed below: 200, OK (fulfilled) 403, forbidden 404, not found 500, server error Given an int variable status, write a switch statement that prints out, on a line by itself, the appropriate label from the above list based on status.
Computers and Technology
1 answer:
Allushta [10]4 years ago
7 0

// Making a function that will take a integer as argument and return  print the code

void Print(int statuscode){

// starting the switch statement on the interger sent

switch(statuscode)

  case 200: // for case 200

              cout << "Ok,Fullfilled"<< endl;

  case 403: // for case 403

             cout << "Forbidden" << endl;

   case 404: // for case 404

             cout << "Not Found" <<endl;

   case 500: // for case 500

             cout << "Server Error "<< endl;

    default: // default case

              cout << " Wrong code"<<endl;

}

You might be interested in
Pleas help with this question: Which statement about word processing software is true?
deff fn [24]
Short Answer C

The Primary use of any word processor is to create word documents (like this editor) with the ability to format it with bold letters or <u>underlining</u> or <em>italics</em>. There are many other choices of things to do. All your choices are true but the main one is the third one down.

It can do very simple mathematical calculations if it can create tables (neither of which is possible with this editor. A is incorrect.

D is mostly incorrect. Very few word processors have built in capabilities that would help you with word games. There are some that do. Most don't.

I would hate to create fonts using a word processor. It's remotely possible, but anyone in his right mind would try using a program designed for that.. B is incorrect.
8 0
4 years ago
What is a relational database management system and how does it relate to a database administrator?
nydimaria [60]

Answer: A database management system tends to support administration, development, and use of the platforms. A Relation Database Management System (RDBMS) is referred to as a type of Database Management System (DBMS) that consists of a structure(row-based table) that tends to connect data elements and also involve functions that are supposed to maintain accuracy, security, consistency and integrity of the data.

6 0
4 years ago
If the starting address location changes, in which of the following cases, the program has to be recompiled? Select one: a. Both
VashaNatasha [74]

Answer:

c. Compile time binding

Explanation:

Compile Time Binding is a term in computer programming that describes the interpretation of logical addresses to physical addresses at the time of compilation.

Therefore, given that in the compile time binding, compiler code is generated at the start of the location, and moves afterward, thus, if at any point the starting address location changes, then it will be essential to recompile the code.

4 0
3 years ago
When can we feel electricity?? Tell me the volt
inna [77]
Well, if you were to rub your hair on a balloon, or your feet on the ground, static starts to build up. Static is a form of electricity.
7 0
3 years ago
20 pts, please write in JAVA. need this ASAP
Katen [24]

public class JavaApplication78 {

   public boolean findChar(String string, String key){

       if (string.contains(key)){

           return true;

       }

      return false;

   }

   public static void main(String[] args) {

       JavaApplication78 java = new JavaApplication78();

       System.out.println(java.findChar("hello", "h"));

   }

   

}

First I created the findChar method using the contains method. It checks to see if a certain sequence of characters is in another string. We returned the result. In our main method, we had to create a new instance of our main class so we could call our findChar method.

5 0
3 years ago
Other questions:
  • A tracking signal A. is a measurement of how well a forecast is predicting actual values. B. is computed as the mean absolute de
    13·1 answer
  • ___________ is produced by propulsion systems or engines.
    6·1 answer
  • Select the information protection item that ensures that information is correct and that no unauthorized person or malicious sof
    9·1 answer
  • Which quality is likely to ensure consistent career growth in the computer field?
    9·2 answers
  • Which of these is an aggregator?
    5·2 answers
  • The main workspace of a Windows computer is called the______
    5·1 answer
  • What game is the best for racing and modifying cars
    10·1 answer
  • For the second one just answer what game engines are please, you don't have to explain.
    8·1 answer
  • Mention how to install antivirus software in your computer, either by following the instructions given on installation CDs or we
    6·1 answer
  • click the view lab button. restart the computer and press the f2 or delete key on your keyboard to enter the bios setup program.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!