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
I need help pleaseeeee!!!
Answer:
True
Explanation:
Integrated Services Digital Network (ISDN) is a set of communication standards for simultaneous digital transmission of voice, video, data, and other network services over the traditional circuits of the public switched telephone network.
Pleaseee mark me as brainliest
Hope this help <3
what is the meaning of .com in computer
Answer:
The answer to this question is given below in the explanation section.
Explanation:
The terms ".com" is the most common term that you see at the end of the domain name. This term is most widely used in computers and in websites. The dot com ".com" is a suffix and most common suffix in website addresses.
Furthermore, the term ".com" is short for a commercial for many educational, personal, profit, and non-profit websites. The reason behind using .com as a suffix in a website name is that it is most common and recognizable.
You can buy a website domain with dot com ".com" suffix from many website hosting companies. The companies that using dot com in their website name they are mostly doing business on the internet.
2. The internet offers a great source of information; however, how are
you going to make sure that these pieces of information are reliable?
Answer:
There are many different ways that you can ensure that the information you gather on the internet is reliable and accurate! One way is to not look at Wikipedia and sites where anyone has the access to edit it at any time. Sites that are .com or .org are usually from a direct and safe source. Stay away from media websites and if you believe something isn't right, do further research.
Explanation:
Hopefully this helps.
What two states do binary numbers represent?
A) Coder and processor
B) Input and output
C) On and off
D) Right and left
Answer:
C
Explanation:
Binary is a base-2 number system that uses two mutually exclusive states to represent information. A binary number is made up of elements called bits where each bit can be in one of the two possible states. Generally, we represent them with the numerals 1 and 0.
Answer:
C
Explanation:
On and off symbolize 0 and 1.
Its made up of a small memory chips on a card that can hold data in an electronic format
The chip can allow you to have more data and more pictures so your phone does not become slow and messages and apps and more.
How do you halt an infinite loop?
by pressing the Control key and the
key
Answer:c
Explanation:ctrl and c stops a infinite loop
Which are examples of primary sources? Check all that apply.
diary
newspaper article
biography
photograph
speech
Answer:
A, D, E
Explanation:
Diaries, photographs, and speeches are all forms of primary sources, whereas biographies and newspaper articles are written by a secondary source.
Answer:
a,d,e
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
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.
what is the computer?
Answer:
an electronic machine that can store, find and
what makes classical music "classical"?
Answer:
Whereas most popular styles are usually written in song form, classical music is noted for its development of highly sophisticated instrumental musical forms, like the concerto, symphony, and sonata. Classical music is also noted for its use of sophisticated vocal/instrumental forms, such as opera.
Answer:
the time period in which it was composed
Explanation:
When a customer makes an online hotel booking the database is updated by using
A) table
B) form
C) query
D)report
When a customer makes a booking, the database is updated by using a form.
Forms in a database are necessary for the manipulation and the retrieval of data. It helps with entering, editing as well as displaying data.
The form allows you to add data to the already existent table and it can also help one to view already existent information.
A form can also be used to view information from query. When this is the case, it searches and analyzes data.
Read more at https://brainly.com/question/10308705?referrer=searchResults
[Exceptions, Function calling another function] Write a function ticker() that first runs (calls) read_ticker() and then stores the returned dictionary. It then runs an interactive loop with the user in which the user is prompted for a company name. If the company name (key) is in the dictionary, then its ticker form and the IPO year is printed. Otherwise a warning is printed that the company name is not in the list. If the user just hits return without entering a name, the loop stops.
this is the function that needs to be called:
def read_ticker():
d = {'1347 Capital Corp.': ('TFSCW', '2014'), '1347 Property Insurance Holdings, Inc.': ('PIH', '2014'), '1-800 FLOWERS.COM, Inc.': ('FLWS', '1999')}
return d
def read_ticker():
d = {'1347 Capital Corp.': ('TFSCW', '2014'), '1347 Property Insurance Holdings, Inc.': ('PIH', '2014'),
'1-800 FLOWERS.COM, Inc.': ('FLWS', '1999')}
return d
def ticker():
di = read_ticker()
while True:
try:
name = input("Enter the name of a company: ")
if name == "":
return
print(di[name])
except KeyError:
print("Name not found! Please enter a valid name!")
ticker()
I hope this helps!
The shooting(blank) should describe a daily plan of the shoot and should include everything from the crew to wrap-up.
Answer:
schedule
Explanation:
Indeed, in almost every video production a shooting schedule is used to describe the daily plan of the shoot; such as what scenes to shoot first, and next.
It also gives details about the crew, as well as the timeline for the entire film production, and so on.
Find true or false. A hacker is hacking software with access in sensitive information from your computer
Social networking is the most popular online activity?
True
False
Answer:
true
Explanation:
Taylor needs to remove the text to the left of his cursor. Which of the following keys should he press?
Answer:
bacspace not delete
Explanation:
delete erases on the right not left
Backspace he should press to remove the text to the left of his cursor.
What is cursor?
A cursor is an indicator used in computer user interfaces to show the current position for user interaction on a computer monitor or other display device that responds to input from a text input or pointing device. Because of its usage resemblance to a pointing stick, the mouse cursor is also known as a pointer. Cursor is a Latin word that means "runner." The transparent slide engraved with a hairline that is used to mark a point on a slide rule is known as a cursor. By example, the word was later transferred to computers. On November 14, 1963, while attending a computer graphics conference in Reno, Nevada, Douglas Engelbart of the Augmentation Research Center (ARC) expressed his desire to pursue his goal of developing both software and hardware computer technology to "augment" human intelligence by pondering how and where to adapt the underlying principles of the planimeter to inputting X- and Y-coordinate data.
To learn more about cursor
https://brainly.com/question/12406758
#SPJ2
Erin’s classmate said that the program that they were working on is not running properly because the classmate accidentally put in commas where semi-colons should be. What kinds of errors does Erin need to fix?
logic errors
database errors
debugging errors
syntax errors
Answer:
A simple syntax error :)
"A character or string incorrectly placed in a command or instruction that causes a failure in execution."
Good luck! Hope this helped! :D
The kinds of errors does Erin need to fix is a simple syntax error.
What is syntax error?Syntax is a character or string when incorrectly placed in a command or instruction results in failure while executing.
Erin’s classmate said that the program that they were working on is not running properly because the classmate accidentally put in commas where semi-colons should be.
The correct way to remove syntax error is putting colon and semicolon on the right place.
Learn more about syntax error.
https://brainly.com/question/18271225
#SPJ2
In a networking context, "architecture" refers to
a. the building that houses the network
b. design
c. the hardware
d. a well-built network
Answer:
A well built netwrk
Explanation:
If you draw strength from video games, how?
Answer:
I really dont know
Explanation:
Thank u for the pts tho < :)
A friend a just opened his own barber shop and has asked you to develop a program to track the type of service the customer is receiving and the cost for the service and also include any tips the customer may give to the barber. The name of your friend's barber shop is Big Al's and on each customer receipt he wants to display the name of his shop, customer name, the type of service, cost of the service, and the amount of the tip for a total price of the service rendered. Name your variables Declare your variables
Answer:
class Barber(object):
barber_shop = "Big AI's barber shop"
def __init__(self, customer_name, type_of_service=[], tip=0):
self.cust_name = customer_name
self.tos = type_of_service
self.tip = tip
def service_type(self, *args):
for i in args:
self.tos.append(i)
def total(self):
services = {'trimming':10, 'hair_cut':20, 'shaving':15, 'washing':5, 'dyeing':5}
contain = ''
total = 0
for service in self.tos:
if service in services.keys():
total += services[service]
contain += f'{service}: {services[service]}\n'
print(self.barber_shop,'\n', self.cust_name,'\n', 'Services:',contain.splitlines(),'\n', \
f'total: ${total}', '\n',f'Tip: ${self.tip}')
mycust = Barber('John',['washing'],6 )
mycust.service_type('shaving', 'dyeing')
mycust.total()
Explanation:
The Barber class is a blueprint used to create an object instance of customers that visits the barber-shop. It has two methods 'service_type' and 'total' which are just defined functions of the class that appends services to the type of service variable and total that prints the total cost of services on the screen.
Shira’s Shoes sold 875,000 pairs of sandals in June, which was 70% of the total number of shoes sold. How many shoes did the company sell in June? Analyze Emily’s calculations. What error did she make?
Explanation:
Emily solved for a part when she should have solved for the whole. 875,000 should be the numerator of the equivalent ratio. 70 x 12,500 is 875,000. So the answer is 100 x 12,500 which is 1,250,000.
Answer:
Emily solved for a part when she should have solved for the whole. 875,000 should be the numerator of the equivalent ratio. 70 x 12,500 is 875,000. So the answer is 100 x 12,500 which is 1,250,000.
What are 5 different google g-suite tools that you can use to collaborate and communicate with othe
it is google docs like stuff made by google
Sonora wants to extend the cells to be added in her formula. What is the quickest way to add more cells?
O Go to the Function Library group and click Insert Function.
Click the Insert tab in the ribbon and then Equation.
O Type the ranges in the parentheses in the formula bar.
O Left-click on a cell that is included and drag the cursor.
Answer:
D
Explanation: took the test on edge
Answer:
Left-click on a cell that is included and drag the cursor.
Explanation:
please help me I want the answer for the 3rd question
(true or false) One of the difficult things about working in game design is that while there are many different roles, most of them only match one specific personality type.
True
False
Select all the correct answers.
In which TWO ways does e-governance empower citizens?
Citizens can obtain information directly from government websites.
Citizen can easily fix appointments with senators online.
Citizens do not need to travel to government offices.
Citizens can vote online on the bills introduced in the legislature.
i will have more questions under ur answers
Answer:
Citizens can obtain information directly from government websites.
Citizens do not need to travel to government offices.
Explanation:
These seem the most appropriate to me.
Animal wisdom/ the last wolf .compare and contrast the overall feeling of each poem
[Files, for loops, exceptions; 20pt] Using a for loop, write a function called countWord(). It takes 2 parameters: The name of a text file (e.g. gettysburg.txt that is included with this test) and a word to be searched within that file. Your code should return the number of times the given word appears in the file. Capitalization should not matter. Make certain to handle file exceptions gracefully.
def countWord(name, word):
try:
f = open(name, "r")
lst = ([])
w = ""
for x in f.readlines():
w += x.lower()
lst = w.split()
f.close()
return lst.count(word)
except FileNotFoundError:
print("Please create a file or use the name of an existing text file.")
print("Your word appears", countWord("gettysburg.txt", "random"), "time(s)")
The text file I used for testing looks like:
random words
random words
I'm putting random words in here
random
this is random
RaNdOm
I didn't really know what exceptions your professor is looking for so I just used the file not found one. Best of luck.
it is where your cpu (processor) is installed
Answer:
OPTICAL DRIVE
Explanation:
It think