Answer: 10 students
Explanation:
Students younger than 10 = 50%
Students that are 10years old = 1/20 = 1/20 × 100 = 5%
Students that are older than 10 but younger than 12 = 1/10= 1/10 × 100 = 10%
Students that are 12 years or older
= 100% - (50% + 5% + 10%)
= 100% - 65%
= 35%
This means that 35% of the students are 12 years or older and we've been given the number as 70.
Let's say the total number of students is x. Therefore,
35% of x = 70
0.35 × x = 70
0.35x = 70
x = 70/0.35
x = 200
The total number of students is 200.
Therefore, the number of students that are 10years will be:
= 1/20 × 200
= 10 students
Therefore, 10 students are 10 years.
Explanation:
To ensure a smooth transfer, the outgoing incident commander should provide a transfer of command briefing to the new incident commander. This should be done in a scenario in which the Deputy Incident Commander will be replacing the current Incident Commander.
Answer:
- low = 10
- high = 50
- count = 0
-
- for i in range(low, high + 1):
- if(i % 3 == 0 and i % 5 == 0):
- count += 1
- print(count)
Explanation:
The solution code is written in Python.
We can create low and high variables to store the lower bound and upper bound in the range (Line 1-2)
Next create a counter variable, count (Line 3).
Use a for loop to traverse through the number between lower bound and upper bound and check if the current number-i is divisible by 3 and by 5, increment the count by one.
After the loop, print the count and we can get the number of ideal integers within the range (Line 8).
Please provide the language you're using when you ask for programming help, otherwise you aren't going to get the answer that you are looking for.
Here it is in Java, and I'm assuming the number is given via user input? Otherwise, just remove the user input function and replace the integer with a value of your choice. Note, that this isn't the full code; only what is relevant to the question.
public static void main(String[] args) {
int num = numInput(10);
printDoubles(num, 100); // You can create a user input function for
// maxValue if you wanted to.
}
/**
* Receives user input between 0 and the absolute value of maxInput.
* @param maxInput The largest absolute value that can be input.
*/
private static int numInput(int maxInput) {
Scanner sc = new Scanner(System.in);
maxInput = Math.abs(maxInput);
int num = 0;
while (!(num > 0 && num <= maxInput)) {
num = sc.nextInt();
if (!(num > 0 && num <= maxInput)) {
System.out.println("Input too small or too large");
}
}
return num;
}
/**
* Continues to print out num doubled until maxValue is reached.
* @param num The number to be printed.
* @param maxValue The maximum value (not including in which num can be doubled to.
*/
private static void printDoubles(int num, int maxValue) {
if (num >= maxValue) {
System.out.println("No output.");
}
while (true) {
if (num >= maxValue) {
break;
}
if (num < maxValue) {
System.out.print(num + " ");
}
num *= 2;
}
System.out.println();
}
Answer:
Pen Drive offers more accessibility
Not every device is equipped with a CD player but every device has a USB port for a pen Drive. Saving on the pen Drive will therefore enable the data to be more accessible.
Pen Drive has more space.
CDs usually have a storage capacity of below a gigabyte whilst pen drives can reach up to 2 terabytes thereby offering exponentially more space to save data.
Safety of Data
CDs are more prone to damage as data could be lost if the CD is scratches. Pen Drives on the other hand are encased in an outer case that protects the data.