Answer:
the options tab
Explanation:
Answer:
options tab
Explanation:
plato
Write a while loop that replaces every occurrence of “cat” in the message with “dog” using the indexOf and substring methods.
Given:
public class ChallengeReplace
{
public static void main(String[] args)
{
String message = "I love cats! I have a cat named Coco. My cat's very smart!";
// Write a loop here that replaces every occurrence of "cat"
// in the message with "dog", using indexOf and substring.
}
}
Answer:
Complete the program using:
int index = message.indexOf("cat");
while(index != -1){
message = message.replace("cat","dog");
index = message.indexOf("cat");
}
System.out.print(message);
}
}
Explanation:
The line gets the index of string "cat"
int index = message.indexOf("cat");
The following operation is repeated until all occurrence of "cat"s has been replaced with dog
while(index != -1){
message = message.replace("cat","dog");
index = message.indexOf("cat");
}
This prints the new string
System.out.print(message);
}
}
The program illustrates the use of loops.
Loops are used to perform repetitive and iterative operations.
The code segment where comments are used to explain each line, is as follows:
//This gets the index of "cat" in the string message
int index = message.indexOf("cat");
//The following loop is repeated, until there is no occurrence of "cat" in the string
while(index != -1){
//This replaces "cat" with "dog"
message = message.replace("cat","dog");
//This gets another index of "cat" in the string message
index = message.indexOf("cat");
}
//This prints the new string
System.out.print(message);
}
}
At the end of the loop, all occurrence of "cat" are replaced with "dog".
Read more about similar programs at:
https://brainly.com/question/20461017
Joann is in the process of creating a document to introduce her company. She wants to use Quick Parts to complete
her document
Which tab does she use to access Quick Parts?
Which command group does she use to access Quick Parts?
Answer:
Insert, Text
Explanation:
Answer:
Joann is in the process of creating a document to introduce her company. She wants to use Quick Parts to complete her document.
Which tab does she use to access Quick Parts?
✔ Insert
Which command group does she use to access Quick Parts?
✔ Text
Explanation:
Which definition of intelligence is based on the Turing test?
Answer:
The Turing Test is a deceptively simple method of determining whether a machine can demonstrate human intelligence
Explanation:
Answer:
The correct answer would be Acting Humanly
Explanation:
My proof is in this test I took. (See The Picture Below)
Why are charts and graphs included in documents rather than just raw data?
Answer:
It's more organized and easier to look at
Explanation:
If it was just the raw data, it would take more time to analize, rather than it already being in a chart or graph
If you needed a job and wanted to find places that were hiring, how could you do that without fast internet access?
Answer: you cant do it inless you have wifi every where you go i think becuase i try it before thanks
in word you can make lines isolated what is it called
gutter
orphan
widow
merging
Answer:
gutters is a word that you can makes lines isolated because gutter is an orphan widow merging
___________________________________________________________________________________________PLS HE;LP!
Answer: Oh okay, what do I help with
Explanation:
For your biology class, you have taken a number of measurements for a plant growth experiment. You wish to create a chart that shows what the progress looks like over time. Which application is best suited for this effort?
Notepad or Paint
Impress or PowerPoint
Writer or Word
Calc or Excel
A data unit created at the transport layer by UDP is a _____.
A. segment
B. packet
C. datagram
D. frame
Answer:
A datagram
Explanation:
Protocol data units for the Internet protocol suite are: The transport layer PDU is the TCP segment for TCP, and the datagram for UDP. The Internet layer PDU is the packet.
Answer:
I think it's Datagrame
Explanation:
Which line of code outputs the decimal portion of a float stored in the
variable x?
Answer:
the answer is a
Explanation:
1. Which of the following is not the name of a Java wrapper class from the Java API?
A. Byte
B. Int
C. Long
D. Boolean*
2. Which of the following statements will cause a compiler error?
A. Integer i = new integer ( ) ;*
B. Integer j = new integer ("5") ;
C. Integer k = Integer.valueOf ("5");
D. int m = Integer.pareseInt ("5");
3. If variables j and k refer to objects of type Double and j . compareTo (k) returns a value of 1, which of the following is true?
A. The double value held in j is less than the value held inside k.
B. The difference between values held in j and k is 1.*
C. The double values held inside j and k are both positive.
D. The double value held inside j is greater than the value held inside k.
4. What is a radix as used in the method parseInt (String s, int radix) from the integer class?
A. A numeric base 2 such as for binary or 16 for hexadecimal.
B. The number of characters in the string that represent integers.*
C. The Unicode character code to be used when parsing the string.
D. The number of times the string should be repeated before being converted to an int.
5. Which of the following is a static method of the integer class?
A. intValue ( )
B. parseInt ( )
C. toString ( )*
D. compareTo ( )
6. Which of the following statements will cause a compiler error?
A. Double a = new Double (10.6) + 3;
B. Integer b = 0;*
C. Double c = 0;
D. int d = new Integer (7) ;
7. Which of the following is not an example of autoboxing?
A. Boolean a = false
B. Integer b = new integer (9);
C. double x = 3.0;
Double c = x;
D. Character d = ‘2’;*
8. What is the result of the following code fragment?
BigInteger a = new BigInteger (“10”);
BigInteger b = new BigInteger (“25”);
a . multiply (b);
a . add (b);
System.out.println (a);
A. 10
B. 35
C. 250 *
D. 275
9. What is the name of the BigInteger method that will calculate the remainder of division by another BigInteger?
A. modulo ( )
B. modulus ( )*
C. divisor ( )
D. remainder ( )
the ones marked in asterisks are my answers, I'm not totally sure if they're right and would like someone to double check for me
Answer:
1. Which of the following is not the name of a Java wrapper class from the Java API?
A. Byte
B. Int
C. Long
D. Boolean
Int is not a wrapper class
Byte is the wrapper class of byte, Int is not a wrapper class and is a primitive data type, Long is a wrapper class of long, Boolean is a wrapper class for boolean. Hence Int is the correct answer and its wrapper class is Integer.
2. Which of the following statements will cause a compiler error?
A. Integer i = new integer ( ) ;
B. Integer j = new integer ("5") ;
C. Integer k = Integer.valueOf ("5");
D. int m = Integer.pareseInt ("5");
“I” in integer in A and B must be in capital.
3. If variables j and k refer to objects of type Double and j . compareTo (k) returns a value of 1, which of the following is true?
A. The double value held in j is less than the value held inside k.
B. The difference between values held in j and k is 1.
C. The double values held inside j and k are both positive.
D. The double value held inside j is greater than the value held inside k.
Compareto return 1 if first value is greater than with what it is compared.
4. What is a radix as used in the method parseInt (String s, int radix) from the integer class?
A. A numeric base 2 such as for binary or 16 for hexadecimal.
B. The number of characters in the string that represent integers.
C. The Unicode character code to be used when parsing the string.
D. The number of times the string should be repeated before being converted to an int.
The radix value is 10 for decimal, 2 for binary and 16 for hexadecimal. Radix is the base or number of unique digits.
5. Which of the following is a static method of the integer class?
A. intValue ( )
B. parseInt ( )
C. toString ( )
D. compareTo ( )
ParseInt() is a static method of the integer class, and rest are non static methods.
6. Which of the following statements will cause a compiler error?
A. Double a = new Double (10.6) + 3;
B. Integer b = 0;
C. Double c = 0;
D. int d = new Integer (7) ;
In A and C data type does not matches like Double c=0 means Double c=new int(0) which is never true.
7. Which of the following is not an example of autoboxing?
A. Boolean a = false
B. Integer b = new integer (9);
C. double x = 3.0;
Double c = x;
D. Character d = ‘2’;
Autoboxing brings out reference type from the value type, and this is not true for A
8. What is the result of the following code fragment?
BigInteger a = new BigInteger (“10”);
BigInteger b = new BigInteger (“25”);
a . multiply (b);
a . add (b);
System.out.println (a);
A. 10
B. 35
C. 250
D. 275
a.multiply(b) = 250
a.add(b)= 250+25=275
9. What is the name of the BigInteger method that will calculate the remainder of division by another BigInteger?
A. modulo ( )
B. modulus ( )
C. divisor ( )
D. remainder ( )
Remainder is the correct answer.
Explanation:
Please check answer.
Which device assists with medical imaging? HELPPPP!!!!!!
Answer:
Medical imaging equipment are manufactured using technology from the semiconductor industry, including CMOS integrated circuit chips, power semiconductor devices, sensors such as image sensors (particularly CMOS sensors) and biosensorsExplanation:
A business letter should always include the address of the sender.
True
False
Answer:
true
Explanation:it is true because like that they could send that letter were it go's so like that they don't have trouble looking for the person's letter
please mark me as brainlist
what are the weakness of a computer somebody plzz tell me
Answer:
The computer, in spite of its strengths and the denials of its missionaries, does have a number of weaknesses. These can be seen in three areas: first, the machine itself, second, the people who serve it and, third, its output.
A customer complains that the network connection on the laptop is intermittent. The customer states that they are using a wireless PC card for network connectivity. The customer believes that the laptop may be too far from the wireless access point; however, he does not know where the wireless access point is located.
As a technician, you need to be able to ask questions that will be recorded on a work order. What are 5 closed-ended questions and 5 opened-ended questions that you would ask a customer.
how are you
I will ask what's the problem
what happend before u saw this
what did I do after
was anyone with you
and give me permission to help
When would you use the Reading View in Word?
To add an image to the document
To have Word Online read the document to you
To make changes to the document
To read the document without any distractions
Answer:
D: to read the document without any distractionsTo read the document without any distractions is used in the reading View in Word. Thus, option D is correct.
What is an Inference?
This refers to the deductions or conclusions that are made about a particular thing or idea based on available evidence, background information and powers of conclusion.
Hence, we can see that from the given text, Nicholas Carr is quoted as saying that reading online makes people to be 'mere decoders of information.' and this makes people become less engaged as they tend not to use their ability to interpret texts less and less.
Based on the given text, it can be seen that Nicholas Carr believes that reading online makes people not connect as deeply as reading without distraction, which can be an inference, to offline reading.
Therefore, To read the document without any distractions is used in the reading View in Word. Thus, option D is correct.
Learn more about document on:
https://brainly.com/question/27396650
#SPJ2
How do you implement instruction level parallelism
Answer:
To obtain substantial performance enhancements, we must exploit ILP across multiple basic blocks.
Explanation:
When using the standard selection tool, the Hand tool can be activated by holding down the
key photoshop
Answer:
space bar
Explanation:
Lei is being cyberbullied by a group of girls. What advice would most help Lei? Share an unflattering photo of the bullies to get them back Immediately delete all evidence of the bullying Don't ignore or block the bullies online Talk to a trusted adult and get his or her perspective
Answer:
Talk to a trusted adult and get his or her perspective
Explanation:
Steve Jobs described early computers as “the most remarkable tool that we’ve ever come up with..it’s equivalent of a bicycle for our minds.” Would you describe smartphones as a bicycle for our minds?
Answer:
Here is my stance on the phone issue and a quote from Steve himself.
"I think one of the things that really separates us from the high primates is that we’re tool builders. I read a study that measured the efficiency of locomotion for various species on the planet. The condor used the least energy to move a kilometer. And, humans came in with a rather unimpressive showing, about a third of the way down the list. It was not too proud a showing for the crown of creation. So, that didn’t look so good. But, then somebody at Scientific American had the insight to test the efficiency of locomotion for a man on a bicycle. And, a man on a bicycle, a human on a bicycle, blew the condor away, completely off the top of the charts.
And that’s what a computer is to me. What a computer is to me is it’s the most remarkable tool that we’ve ever come up with, and it’s the equivalent of a bicycle for our minds."
Explanation:
Like anything smartphones, computers, and television can be the junk-food equivalent of our minds or the inspiration to better yourself with knowledge and creativity. To me its like a bicycle in that are you riding the bicycle to healthfoods or mcdonalds. Its the freedom of the transportation of knowledge that can be so life-changing and so life-threating at the same time.
I would not think of smartphones as a bicycle for our minds as they do not run on how my mind functions.
What are people view on the quote above?Some people do believe that the statement is true. They think also that smartphones and tablets can be a source of big distraction if not handled well.
Smartphones are a good learning tools, or they can be bicycles for our minds only when they are used by a skillful person.
Learn more about smartphones from
https://brainly.com/question/917245
? Assessment
8/10
Which of the following products likely include Internet of Things (IoT) connected
devices?
A soap dispenser that dispenses soap
when it detects a hand underneath.
A smart toilet flushes automatically
after use.
Lights that turn on when someone
enters the bathroom.
None of the above
Answer:
none of the above
Explanation:
Which statement is true about the location-sharing site Gowalla?
Answer:
a user gets a newbie badge for their first check-in into gowalla.
Explanation:
A user gets a newbie badge for their first check-in into gowalla.
What is Gowalla?
On the location-based social networking site Gowalla, members can check-in to broadcast their whereabouts. The undirected friendship network, which has 196,591 nodes and 950,327 edges, was compiled using their open API.
Longtime readers of TechCrunch will probably remember the startup as an ambitious consumer social app that first caught the attention of Silicon Valley investors but ultimately failed to gain traction.
It appeared that the tale would end there, founder Josh Williams tells TechCrunch that he has made the decision to bring back the Gowalla name and advance its original intent by relying on augmented reality technology.
Therefore, A user gets a newbie badge for their first check-in into gowalla.
To learn more about Gowalla, refer to the link:
https://brainly.com/question/12028030
#SPJ2
BIOS has two Jobs. One is to boot up, or start, the computer. What is the other?
Pl I need help
Answer:
Determining what peripheral dives are being used
Explanation:
BIOS, in full Basic Input/Output System, a Computer program that is typically stored in EPROM and used by the CPU to perform start-up procedures when the computer is turned on. Its two major procedures are determining what peripheral devices (keyboard, mouse, disk drives, printers, video cards, etc.) are available and loading the operating system (OS) into main memory.
P.S. I would include a link to the website I copied this answer from but it's not letting me.
Question 12 (1 point)
Generally, each pixel in an image creates 25 bytes of data.
True
False
Answer:
This is B: False
Explanation:
Each pixel of an image creates 24 bits, or 3 BYTES of data for color, and 1 byte for black and white.
You should structure the
first before you search for a relevant picture.
Answer:
True
Explanation:
Parts of a Computer
Question 3 of 9
Which part looks like a TV screen and lets you see your work and your
3
files?
Computer Case
Printer
Mouse
Monitor
Submit Answer
Please help I’m incredibly confused
Answer:
Monitor Sorry If I’m wrong!
Explanation:
Answer:
Maybe files I think I'm wrong
how major is the technology problem in the United States? Why is it such a big problem?
Answer:
Explanation:
the problem is predators can get to children easier through the internet
PLZ HELP NEEDS TO BE ANSWERED ASAP THANK YOU
Please describe what this assignment is about
Write a program to input 6 numbers. After each number is input, print the biggest of the numbers entered so far.
Sample Run
Enter a number: 1
Largest: 1
Enter a number: 3
Largest: 3
Enter a number: 4
Largest: 4
Enter a number: 9
Largest: 9
Enter a number: 3
Largest: 9
Enter a number: 5
Largest: 9
In python:
lst = ([])
largest = 0
while len(lst) != 6:
user_number = int(input("Enter a number: "))
lst.append(user_number)
for i in lst:
if i > largest:
largest = i
print(largest)
I hope this helps
Answer:
largest = None
for i in range(0,6):
d = int(input("Enter a number: "))
if not largest or d > largest:
largest = d
print("Largest: " + str(largest))
Explanation:
Worked for me!!! :)
Pls help me!!!!!!!!!!!!!!!!!
Answer:
500
Explanation:
and 50
Which of the following would be provided from the use of a GIS?
a. map displaying satellite data of farmland use
b. map displaying projected path of a hurricane
c. Doppler radar images for weather forecasting
d. satellite images used to reconstruct a forest fire
The one that would be provided from the use of a GIS is a map displaying the projected path of a hurricane. The correct option is b.
What is GIS?A computer system that analyzes and presents spatially related data is known as a Geographic Information System (GIS). It makes use of information associated with a certain place.
People can use GIS technology to compare the locations of various objects to determine how they connect to one another. For instance, utilizing GIS, a single map might show both polluting and pollutant-sensitive locations, such as wetlands and rivers, as well as locations that cause pollution, such as industries.
You need to enable tropical storm tracking if you want to follow a hurricane on our map. Click the symbol in the top-right corner to begin.
Therefore, the correct option is b. map displaying the projected path of a hurricane.
To learn more about GIS, refer to the link:
https://brainly.com/question/14464737
#SPJ2