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
Tems11 [23]
2 years ago
13

Write a C++ program that determines if an integer is a multiple of 7. The program should prompt the user to enter and integer, d

etermine if it is a multiple of 7 by using a given formula and output the result. This is not meant to be a menu driven program so one run of the program will only offer one input and one output.
Computers and Technology
1 answer:
Dima020 [189]2 years ago
3 0

Answer:

#include <iostream>  // Needed for input/output operation

int main()  // define the main program

{

   int userNumber = 0; // number storage for user input

   std::cout << "Please enter an integer: ";  // Ask user for number

   std::cin >> userNumber;  // Assumes user input is an integer

   if (userNumber % 7 != 0)  // Check to see if 7 divides user input

       std::cout << "\nYour number is not a multiple of 7.\n";

   else

       std::cout << "\nYour number is a multiple of 7.\n";

   return 0;  // End program

}

You might be interested in
What caused accident? into passive voice​
lozanna [386]
Accident was caused by what
6 0
3 years ago
Which of these printers would be the most suitable for printing a large number of high quality black and white printouts?
Alex777 [14]

Answer:

A laser pointer

Explanation:

A laser printer would be the most suitable printer for printing a large number of high quality black and white printouts

8 0
3 years ago
What is the difference, if any, between a Portable Media Player (PMP) and a Digital Media Device (DMD)? PMPs can be analog or di
lara [203]

Answer:

PMPs are typically referred to interchangeably.

Explanation:

3 0
3 years ago
Conceptos importantes de red de computadoras
Bumek [7]

Answer:

-Consiste en conectar varias redes de computadoras basadas en diferentes protocolos -Requiere la definición de un protocolo de interconexión común sobre los protocolos locales. -El Protocolo de Internet (IP) desempeña este papel, definiendo direcciones únicas para una red y una máquina host.

3 0
3 years ago
Which is the order of steps for attaching an item to a contact?
aivan3 [116]
We need to know what item and then we can answer ur question
5 0
3 years ago
Read 2 more answers
Other questions:
  • What is the output after the following code executes?
    14·1 answer
  • List of most popular entertainment and culture websites
    15·1 answer
  • What is the best overall approach to education and career development for IT professionals?
    14·2 answers
  • Choose the types of education an ISS professional
    11·1 answer
  • Which tasks can be completed using the Chart Tools Design tab? Check all that apply.
    5·1 answer
  • When you _____ a scroll bar, a shortcut menu appears with commands related to the scroll bar
    10·1 answer
  • Radar devices are used by law enforcement to be sure that individuals are driving safely. They tell the officer how fast the veh
    12·1 answer
  • Private BLANK are cloud services available to members of a particular organization.
    6·1 answer
  • When doing a Risk assessment, what is one of the most important things to do?
    8·2 answers
  • Name any three areas of of application of excel.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!