In order to help the
student expand his/her knowledge I will help answer the question. This in hope
that the student will get a piece of knowledge that will help him/her through
his/her homework or future tests.
Default tab stops are
set every one half inch across a page. This is a default measure that Microsoft
established. The correct answer is letter
A. 1/2
I hope it helps,
Regards.
<span> </span>
Answer:
public class num7 {
public static void main(String[] args) {
int n =1;
while(n<200){
if(n%5==0 && n%7==0){
System.out.print(n);
System.out.print(",");
}
n++;
}
}
}
Explanation:
- In Java programming Language
- Create and initialize an int variable (n=1)
- Create a while loop with the condition while (n<200)
- Within the while loop use the modulo operator % to check for divisibility by 5 and 7
- Print the numbers divisible by 5 and 7
Answer:
a blog
Explanation:
a forum is for questions, a wiki doesn't make sense in this situation and email wouldn't be used for this either so it should be a blog
<span>
In quantities of data,
"kilo" = 2^10 = 1,024
"mega" = 2^20 = 1,048,576,
"giga" = 2^30 = 1,073,741,824 .
<span> <span /></span></span>
<span>1 gig = 1,024 megs<span><span /></span></span>
Answer:
#include <iostream>
#include <string>
#include <regex>
using namespace std;
int main()
{
cout << "Enter a 5-digit number: ";
string number;
cin >> number;
bool valid = regex_search(number, regex("^\\d{4}[02468]$"));
if (valid) {
valid = stoi(number.substr(0, 1)) + stoi(number.substr(1, 1))
< stoi(number.substr(3, 1)) + stoi(number.substr(4, 1));
}
cout << number << (valid ? " is valid" : " is invalid");
}
Explanation:
Regular expressions can do all of your checking except for the sum of digits check. The checks are i.m.o. easiest if you don't treat the input as a number, but as a string with digits in it.
The regex means:
^ start of string
\d{4} exactly 4 digits
[02468] one of 0, 2, 4, 6 or 8 (this is what makes it even)
$ end of string