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
Sav [38]
4 years ago
11

Write a Function procedure that determines whether a given Integer is divisible by 5 or not. The function should accept one argu

ment having a data type of Integer and return True if that Integer is divisible by 5, False otherwise.
Computers and Technology
1 answer:
oee [108]4 years ago
6 0

Answer:

bool isdivisor(int x) // function definition

{

 if(x%5==0) // check Integer is divisible by 5

 {

   return true;

 }

 else

 {

   return false;

 }

}

Explanation:

#include <iostream>// header file

using namespace std; // using namespace std;

bool isdivisor(int num); // prototype

int main() // main function

{

   bool t; // bool variable

   int num; // variable declarartion

   cout<<" enter the num:";

   cin>>num; // input number

  t=isdivisor(num); // calling

  if(t)

     cout<<" number is divisible by 5 ";

     else

     cout<<" number is not divisible by 5";

     return 0;

}

   bool isdivisor(int x) // function definition

{

 if(x%5==0)

 {

   return true;

 }

 else

 {

   return false;

 }

}

Output:

enter the num:50

number is divisible by 5

Explanation:

In this program we have a declared a Boolean function i.e isdivisor that accept one argument of type int.

check if(x%5==0) it return true otherwise false .

You might be interested in
Which of these is not used by analysts when adopting CASE tools? (1 point) (Points : 1.5) communicating more effectively with us
mojhsa [17]

Answer: expediting the local area network

Explanation: Case tools are the tools or service that helps in the software development but the automatic activity. This tool can be applied on various applications like mobile apps, E-commerce websites etc.

Analyst focus on the features like improving productivity ,low time consumption,integration of the work and making the communication better with the users ,helps in producing large amount of the documents etc.

The only factor not accepted by analyst is accomplishing the operation in the LAN(local area network) as it does not facilitates this operation because it is not software development process.

4 0
4 years ago
Networking device converts analog signals to digital ones?
iren2701 [21]

Solution:

An analog-to-digital converter, or ADC as it is more commonly called, is a device that converts analog signals into digital signals. Analog information is transmitted by modulating a continuous transmission signal by amplifying a signal's strength or varying its frequency to add or take away data.

This is the required answer.

5 0
3 years ago
The owner of BrainPower Tutoring needs an application that clients can use to request an appointment. The application should all
Svet_ta [14]

Answer:

Four buttons are needed for this application

Explanation:

The user activities such as entering the user name, subject, preferred appointment time and phone number are done using a text box. Typically, a text box is used to display, or accept as input, texts from the user.It is a graphical control element intended to enable the user to input text information to be used by the program.

Only activities such as submission of requests, Printing appointment request, clearing the screen and exiting the application, will require the user to click on a button. The buttons should be properly labelled and made to function on click/trigger.

6 0
3 years ago
] 1. Which file type should she use to print the pictures?​
Ksenya-84 [330]

JPG or JPEG

Explanation:

A JPG is versatile in that you can use this file format for print or web, depending on the file's dots per inch (dpi) or pixels per inch (ppi). Images for the web should be 72 dpi, while images for print should be at least 300 dpi. Best used for photographs and web images.

7 0
2 years ago
What happens when an exception is thrown, but the try statement does not have a catch clause that is capable of catching it?
Pavlova-9 [17]

Answer:

A checked exception indicates something beyond your control has gone wrong. ... If an exception does not have a matching catch clause, the current method terminates and throws the exception to the next higher level. If there is no matching catch clause at any higher level, then the program terminates with an error.

6 0
3 years ago
Other questions:
  • When you save a drawing using paint, it's automatically stored as a?
    15·1 answer
  • Using the FAFSA form , you can for apply for what
    14·2 answers
  • Consider the following C++ program in which the statements are in the incorrect order. Rearrange the statements so that itprompt
    6·1 answer
  • Kim is creating a PowerPoint
    13·1 answer
  • In a Web-based database, middleware is used to transfer information from the organization's internal database back to the Web se
    12·1 answer
  • In total, how many 8-bit registers are there in the Intel 80x86 CPU design presented in class? Name one of these 8-bit registers
    9·1 answer
  • Which branch of science helps avoid or minimize stress-related injuries at workplace?
    14·1 answer
  • Which of the following has the greatest impact on telecommunications design?
    12·2 answers
  • Explain the importance of understanding plagiarism, copyright, and fair use during a time when some much of your schoolwork is d
    7·1 answer
  • Glenda is searching airline schedules on HolApp, a mobile Web application. While browsing the application, a banner appears on t
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!