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
Alex787 [66]
3 years ago
9

NOTE: in mathematics, division by zero is undefined. So, in C++, division by zero is always an error. Given a int variable named

callsReceived and another int variable named operatorsOnCall write the necessary code to read values into callsReceived and operatorsOnCall and print out the number of calls received per operator (integer division with truncation will do). HOWEVER: if any value read in is not valid input, just print the message "INVALID".
Computers and Technology
1 answer:
AleksandrR [38]3 years ago
8 0

Answer:

#include <iostream>

using namespace std;

int main()

{  

   int callsReceived, operatorsOnCall;

   cout<<"Enter the number of received calls:";

   cin >> callsReceived;

   cout<<"Enter the number of operators on calls:";

   cin >> operatorsOnCall;

   

   if(operatorsOnCall !=0)

       cout<< "Number of calls received per operator is: "<< callsReceived/callsReceived;

   else

       cout<<"INVALID";

   return 0;

}

Explanation:

Declare the variables

Ask the user for the inputs

Check if the second number is 0 or not. If it is not, calculate the number of calls received per operator - divide callsReceived by callsReceived, and print the result

Otherwise, print INVALID

You might be interested in
Which statement about digital certificates is​ FALSE? A. The CA verifies a digital certificate​ user's identity online. B. Digit
liq [111]

Answer:

A

Explanation:

chicken

7 0
3 years ago
A relational database has been created to store data about subjects that students are studying. The following is a
12345 [234]

Mention two charactarestics of money that make it a sustainable medium of exchange

7 0
3 years ago
In what cases would you denormalize tables in your database?
ad-work [718]

Answer: Denormalize is the mechanism is carried out by addition of the redundant bits in the already normalized database.The data is attached in the form of attributes,adding new tables.

This technique is used in the case of previously normalized data collection which requires improvement in the performance by reducing the errors.The improvement is made by making database readable ,adding  group of data in redundant form etc.

When data is to be retrieved quickly then also denormalization is used as by grouping or collecting information into a single table.

6 0
3 years ago
What is the process in which a server is partitioned into smaller components
Usimov [2.4K]
I believe the answer to this is server virtualization.
4 0
4 years ago
Gretchen has just started making a new presentation in a series of PowerPoint presentations. The default formatting for text in
timurjin [86]

Answer:

text only

Explanation:

           

5 0
3 years ago
Other questions:
  • How much power is consumed by a 1.4A motor connected to a 12V battery?​
    11·1 answer
  • how does modern information technology has affected society ?? Need help on how it has affected society
    10·1 answer
  • What is not soured of income
    6·1 answer
  • What is the purpose of networking with other businesses?
    10·1 answer
  • Why would a network administrator want to filter certain ports when capturing data such as FTP traffic
    6·1 answer
  • Which of these tools can best be used as a self assessment for career planning purposes?
    6·2 answers
  • What would be an ideal scenario for using edge computing solutions? a regional sales report uploaded to a central server once a
    14·1 answer
  • Jacob was sitting in class. His teacher understands that he is the type of student that doesn't comprehend when he sees or hears
    6·1 answer
  • Function of pons for class 7​
    15·1 answer
  • Why are women more exposed to mass media?
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!