In order to ask for user for input in store the results as a stream, you should use the function. Readline, readlnt, string, algorithm
Answer: String
-DoggyMan5
Which of the following items are present in the function header?
A. function name and parameter (variable) list
B. parameter (variable) list
C. return value
D. function name
What do you call the parts of the motor that do not move?.
Answer:
The stator..?
Explanation:
Stators are the stationary parts of motors. Dunno if I'm right lol
A keyboard would be considered _____. Select 2 options.
Answer:
What are the 2 options?
Explanation:
Answer:
Do you have the options?
Explanation:
Is the quote "Stay inside and have water and food ready in case power goes out" a definition of...
A. Thunderstorm
B. Winter storm
Answer:
winter storm
Explanation:
possibility of a snow-in.
Count operation Lucky twos
Lucky Twos determines and displays the number of digits that are 2s in a whole number. For example, the number of 2s in 3487 is 0, while the number of 2s in 272521 is 3. Note: whole numbers are non-negative integers starting at zero 0, 1, 2, 3, 4.
Assume that the fractional part is discarded in the division:
10 / 4 = 2
8 / 5 = 1
20 / 3 = 6
Read number
set count to 0
while number > 0
If the number module 10 is Then add
1 to count
End If
Compute number as number / 10
End while
Display count.
Let n be the number of digits of the whole number. What is the number of operations that are executed in the code in terms of n?
Answer:
Following are the solution to this question:
Explanation:
Its complexity of both the pseudo-code described is indeed proportional to the number of digits. So, how often number there are in this specific number is the query. Whenever a number is considered, the d digit would be between [tex]10^{(d-1)}.[/tex] inclusive exclusive [tex]10^d[/tex] That would be as, let d become the number of digits at N, and the inequalities, They can tell
[tex]10^{(d-1)} \leq N < 10^d[/tex]
We get, we take a logarithm,
[tex]d-1 \leq \log(N) < d[/tex]
The increase of 1 to the left inequality, [tex]d \leq \log(N)+1[/tex], and Combining the previous outcome, we got, [tex]\log(N) < d \leq \log(N) + 1[/tex]. That's would be to say, that number of number d by [tex]O(\log(N))[/tex] is higher and lower. Consequently, the number of transactions in the code is [tex]O(\log(N))[/tex]
We have that the number of operations that are executed in the code in terms of n is mathematically given as
The quantity of operations done in the code is O(log(N))
Operation
Generally the equation for the is mathematically given as
If we think about a number,
with d digits is between 10^(d-1) inclusive and 10^d exclusive.
Let d be the wide variety of digits in N
10^(d-1) <= N < 10^d
d-1 <= log(N) < d
d <= log(N) + 1,
The Inequality
log(N) < d <= log(N) + 1.
Therefore
The quantity of operations done in the code is O(log(N))
For more information on Inequality visit
https://brainly.com/question/19491153
The science of how an object reacts to its motion through air is called _______________. (12 letters)
HURRY!!!
ANSWER CORRECTLY AND YOULL GET BRAINLIEST
Explanation:
friction drag that is your answer 12 letters
Answer:
drag
Explanation:
im not the brightest but in the sentients it should have "drag" in it but u can listen to others answers to make sure
EASY In the image, what will be the result of pressing the Delete key
TWO times?
O Determation
O Determination
O Determinion
O Determition
Select four examples of fluid or pneumatic power systems.
crane
dentist's chair
barber's chair
bulldozer
calculator
wheelchair
Suppose we want to prove the statement S(n): "If n ⥠2, the sum of the integers 2 through n is (n+2)(n-1)/2" by induction on n. To prove the inductive step, we can make use of the fact that 2+3+4+...+(n+1) = (2+3+4+...+n) + (n+1) Find, in the list below an equality that we may prove to conclude the inductive part.
a. If n ⥠3 then (n+2)(n-1)/2 + n + 1 = (n+3)(n)/2
b. If n ⥠1 then (n+2)(n-1)/2 + n + 1 = (n+3)(n)/2
c. If n ⥠2 then (n+2)(n-1)/2 + n + 1 = (n+3)(n)/2
d. If n ⥠1 then (n+2)(n-1)/2 + n + 1 = n(n+3)/2
Answer:
The answer is "Choice c".
Explanation:
Please find the complete question in the attached file.
To begin with, allow its principle of the numerically solving to be recognized, three stages are concerned.
1. Topic n=1
2. Suppose n to be true
3. Display n+1 it retains
We have LHS as 2+3+ for the third step now [tex](n+1) = (2+3+.. \& n) + n+1[/tex]
We can now replace the bracket of RHS by [tex]\frac{(n+2)(n-1)}{2},[/tex]as we assumed its valid for n in step 2
if we do that we get
[tex]= \frac{(n+2)(n-1)}{2+(n+1)}\\\\= \frac{(n^2-n+2n-2+2n+2)}{2}\\\\= \frac{(n^2+3n)}{2}\\\\= \frac{n(n+3)}{2}[/tex]
There are several possible reasons why a high percentage of IT projects are abandoned-the business strategy changed, technology changed, the project was not going to be completed on time or budget, the project sponsors responsible did not work well together, or the IT strategy was changed to cloud or SaaS.
a. True
b. False
Answer:
a. True
Explanation:
The above listed information are part of the reasons why so many IT projects are abandoned by the business entities after a given period of time frame.
Which of the following is a contact force?
A. friction
B. magnetism
C. gravity
D. electricity
Answer:
A
Explanation:
Pls help I will give points
Answer:
Laptop
Explanation:
5. Write the output of the following program codes
publicstaticvoidmain(String []args)
{
int a=20
String b=”Hello”;
System.out.println(“the no is”+a);
System.out.print(“Hello”);
System.out.println(“#######”);
System.out.print(“Bye:””);
}
Answer:
see picture
Explanation:
There are several syntax errors in the program that need to be fixed:
No spaces in the declarationNo semicolon after variable a declarationIncorrect double quotes everywhere Extra double quote after "Bye:"So the actual answer would be: the compiler will report syntax errors.
Answer:
the no is20
Hello#######
Bye:
Reason: Programming, hoped this is right!
EASY What does the Backspace key do?
O Inserts characters behind (or to the left of) the insertion
point.
O Removes characters behind (or to the left of) the insertion
point.
O Removes characters in front of (or to the right of) the
insertion point
O Inserts characters in front of (or to the right of) the insertion
point.
Answer:
Removes characters behind (or to the left of) the insertion point.
Explanation:
“A school is looking to build a new 30 desktop PC computer suite. The school has limited funds available. The PCs will have a lot of different software installed as well as an operating system and multiple students’ profiles.” [6 marks]
Answer:
it depend on the software the computer has along with how much data it can hold
Explanation:
Answer:
Depends on the software code the computer has
Explanation:
Josh wrote the following e-mail to his co-worker. PLEASE HELP QUWICK
i need the figues to enter them into my DBA presentation. ASAP. please send.
This is an example of _____.
effective communication
nonverbal communication
ineffective communication
workplace communication
Answer:
Answer choice 4
Explanation:
If Josh sends an e-mail to his... co-worker.... wouldn't that be... workplace communication?
How does Windows operating system manage the file?
Answer:
The OS allows you to organize the contents of your computer in a hierarchical structure of directories that includes files, folders, libraries, and drives. Windows Explorer helps you manage your files and folders by showing the location and contents of every drive, folder, and file on your computer.
А ______
network is good for connecting computers over boundaries.
campus area
local area
wide area
system area
Answer:
wide area network (WAN)
Explanation:
Answer: B. Local area
A local area network is good for connecting computer clusters
Prompt
Using complete sentences post a detailed response to the following.
While visiting a friend’s house, you hear their siblings arguing over whether or not “visual novels” are “real games” or not. You hear Boris, the older sibling, saying “…and you just sit there and click to read the next line—you might as well be reading a comic book and turning a page and call that a ‘game’!” When they find out you’ve been taking a class on game design, they ask you to settle the argument for them. What would you say to them?
Answer:
As long as it works like a game and not a book i would say its a game.
Explanation:
besides earning money why do people work
Answer:
to make a name for themselves
Explanation:
6. What is a search engine?
a program that searches engines
a web site that searches anything
a hardware component
a machinery engine that search data
It is a web site that searches anything
Answer:
It is a web site that searches anything, the guy above me was Correct EDGE 2022!
Explanation:
In the binary system, 1 and 0 are not known as digits. Instead, they are called
bits
switches
flow
variables
decimals
Answer:
Variables
Explanation:
I hope it helps
Answer:
C variables
Explanation:
Pls help me awnser this I will give points
Answer:
first one is "int" second one is "string" and third one should be "float"
Explanation:
not sure if the first one is right but try this.
To have integrity means that you
LAB: Even/odd values in an array
Write a program that reads a list of integers, and outputs whether the list contains all even numbers, odd numbers, or neither. The input begins with an integer indicating the number of integers in the list. The first integer is not in the list. Assume that the list will always contain less than 20 integers.
Ex: If the input is:
5 2 4 6 8 10
the output is:
all even Ex:
If the input is:
5 1 -3 5 -7 9
the output is:
all odd
Ex: If the input is:
5 1 2 3 4 5
the output is:
not even or odd
Your program must define and call the following two methods. isArrayEven() returns true if all integers in the array are even and false otherwise. isArrayOdd() returns true if all integers in the array are odd and false otherwise.
public static boolean isArrayEven(int[] arrayValues, int arraySize)
public static boolean isArrayOdd(int[] arrayValues, int arraySize)
LabProgram.java
Load default template
1 import java until Scanner
2
3 public class ropa
4
5 /* Define your method here */
6
7 public static void main(Strist args) {
8 /* Type your code here */
9 }
10
11
11
Answer:
In Java:
import java.util.*;
public class Main{
public static boolean isArrayEven(int[] arrayValues, int arraySize){
boolean val = true;
int odd = 0;
for(int i =0;i<arraySize;i++){
if(arrayValues[i]%2!=0){
odd++; }}
if(odd>0){
val = false;}
return val;
}
public static boolean isArrayOdd(int[] arrayValues, int arraySize){
boolean val = true;
int even = 0;
for(int i =0;i<arraySize;i++){
if(arrayValues[i]%2==0){
even++;}}
if(even>0){
val = false;}
return val;
}
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Array Length: ");
int n = input.nextInt();
int[] array = new int[n];
System.out.print("Array Elements: ");
for(int i = 0;i<n;i++){
array[i] = input.nextInt(); }
boolean even = isArrayEven(array,n);
boolean odd = isArrayOdd(array,n);
if(even == true && odd == false){
System.out.print("all even"); }
else if(even == false && odd == true){
System.out.print("all odd"); }
else{
System.out.print("not even or odd"); }
}
}
Explanation:
This declares the isArrayEven method
public static boolean isArrayEven(int[] arrayValues, int arraySize){
This initializes the return value to true
boolean val = true;
This initializes the frequency of odd numbers to 0
int odd = 0;
This iterates through the array
for(int i =0;i<arraySize;i++){
This checks if the current array element is odd
if(arrayValues[i]%2!=0){
If yes, the frequency of odd numbers is incremented by 1
odd++; }}
If the frequency of odd is greater than 1, then the array is not an even array
if(odd>0){
val = false;}
This returns true or false
return val;
}
This declares the isArrayOdd method
public static boolean isArrayOdd(int[] arrayValues, int arraySize){
This initializes the return value to true
boolean val = true;
This initializes the frequency of even numbers to 0
int even = 0;
This iterates through the array
for(int i =0;i<arraySize;i++){
This checks if the current array element is even
if(arrayValues[i]%2==0){
If yes, the frequency of even numbers is incremented by 1
even++;}}
If the frequency of even is greater than 1, then the array is not an odd array
if(even>0){
val = false;}
This returns true or false
return val;
}
The main method begins here
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
This prompts for length of array: System.out.print("Array Length: ");
This gets input for length of array int n = input.nextInt();
int[] array = new int[n];
This prompts for array elements: System.out.print("Array Elements: ");
This gets input for the array
for(int i = 0;i<n;i++){
array[i] = input.nextInt();
}
This calls the isArrayEven method and the result is stored in even
boolean even = isArrayEven(array,n);
This calls the isArrayOdd method and the result is stored in odd
boolean odd = isArrayOdd(array,n);
The following prints the result of the methods
if(even == true && odd == false){
System.out.print("all even"); }
else if(even == false && odd == true){
System.out.print("all odd"); }
else{
System.out.print("not even or odd"); }
(15) You are a Pascal teacher (a very good programmer using assembly language(i.e., machine language) of your local machine). You are given only the following programmes:(at) A compiler written in P-code: translate a program in Pascal to one in P-code(P-code is very close to your local machine language).(b) A P-code interpreter written in Pascal: able to interpret any program writtenin P-code.a) (10) What will you do (with minimal effort) to run the Pascal programs yourstudents submit on your local machine
jeff has just upgraded from windows 7 to windows 10 and he is confused. He has started several universal apps but he can't figure out how to close them. how would you explain the process for closing a universal app?
Answer: Find the app you want to close, then go to the moveable panel and click the X.
what is 30 x 30 x 30 x 30
Answer:
its is 810000
Explanation:
hope this helps
You want to substitute one word with another throughout your
document. What tool(s) should you use?
O Cut and Paste
O Dictionary
O Find and Replace
O Copy and cut