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
adelina 88 [10]
3 years ago
10

What will be displayed after the following statements execute? int funny = 7, serious = 15; funny = serious % 2; if (funny != 1)

{ funny = 0; serious = 0; } else if (funny == 2) { funny = 10; serious = 10; } else { funny = 1; serious = 1; } cout << funny << " " << serious << endl;
Computers and Technology
2 answers:
Reika [66]3 years ago
8 0

Answer:

1 1

Explanation:

First we have funny = 7 and serious = 15 .Then after that remainder when serious is divided by 2 is stored in funny that is 1.if condition will be false because funny is equal to 1.else if condition will also be false because it is not 2.So else will be executed and funny =1 and serious =1.

Output=1 1

alina1380 [7]3 years ago
6 0

Answer:

11

Explanation:

your welcome!

You might be interested in
CHKDSK is a system utility that is commonly found in Windows. What is CHKDSK? Use the Internet to research and write about CHKDS
Alex_Xolod [135]

chkdsk is a utility that you use to check for bad sectors on a hard drive , as far as how to run it you open the start menu go to your run bar and type chkdsk then follow the instruction on the screen .

6 0
3 years ago
Read 2 more answers
Which type of network topology lets you see which end devices are connected to which intermediary devices and what media is bein
m_a_m_a [10]

Answer:

Star Topology

Explanation:

Star network topologies are common in home networks, where the central connection point may be a router, switch, or network hub. Unshielded Twisted Pair (UTP) Ethernet cabling is typically used to connect devices to the hub, though coaxial cable or optical fiber may also be employed.

5 0
3 years ago
Write the code for invoking a method named sendObject. There is one argument for this method which is of type Customer.Assume th
Dafna1 [17]

Answer:

sendObject(John_Doe)

Explanation:

To invoke a method, simply call the name of the method, followed by it's arguments in parenthesis. i.e methodname(argument).

In this case, the name of the method is sendObject and it's argument is a Customer object stored in or referenced by a variable John_Doe.

The above is true since the method is defined in the same class that calls it. Otherwise, it is not valid.

6 0
3 years ago
Write a c++ program called checkmonth​
marin [14]

Explanation:

C++ Program to display month name according to the month number using Switch Statement

that's why called checkmonth

/* C Program to display month name according to the month number using Switch Statement */ #include<stdio.h> int main() { int n; printf("Month No : "); scanf("%d",&n); switch(n) { case 1: printf("January"); break; case 2: printf("February"); break; case 3: printf("March"); break; case 4: printf("April"); break; case 5: printf("May"); break; case 6: printf("June"); break; case 7: printf("July"); break; case 8: printf("August"); break; case 9: printf("September"); break; case 10: printf("October"); break; case 11: printf("November"); break; case 12: printf("December"); break; default: printf("Invalid Month number\nPlease try again ....\n"); break; } return 0; }

3 0
3 years ago
If a database is not maintained or if incorrect data is entered into the database, serious problems can occur. What problems cou
Archy [21]

Database is maintained by keeping only relevant data and updating existing data in a timely manner.

This is achieved by issuing proper insert, update and delete operations.

Incorrect data leads to incomplete information. Databases which hold transaction details, any inaccuracies lead to misinformation to its users.

Both the above lead to serious issues in data maintenance and prove the database ineffective. This indicates manhandling of the database.

No maintenance

Database is maintained when only relevant information is present. Irrelevant information includes information like information of past students, old information of current students, etc.

For students who have completed their courses and left, the database should be updated by removing data of such students.

Also, for newly enrolled students, their enrolment should reflect in the official records.

In case of changes in any of the student information, timely update operations should be performed to keep only current data in the database.

All these operations should be done timely in order to avoid any discrepancies in the real data and updated data in the system.

Incorrect data

In situations where incorrect data is input in the student database, incorrect data will be recorded for that particular student. Incorrect data can be related to ssn, name, address, course details and fees payment.

In case of incorrect transaction details like fees payment, this incorrect data will reflect in the student record as well as will affect the overall earnings of the school.

For enrolled students, correct enrollment details regarding the course and classroom should be recorded. Any error in this data will cause the student inconvenience and the respective student will be at loss.

Also, taking advantage of this situation, any outsider acting as an enrolled student, can gain access to the school.

This leads to mismatch of information and can lead to fraud situations against the educational institute.

3 0
3 years ago
Other questions:
  • Consider ________ when designing for display on a mobile device. font size all of these contrast small screen size
    8·2 answers
  • Match each invention with its effects on the age of exploration.
    6·2 answers
  • How would you define media literacy?
    12·1 answer
  • Write the name of the tab, the command group, and the icon that you need to use to justify
    14·1 answer
  • Your school has been declared a school of technology
    15·1 answer
  • "Why learning how to type is so important.
    7·1 answer
  • Convert 198 / 61 to ratio​
    9·1 answer
  • Convert pounds to ounces.
    11·2 answers
  • Answer if you know Javascript, html, css, python, and Ruby.
    12·1 answer
  • What is the most popular game design engine today
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!