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
Snezhnost [94]
4 years ago
12

Return true if the given non-negative number is a multiple of 3 or 5, but not both. Use the % "mod" operator.

Computers and Technology
1 answer:
Pani-rosa [81]4 years ago
4 0

the following C++ function will return true if the given non - negative number is multiple of 5 or 3 else it will return false.

bool function( int x ){

// variable to check if it is multiple of both or not

int number =0;

if(3%x == 0){

number++;

}

if(5%x == 0){

number++;

}

// Now returning by deciding

if( number <=1)

return true;

else

return false

}

You might be interested in
When reading events in the Event Viewer, you need to recognize the designated levels or classifications. Which of the following
Gala2k [10]

Answer:

B. A problem has occurred that might impact functionality that is external to the application or component that triggered the event.

D. An issue has occurred that can impact service or Result in a more serious problem if action is not taken.

Explanation:

C is not an option as the program ran successfully, and hence no warning was triggered.

A. is not an option as the failure occurs, and its impossible to automatically get rid of it. Hence, this is a failure and not a warning.

B and D are definitely a warning. And hence, the above choices. They clearly are situation in which a warning is being given, and the computer program ends with wrong answer, as the functionality is effected.

8 0
3 years ago
. Service recovery refers to A. the ability to quickly restore service following a service failure and provide compensation. B.
san4es73 [151]

Answer:

A. the ability to quickly restore service following a service failure and provide compensation.

Explanation:

Systems like servers are bound to fail at some point. This is because, it either has running parts or electronic components that could overheat or get shorted due to external or internal malfunction.

The ability of system to quickly restore services and operation after it experiences a total system failure is called system recovery.

7 0
3 years ago
What term describes a wireless network topology in which access points work as peer devices on the same network?
kumpel [21]
Mesh WLAN wireless mesh network WMN describes a wireless network topology in  access points work as peer devices on the same network.
<span />
7 0
3 years ago
Assignment: Write a complete MIPS program that implements the algorithm below (in C ). This algorithm calculates the factorial f
bekas [8.4K]

Explanation:

There are various basic computer programming languages and one of them is the C language, the base of many computer lanuages.

The code of finding factorial is written below;

CODE

#include<stdio.h>

int main (void)

{

    int i,

   int factorial =1,

   int input;

   printf("Enter a number for finding its factorial: ");

    scanf("%d",&input);

   if (input == 0)

factorial = 0

 eles

    for ( i =1; I < = input ;i++)

        factorial = factorial*i;

   

    printf("Factorial of given %d is: %d",input,factorial);

    return 0;

  }

4 0
4 years ago
Write an input command using the variable company_name.
Oxana [17]

Answer:

company_name = input("What if your company name?");

print("I hope " + company_name + "becomes successful!");

Explanation:

The input of the user becomes a variable which is then stored in order to print it out as a message.

4 0
4 years ago
Other questions:
  • The compare_strings function is supposed to compare just the alphanumeric content of two strings, ignoring upper vs lower case a
    15·1 answer
  • Telecommunications is the transmission of voice and video as well as data and usually implies transmitting a longer distance tha
    5·1 answer
  • what is the first step you would take when troubleshooting an external network, such as an internet connection issue?
    13·2 answers
  • What do reservations do?
    15·1 answer
  • Which categories format cells
    14·2 answers
  • Anyone got the edmentum computer programming post test answers?
    6·1 answer
  • Next
    12·1 answer
  • What is booting as used in computers?​
    13·2 answers
  • 8. SQL, Oracle Report, and Visual Basic are all examples under the
    5·1 answer
  • missy just hired a software development team to create an educational simulation app for a high school course. she has specific
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!