Explanation:
Function keys:F1,F2,F3,F4
Alphabetic keys H,A
I just need some help working out this Java code! I can list the instructions below:
Modify the CountSpaces program so that contains a String that holds your favorite inspirational quote. Pass the quote to the calculateSpaces method and return the number of spaces to be displayed in the main method.
We're given this to start however I have been struggling as there are two classes and it's been confusing me. Thanks so much for any help! All good and God Bless!
public class CountSpaces
{
public static void main(String[] args)
{
// write your code here
}
public static int calculateSpaces(String inString)
{
// write your code here
}
}
Answer:
public class CountSpaces
{
public static void main(String[] args)
{
String quote = "The concept of infinity is meaningless inside of an insane human mind.";
int nrSpaces = calculateSpaces(quote);
System.out.println("Nr spaces in your quote is " + nrSpaces);
}
public static int calculateSpaces(String inString)
{
int count = 0;
for (int i = 0; i < inString.length(); i++) {
if (inString.charAt(i) == ' ') {
count++;
}
}
return count;
}
}
Explanation:
In this example there is only one class, and since all methods are static the true concept of the class is not even being used.
n
Which of the following is not a goal of a persuasive speaking?
a. to motivate to action
b.
to change attitudes, beliefs, or values
to strengthen or weaken attitudes, beliefs, or values
d. to define, demonstrate, or instruct
C.
Answer: D. to define, demonstrate, or instruct.
Explanation:
Persuasive speaking is the form of speaking that we usually engage in. It is used to convince people. As individuals, we usually engage in persuasive speaking. We argue about different things and try to convince the other person to agree with us.
Th goals of persuasive speaking is to motivate to action, to change attitudes, beliefs, or values and to strengthen or weaken attitudes, beliefs, or values.
It should be noted that the goal of persuasive speaking isn't to to define, demonstrate, or instruct. Therefore, the correct option is D.
Answer:
Simple Answer: D
Read the integer numbers in the text file "1000 Random Number from 0 to 100.txt" into a list
PLEASE HELP THANK U!!
Answer:
random_number_file = open("1000 Random Number from 0 to 100.txt", 'r')
random_number_list = random_number_file.readlines()
print('random_number_list)
Explanation:
The name of the file containing the random integer text is ; "1000 Random Number from 0 to 100.txt"
The random_number_file variable stores the opened file ("1000 Random Number from 0 to 100.txt") using the open keyword and reads it ('r')
This file stored in the random_number_file variable is the read into a list by using the readlines() method on the random_number_file
What can always be seen in the Styles gallery?
O built-in styles with samples
O the original formatting of the document
O changes that have been made to the document's text
O examples of the last five formats used
Please help ASAP
Answer:
examples of the last five formats used
please mark me as brainliest i dont have 1 yet :/
Kirstie needs a computer for word processing, emailing, downloading high definition TV
series from an online store and basic photo editing.
Which computer would you recommend for Kirstie? Give reasons for your answer.
Given a string, an integer position, and a character, all on separate lines, find the character of the string in that position and replace it with the character read. Then, output the result.
Ex: If the input is:
warn
0
e
the output is:
earn
Note: Using a pre-defined string function, the solution can be just one line of code.
Answer:
The program in Python is as follows:
myStr = input()
pos = int(input())
chrr = input()
myList=[]
myList[:0]=myStr
myList[pos] = chrr
myStr =""
for i in myList:
myStr+=i
print(myStr)
Explanation:
This gets input for the string
myStr = input()
This gets input for the character position
pos = int(input())
This gets input for the incoming character
chrr = input()
Create an empty list
myList=[]
Convert the string to a list
myList[:0]=myStr
Replace the character
myList[pos] = chrr
Empty the string
myStr =""
Get the new string
for i in myList:
myStr+=i
Print the new string
print(myStr)
Following are the C++ program to replace the first index value of the string.
Program Explanation:
Defining header file.Defining the main method.Inside the main method three variable "Sval, Spos, Subchar" is declared in which "string, int, and char".After input variable value a string variable is declared with the at (method), which replaces the first index value with the character value.After replacing the first index value that is "0" use the prints method that prints its value.Program:
#include <iostream>//header file
#include <string>//header file
using namespace std;
int main() //main method
{
string Sval;//defining string variable
int Spos;//defining integer variable
char Subchar;//defining char variable
cin>>Sval>>Spos>> Schar;//input value
Sval.at(Spos) = Subchar; //using string variable that replaces the first index value with the character value
cout << Sval << endl;//printing the replaced value
return 0;
}
Output:
Please find the attached file.
Learn more:
brainly.com/question/24494143
in a dark place you have only a match , a twig , campfire logs , and oil lamp and a candle which do you literally first /
a twig
a campfire
none of the above
Answer:
You would use a twig first :)
Explanation:
Answer:
The glowing embers from the crackling campfire lit up the nighttime sky.
Explanation:
Emilio has created a document in Word and needs to print labels. He is shopping at a store and finds Avery labels
and another brand that is less expensive. What does Emilio need to do before buying the less expensive labels?
O He needs to make sure the number of labels is the same.
O He needs to make sure that the dimensions match the Avery labels.
O He needs to check to see if they are compatible with Word.
O He needs to check to see if Word has a setting for that label.
Answer:
He needs to check to see if they are compatible with Word
Explanation:
A label is a attachment to an object, with the aim of identifying the object such as the mail to address on an envelop, In MS Word, there several label templates to choose from, which are located under the Mailings tab
To create a label in MS Word, we have the following steps
1) Select Labels under the Mailings tab
2) Select the Options button in the Labels dialogue box, then select the label vendor and the product of the vendor to be used
3) Enter the address of the mail in the Address box after selecting the vendor
Therefore, Emilo being at the shopping center rathe then on his computer will only have access to check if the cheaper label is also compatible with MS Word, from the label vendor's specifications
1. Ngangingazi Ukuthi Ukulalela Abazali Nothisha Bami Kuletha Impumelelo
Enhle Kangaka.
[50]
Answer:
yebo kumele ubalalele ngoba ayikho into yakho eyophumelela ungabalalelanga abazali
One of the following is NOT a type of Intellectual Property
Group of answer choices.
a) Copyright
b) Trademark
c) Trade Secrets
d) Privacy
Answer:
d) Privacy
Explanation:
An intellectual property can be defined as an intangible and innovative creation of the mind that solely depends on human intellect.
Simply stated, an intellectual property is an intangible creation of the human mind, ideas, thoughts or intelligence. They include intellectual and artistic creations such as name, symbol, literary work, songs, graphic design, computer codes, inventions, etc.
Generally, there are different types of intellectual property (IP) and this includes;
a) Copyright
b) Trademark
c) Trade Secrets
However, privacy is a type of intellectual property.
Q4. What is one of the benefits of using a library in a program?
Answer:
Simplifies creating a complex program
Explanation:
A collection of wiress connecting the CPU with main memory that is used to identify particular location is called
Answer:
Address buses are made up of a collection of wires connecting the CPU with main memory that is used to identify particular locations (addresses) in main memory. The width of the address bus (that is, the number of wires) determines how many unique memory locations can be addressed.
Explanation:
Address buses are made up of a collection of wires connecting the CPU with main memory that is used to identify particular locations (addresses) in main memory.
What is CPU?
The electronic equipment that carries out the instructions included in a computer program is known as a central processing unit (CPU), sometimes known as a central processor, main processor, or simply processor.
The CPU executes fundamental mathematical, logical, controlling, and input/output (I/O) activities as directed by the program's instructions. In contrast, specialized processors like graphics processing units and external components like main memory and I/O circuitry (GPUs).
Although CPUs' shape, design, and implementation have evolved throughout time, their basic function has remained mostly same. The arithmetic-logic unit (ALU), which performs arithmetic and logic operations, processor registers.
Therefore, Address buses are made up of a collection of wires connecting the CPU with main memory that is used to identify particular locations (addresses) in main memory.
To learn more about CPU, refer to the link:
https://brainly.com/question/16254036
#SPJ5
Can anyone help me solve this?
Answer:
what should be basically be done in this question?
What is the output of:
print (8 % 4)
Answer:
0
Explanation:
The statement, print(8 % 4) will produce the output 0 ;
The print statement is an inbuilt function which is used to output a typed string or display result of a Mathematical calculation and so on.
The expression in the print statement gives 0;
8%4 means, the remainder when 8!is divided by 4 ; 8 /4 gives 2 without a remainder. Meaning that :
8%4 = 0
Hence, print(8 % 4) = 0
Phishing is ____________. When hackers overwhelm a website with too many requests. A network of private computers infected with malicious software and controlled as a group without the owners' knowledge. A piece of code that is capable of copying itself and typically has a detrimental effect, such as corrupting the system or destroying data. Emails designed to trick users into sharing private information.
Answer:
Emails designed to trick users into sharing private information.
Explanation:
if that is a multiple choice question and the other sentences is the answer choices.
what type of data type is 1+78-5
Answer:
Integer
Explanation:
Given
[tex]1 + 78 - 5[/tex]
Required
The datatype
1, 78 and -5 are all numbers and they are without decimal points,
When a number is without decimal, such number is referred to as integer.
Hence, the datatype is integer
Can anyone help me with a mental ability work plzz
choose the correct option:
1) using
2) is
3) use
4) to eat
5) use
Which of these is not a nonverbal cue?
main idea
posture
volume
eye contact
Answer:
volume and not the remaining ones
an_is a sepuence of precise instructions which result in a solution
Answer:
algorithm.
Explanation:
An algorithm can be defined as a standard formula or procedures which comprises of set of finite steps or instructions for solving a problem on a computer. The time complexity is a measure of the amount of time required by an algorithm to run till its completion of the task with respect to the length of the input.
Furthermore, the processing symbols and their functions used in developing an algorithm are oval (start or stop), diamond (decision-making), circle (on-page connector), parallelogram (input and output), rectangle (calculation), arrow (flow or direction) and pentagon (off-page connector).
Some of the characteristics of an algorithm include the following;
I. An algorithm can be written using pseudocode. A pseudocode refers to the description of the steps contained in an algorithm using a plain or natural language.
II. An algorithm can be visualized using flowcharts. A flowchart can be defined as a graphical representation of an algorithm for a process or workflow.
In conclusion, an algorithm is a sequence of precise instructions which result in a solution for solving problems using a computer system.
A ____ is an icon that does not directly represent a file, folder or application but serves as a link to it?
Answer:
Shortcut
Explanation:
A file can be defined as a computer resource that avails end users the ability to store or record data as a single unit on a computer storage device.
Generally, all files are identified by a name, icon, size, and type (format) such as audio, image, video, document, system, text, etc.
Furthermore, files are organized or arranged in directories. These directories are paths that describes the location wherein a file is stored on a computer system.
A software can be defined as a set of executable instructions (codes) or collection of data that is used typically to instruct a computer on how to perform a specific task and solve a particular problem. Thus, it's a computer program or application that comprises of sets of code for performing specific tasks on the system.
In Computer science, it's possible to create a shortcut in several directories (locations) on a computer, so as to reference a file, folder or software application and serve as an executable link.
Hence, a shortcut is an icon that does not directly represent a file, folder or application but serves as a link to it.
Additionally, deleting the shortcut of a data file, folder or software application would not permanently delete or uninstall the main data file respectively.
Jax earned 144 points on a research project. In this situation, what is the number 144? Group of answer choices data information knowledge output
Answer: data
Explanation:
Data refers to symbols or numbers that aren't meaningful. It's an an individual unit which consists of raw materials. Data hato be interpreted in order to become meaningful. They are fact or figures. Examples of data include 24, London, 144 etc.
Information on the other hand is a data that has been processed. e.g. Bob has an aggregate score of 144. Based on the question given, the number 144 is a data as it isn't meaningful yet.
Answer:
The answer is A
Explanation:
"as data"
help,these are true and false and tick and cross
Answer:
1.
a.true
b.false
2a internal
Explanation:
hope it helps you
which of the following is the best example of an installation issue
Answer:
A user made an error while trying to set up a software program.
Answer:
A computer can't find the file that it needs to perform an operating system function. A computer displays error messages, and then the Blue Screen of Death appears. A user made an error while trying to set up a software program.
Explanation:
what is meant by versatility in terms of features of computer?
Answer:
Versatility refers to the capability of a computer to perform different kinds of works with same accuracy and efficiency.
Explanation:
thank me later
Versatility refers to the effort or ability of a computer to carry out different kinds of works and it is done that is done on the same level of accuracy and efficiency.
What is versatility in computer?Computer is known to be a machine that is said to be versatile machine as it is made up of a lot of field and also involves in Multi-tasking.
Therefore, Versatility refers to the effort or ability of a computer to carry out different kinds of works and it is done that is done on the same level of accuracy and efficiency.
Learn more about Versatility from
https://brainly.com/question/26285269
#SPJ2
of the following potential benefits, which is LEAST likely to be provided by the upgraded system?
A Human representatives will not be needed to respond to some inquiries.
B
The company will be able to provide a human representative for any incoming call.
с
Customers are likely to spend less time listening to information not relevant to their issue.
D
Customers will be unable to mistakenly select the incorrect department for their particular issue.
Answer:
The company will be able to provide human representative for any incoming call
Explanation:
The upgrade of a system is meant to resolve identified issues in an initial system and given that the available human representative is usually less than the number of incoming call at a given time, due to a constant drive for a larger customer base, we have;
The upgraded system will provide technologies such that human representative will not be required for some inquiries, customers will listen to mainly relevant information with regards to their issues and customers will be properly directed to the correct department that are concerned with their current issue
Therefore, the LEAST likely goal of the upgraded system from among the options and therefore the least likely to be provided by the upgrade is the company will be able to provide human representative for any incoming call
Choose the issue that is occurring from the drop-down menu. During the , development teams transform the requirements into a software application design. During the , the software design is implemented by developers in code. In the , software is evaluated for quality. Any issues with the software are logged as to be resolved by developers. Software that is maintained by developers is said to be .
Answer: See explanation
Explanation:
During the, (software design phase), developmentt teams transform the requirements into a software application design.
During the (software development phase), the software design is implemented by developers in code.
In the (software evaluation phase), software is evaluated for quality.
Any issues with the software are logged as (bugs) to be resolved by developers.
Software that is maintained by developers is said to be (supported).
Answer:
1) 2
2) 1
3) 2
4) 2
5) 3
Explanation: just did it
list the importance and impacts of computer in our life . please help me
Answer:
- It has greatly helped our work efficiency
- It makes the work easier and more convenient
- Communication is also made possible through computers
A professional-looking portfolio gives a clear message. What does it convey?
Ο Α. .
that you like to build up a sales pitch
OB. that you like to flaunt your work
OC. that you are serious about your work
OD.
that you put on a show for effect
Ο Ε.
that you only care about appearances
Reset
Next
Answer:a
Explanation:
A professional-looking portfolio gives a clear message that you put on a show for effect. Thus, the correct option is D). that you put on a show for effect.
What is a professional portfolio?Professional portfolio refers to the collection of work and other documents that make clear the abilities of the candidate to the potential employers. It can be created in both digital and physical format.
A portfolio is an collected album of all work samples and professional documentation that provides proof about the accomplishments, skills, potential and samples of an individual's work.
In order to give portfolio a professional look, there are several categories to be consider such as Personal Information, Values, Personal Goals and History, Accomplishments and Job History, Skills and Attributes, Education and Training as well.
Learn more about professional portfolio here:-
https://brainly.com/question/20411709
#SPJ2
Transferring data from a remote computer to a local computer is .....
The answer is uploading
Q.No.2. A study of the effect of smoking on sleep patterns is conducted. The measure observed is the time, in minutes, that it takes to fall asleep. These data are obtained: [3] Smokers:69.3 56.0 22.1 47.6 53.2 48.1 52.7 34.4 60.2 43.8 23.2 13.8 Non Smokers: 28.6 25.1 26.4 34.9 28.8 28.4 38.5 30.2 30.6 31.8 41.6 21.1 36.0 37.9 13.9
Answer:
(a) [tex]\bar x_1 = 43.7[/tex] [tex]\bar x_2 = 30.25[/tex]
(b) [tex]\sigma_1 = 16.93[/tex] [tex]\sigma_2 = 7.14[/tex]
(c) Smoking increases the time to fall asleep
Explanation:
Solving (a): The sample mean of each group
Mean is calculated as:
[tex]\bar x = \frac{\sum x}{n}[/tex]
So, we have:
Smokers
[tex]n_1= 12[/tex] and
[tex]\bar x_1 = \frac{69.3 +56.0+ 22.1 +47.6+ 53.2+ 48.1+ 52.7 +34.4+ 60.2 +43.8 +23.2 +13.8}{12}[/tex]
[tex]\bar x_1 = \frac{524.4}{12}[/tex]
[tex]\bar x_1 = 43.7[/tex]
Non Smokers
[tex]n_2 = 15[/tex] and
[tex]\bar x = \frac{28.6 +25.1 +26.4 +34.9 +28.8 +28.4 +38.5 +30.2 +30.6 +31.8 +41.6 +21.1 +36.0 +37.9 +13.9}{15}[/tex]
[tex]\bar x_2 = \frac{453.8}{15}[/tex]
[tex]\bar x_2 = 30.25[/tex]
Solving (b): The standard deviation of each group
This is calculated as:
[tex]\sigma = \sqrt{\frac{\sum(x - \bar x)^2}{n-1}}[/tex]
For smokers
[tex]n_1= 12[/tex]
So:
[tex]\sigma_1 = \sqrt{\frac{(69.3 -43.7)^2+(56.0-43.7)^2+..........+(13.8-43.7)^2}{12-1}}[/tex]
[tex]\sigma_1 = \sqrt{\frac{3152.04}{11}}[/tex]
[tex]\sigma_1 = \sqrt{286.5491}[/tex]
[tex]\sigma_1 = 16.93[/tex]
For non-smokers
[tex]n_2 = 15[/tex]
So:
[tex]\sigma_2 = \sqrt{\frac{(28.6 -30.25)^2+(25.1 -30.25)^2+..........+(13.9 -30.25)^2}{15-1}}[/tex]
[tex]\sigma_2 = \sqrt{\frac{713.2575}{14}}[/tex]
[tex]\sigma_2 = \sqrt{50.9469}[/tex]
[tex]\sigma_2 = 7.14[/tex]
Solving (c): Impact of smoking on time to sleep
In (b), we have:
[tex]\sigma_1 = 16.93[/tex] --- smokers
[tex]\sigma_2 = 7.14[/tex] --- non-smokers
Smokers have larger standard deviation (i.e. large variability) than non-smokers. This means that smokers require more time to fall asleep.