Answer:
input number
calculate modulus of the number and 5
compare outcome to 0
if 0 then output "divisible by 5"
else output "not divisible by 5"
Explanation:
The modulo operator is key here. It returns the remainder after integer division. So 8 mod 5 for example is 3, since 5x1+3 = 8. Only if the outcome is 0, you know the number you divided is a multiple of 5.
Answer:
Explanation:
In Python you need to give access to a file by opening it. You can do it by using the open() function. Open returns a file object, which has methods and attributes for getting information about and manipulating the opened file.
https://eecs.wsu.edu/~cs150/tutorial/file/code11_3.html
Look at this link it may help.
Answer:
Maybe make a loud noise when there is an unacceptable speed
Explanation:
If you speed above the limit you will get a ticket to if it makes a loud noise you can be annoying and speed at the acceptable speed
It cannot be database programs because database programs can not
store and organize data.
create graphics.
communicate data.
alleviate information overload.
It cannot be spreadsheets because a spreadsheet or worksheet is a file made of rows and columns that help sort data, arrange data easily, and calculate numerical data. What makes a spreadsheet software program unique is its ability to calculate values using mathematical formulas and the data in cells.
It cannot be word processing tools because a word processor is software or a device that allows users to create, edit, and print documents. It enables you to write text, store it electronically, display it on a screen, modify it by entering commands and characters from the keyboard, and print it.
Therefore the answer is C. Web design programs.
Hope this helps.
Answer:
option 1: sum++
option 2: ++sum
Explanation:
In programming, a variable a container or memory location assigned to a value. The C++ syntax specifies the memory location type of value on the declaration. The major types of variables in C++ are; integer, float, double, char, string, and boolean.
To add 1 to an integer variable, the variable value could be summed with one and assigned to that same variable or '++before' and 'after++' with adds one to the variable before and after the execution of a statement.