import java.util.Scanner;
public class JavaApplication42 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Input a word:");
String word = scan.nextLine();
for (int i = 0; i < word.length(); i+=2){
System.out.print(word.substring(i,i+1));
}
}
}
I hope this helps!
The program is an illustration of loops.
Loops are used to carry out repetition operations; examples are the for-loop and the while-loop.
The program in Java, where comments are used to explain each line is as follows:
import java.util.*;
public class Main {
public static void main(String args[]) {
//This creates a Scanner object
Scanner input = new Scanner(System.in);
//This prompts user for input
System.out.print("Input a word: ");
//This gets input from the user
String userinput = input.nextLine();
//The following iterates through every other character of userinput
for(int i =0;i<userinput.length();i+=2) {
//This prints every other characters
System.out.print(userinput.charAt(i));
}
}
}
The above program is implemented using a for loop
Read more about similar programs at:
https://brainly.com/question/19104397
In which area of the screen can features and functions of Word be accessed?
Command
Ribbon
Scroll bar
Tab
Please Hurry!!!
Answer:
Toolbar
Explanation:
j don't know if you meant that instead of scroll bar, but tool bar is the answer
Answer:
scroll bar
Explanation:
True or False? You should never move an injured person.
True
False
Answer:
true
Explanation:
Which of these are reasons to evacuate a building during an earthquake? Mark all that apply.
A. There is a water leak.
B. The building is on fire.
C. There is structural damage to the building like newly cracked walls.
D. There is a gas leak.
Answer:
D
Explanation:
Answer:
c, b
Explanation:
I am guessing those are correct I don't really know
At the start of the school year, Brianna’s history teacher announces that students’ final grades will be weighted based on how they do in three categories: exams (60 percent), final presentation (30 percent), and class participation (10 percent). Which strategy would most likely help Brianna get the best grade? spending more time studying for exams than creating the final presentation splitting her time evenly between studying for exams and creating the final presentation concentrating on creating the final presentation and speaking up in class working hard at participating in class and studying for exams
Answer:
it is A
Explanation:
did on edge test
Answer:
A
Explanation:
You wrote a program to find the factorial of a number. In mathematics, the factorial operation is used for positive integers and zero. What does the function return if the user enters a negative three? def factorial(number): product = 1 while number > 0: product = product * number number = number - 1 return product strNum = input("Enter a positive integer: ") num = int(strNum) print(factorial(num))
-6
1
-3
There is no output due to a runtime error.
Answer: well it’s not “There is no output due to a runtime error”
Explanation: Put that and I got it wrong
The Answer Is 1.
Edge 2020.
What number will be output by the console.log command on line 5?
A. 10
B. 11
C. 12
D. 13
E. 16
Answer:
E
Explanation:
If you follow the line of code and add 1, 2, and then 3, 10 + 1 + 2 + 3 = 16.
The output of the block of code will be 16 as the value of the variable is assigned a new value based on the number added to it on each line.
The initial value of the variable oop is 10On the next line, 1 is added to oop and the resulting value is reassigned to the same variable, the new value of oop is 11On the next line, 2 is added to oop and the resulting value is reassigned to oop, the new value of oop becomes 13Variable oop is then increased by 3 ; making the value become (13 + 3) = 16Therefore, the output of the command is 16.
Learn more :https://brainly.com/question/18505492
Can you guys list all the Linux Debian Apps that can only be installed on a Linux terminal command line, I have a deb 32 bit
Answer:
Two of those are apt and apt get and the other one is dpkg. 4. You will see a list of Debian Ensure package lists and installed packages are up to date. ... Apt may fail to remove old Linux kernels when using an Ubuntu version that 39 s ... To install it just enter the following command from the Terminal sudo apt install apt ...
Explanation:
Select the correct answer.
Adrian is organizing a training lecture for his students in various states simultaneously through radio, TV, and the Internet. What is this event
known as?
A. webcast
B. simulcast
C. broadband
D. online lecture
Answer:
a
Explanation:
a webcast is the answer I think
Laptop computers use PCMCIA cards, another type of ________
a.
USB drive
b.
mass storage
c.
smart cards
d.
flash memory
Answer:
mass storage or flash memory
Which of the following is true about overloaded methods?
Answer:
Overloaded must have the same name but different parameter lists.
Explanation:
Given that in certain programming languages such as Java, the overload method is a means by which a specific word or symbol has more than one meaning or function, that Is, different parameters or executions but have the same name.
Hence, in this case, what is true about overloaded methods is that "Overloaded must have the same name but different parameter lists."
Choose a different well-known company that you know of, and describe its direct and indirect competitors. Describe at least 2 direct competitors and 2 indirect competitors.
Answer:
Apple
Direct Competitors: Microsoft and Samsung
Indirect Competitors: Best Buy and Target
correct on edge
PLEASE HELP ME!!! I REALLY NEED YOU TO HELP ME NOW!!!! THANKS!
PLEASE ANSWER CORRECTLY!!!!!!!!!!!!! DONT ANSWER FOR THE POINTS!!!
In this project, you will plan and write a program to solve a math algorithm. You will identify possible errors and handle them in your program. Choosing Your Math Algorithm Think of a math question that takes several steps to solve. It should not be a math question already programmed in the unit. The question should require input from the user, process the information, and display the results. You can choose your own algorithm. It does not need to be one of these. Find the surface area of a cylinder. Find the surface area of a pyramid. Find the hypotenuse of a right triangle. Your Task Write a pseudocode plan for your program. Write the code for your program. Test your program. Run it at least three times with different inputs. Save your program as a .txt file for you cannot upload a .py file. Evaluate your project using this rubric. What to Submit Submit the .txt file holding your program.
Answer:
Surface of a Cylinder Code:
#import math package to use math.pi for the value of PI
import math
#take radius of the base of a cylinder from user
r=float(input("Enter r of a cylinder"))
#take height of the curve surface of a cylinder from user
h=float(input("Enter the Height of a cylinder"))
#calculate the surface area of cylinder
s_area=2*math.pi*pow(r,2)*h
#calculate the volume of cylinder
volume=math.pi*pow(r,2)*h
print("surface area of a cylinder wll be %.2f" %s_area)
print("volume of a cylinder will be %.2f" %volume)
Quadratic Equation Code:
import math
a = int(input("Enter the coefficients of a: "))
b = int(input("Enter the coefficients of b: "))
c = int(input("Enter the coefficients of c: "))
d = b**2-4*a*c # discriminant
if d < 0:
print ("This equation has no real solution")
elif d == 0:
x = (-b+math.sqrt(b**2-4*a*c))/2*a
print ("This equation has one solutions: "), x
else:
x1 = (-b+math.sqrt((b**2)-(4*(a*c))))/(2*a)
x2 = (-b-math.sqrt((b**2)-(4*(a*c))))/(2*a)
print ("This equation has two solutions: ", x1, " or", x2)
Myra just got the latest computer game and wants to play it on her desktop. When she plays the game, she notices that it is sluggish and the animations are not very clear. What can she do to improve her gaming experience?
Answer:
Ram/cpu/gpu... Many many things she can do
Explanation:
It may be a issue of internet bandwith, if this new game requires a insane ammount of internet then it may run low FPS (frames per second) and make myra's game look slughish,but anouther issue may be the ram or cpu, like if this is a new game and you've always played like simple games, so your running on persay a core i3 or i4, it aint gonna cut it on a newer game, you gonna need a probably core i5 or i7, or be like any sane person and switch to amd, it may be a bit pricy but if you want nice clean gaming, then amd is the way to go
Also while you are at it get a ssd
I hope this helps "-"
Answer:
She can upgrade her hardware/software
Explanation:
For hardware, she can troubleshoot any broken components that are possibly in the computer, upgrade cards/fans, etc.
and for software she can upgrade her operating system, upgrade or download any missing frameworks, clear out any software that is taking too much CPU/RAM in the background using task manager/system viewer/KSysGuard, etc.
Which statement is true about hacking?
Hacking is generally a positive practice to stop cyber crime.
Hackers do so for various reasons, including the challenge of it.
Hacking cannot be used in the process to help protect sensitive information.
Hackers are rarely successful when attempting to bypass security software.
Answer:
Hackers do so for various reasons, including the challenge of it
Explanation:
I would say it is this. Plz mark brainliest Thanks:)
Answer:
Hackers do so for various reasons, including the challenge of it
Explanation:
1. What sort of information should be taken by the human resource before
leaving for foreign employment? Write in brief.
Answer:
DDDDDDDDDDDDDDD
Explanation:
Answer:
Sources of information on foreign job opportunities. Blue, newspapers or professional journals; Red, personal contacts abroad; Green, recruitment websites.
Explanation:
Dropdown
Choose the correct data type.
type(3) tells you the type is___
type("35") tells you the type__
type(3.5) tells you the type__
type(3) is int
type("35") is string
type(3.5) is float
Following is the correct data type that one get after giving the following commands”
type(3) is int
type("35") is string
type(3.5) is float
What is the data type?In any of the computer science and computer programming worlds, a data type is considered for the possible value set and it allows what kind of operation one has to do on it. A variable's basic data type is the classification that specifies the type of value it has.
Most of the time, the data type is used for programming, so don't be concerned about the type of mathematical relations and logical operations that can be applied.
There are basically five types of data types divided on the basis of most modern computer languages. They are integral, floating-point, character, character string, and composite types
Learn more about data type from here:
https://brainly.com/question/14581918
#SPJ2
What is the
binary code
for
"DMS"?
Answer:
D= 01000100
M= 01101101
S= 01110011
Explanation:
Given the formula on the left, label the parts. SUM . A2:D19 . E55 . (A2:A19,C13,E55,19) .
Answer:
SUM
✔ function name
.
A2:D19
✔ range
.
E55
✔ value
.
(A2:A19,C13,E55,19)
✔ argument
Answer:
1. B
2. A
3. A
4. C
Explanation:
On edge2020 I got it right
Keith has data in row 12. However, he would actually like that row to be empty. Keith should _____. A.) double-click on cell A12 and press Backspace B.) highlight row 12 and press Delete C.) use the arrow keys to move to row 12 and press Enter or Return D.) use the mouse to click row 12 and press the space bar
Answer:
B.)
Explanation:
In order to have that row, empty Keith should highlight row 12 and press Delete. This would delete all of the data in the row without effectively deleting the formulas. Therefore, allowing you to easily reuse the row if you need to add data to it once again. So this would be the best option for Keith as it easily solves the problem that he is having.
Instructions
Write a program that will add up the series of numbers: 99, 98, 97… 3, 2, 1. The program should print the running total as well as the total at the end. The program should use one for loop, the range() function and one print() command.
Sample Run
99
197
294
390
…
…
…
4940
4944
4947
4949
4950
total = 0
for x in range(99, 0, -1):
total += x
print(total)
I hope this helps!
CALCULATE THE PERCENTAGE OF FAT CALORIES TO TOTAL CALORIES. I got no idea how to do this in excel ;-;
Answer:
As you have the Fat Cal. in column C and the total calories in Column B, what you have to do is to divide column C by Column B.
For instance, in column E2, put the formula: =C2/B2.
Then drag the formula down so that the other formulas will be;
E3; =C3/B3
E4; =C4/B4
E5: C5/B5
E6: C6/B6
Then after that you go to the Home tab, then to the Number style section and format E2 to E5 to be percentages.
to develop vocabulary, a student should increase their
a) use of expression
b) use of punctuation
c) oral reading rate
d) familiarity with sight words
25 POINTS. Which three features are related to the functions of a continuous rotation servo motor?
A. The command signal sets the direction and speed of rotation.
B. It can change the shaft's movement from circular to forward or backward motion.
C. It is commonly used for radar navigation on robots.
D. The motor can turn either clockwise or counterclockwise with no limits.
E. There are barriers in the design that prevent rotation beyond a half circle.
Use of the Internet for e-government has increased. Identify the benefits by checking all of the boxes that apply.
A. It keeps the public informed about events
B. People do not have to vote
C. People can pay bills
D. People do not have to visit the site
E. The government can share important information about issues with the people in that town.
Answer:
the answer is A C and E
Explanation:
What is the value of the variable moneyDue after these lines of code are executed?
>>> numSodas = 2
>>> costSodas = 1.50
>>> moneyDue = numSodas * costSodas
Answer:
3.0
Explanation:
To understand why there is a blank decimal, we have to understand that when you add multiply or subtract with a float (in python), the result will also be a decimal, even you use a blank decimal in the equation. A circumstance where the output would just plain 3, you would have to put in the following:
>>>int(moneyDue)
To insure it will output an int. However, it does not use that line of code, thus proving the answer is 3.0.
hope this helped :D
Answer:
3.0
Explanation:
edge
Write a for loop in python that prints 10 random numbers between 1 and 100 inclusive.
import random
for x in range(10):
print(random.randint(1,100))
what is the depth of the following tree?
Answer:
The correct answer to this question is given below in the explanation section.
Explanation:
This given tree has four nodes. Node A is a parent node in this tree, while B, C, and D are child nodes of A.
The given options about the depth of the tree are:
A). 0B). 1C). 2D). 3The correct option to this question is (B) i.e. the depth of this tree is 1.
Because we know that the depth of a node M in the tree is the length of the path from the root of the tree to M. So, in this case, the depth of node A to node B, C, and D is 1. So, the correct option to this question is B. i.e the depth of the given tree is 1.
What is a characteristic of tasks in Outlook?
The Tasks view can be seen by clicking the View tab.
New tasks are created in the Appointments form
Tasks are an action item in Outlook and are basically a to-do list.
Old tasks are automatically deleted from your list
Answer:
C. Tasks are an action item in Outlook and are basically a to-do list.
Explanation:
A to-do List is just a list of tasks.
and I took the test and got it right
Answer:
C. is correct
Explanation:
edg 2021
Write the line of code to calculate the area of a circle with radius 3 and store it in a variable called
area.
Answer:
area = 2.14 * 3 ** 2
Explanation:
No clue what language you use but this should be pretty universal. To find the area of a circle you use pi(r) ^ 2 or pi times radius squared
[tex]\pi r^{2}[/tex]
In python it looks like this:
>>> area = 3.14 * 3 ** 2
>>> print(area)
28.26 <Printed text
.
Why does the Moon have a greater effect on the tides compared to the Sun? (Select WILL GIVE BRANLEST PLS ASAP
two.)
The Moon is smaller than the Sun.
The Sun is closer to the Earth.
The Moon’s gravitational pull on the Earth’s oceans is stronger.
The Moon is closer to the Earth.
The Sun’s gravitational pull on the Earth’s oceans is stronger.
The correct option that explains the reason why the moon will have greater effect on the tides compared to the sun is;
Option D; The moon is closer to the Earth
Generally speaking, ocean tides on the earth are caused by both the gravity of the moon and the gravity of the sun.Now, the mode of generation of ocean tides is not really by the total strength of gravity, but rather by the gravitational gradient.
Gravitational gradient is simply defined as the gravity differences from one spot to the other.
Now, from research, we know that the sun is far larger than the moon and this means in consequence it will have a far stronger total gravity than that of the moon. However, due to the fact that the moon is closer to the earth than the sun, it means the moon would possess a stronger gravitational gradient than which the sun possesses. Now, let's get to ocean tides; The ocean tides arise as a result of the response of ocean water to a gravitational gradient and as a result, the moon will have a greater role in creating tides than that which the sun does.Read more at; https://brainly.com/question/24996618