Answer:
The java program is as follows.
import java.lang.*;
import java.util.Scanner;
public class Main
{
//array declaration
static int weekdays=7;
static int[] snowfall_inch = new int[weekdays];
static String[] snowfall_date = new String[weekdays];
//variables to store average and maximum
static double avg;
static int max;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter the month: ");
String month = sc.next();
for(int n=0; n<weekdays; n++)
{
System.out.print("\nEnter the date for day "+(n+1)+ ": ");
snowfall_date[n] = sc.next();
System.out.print("Enter the inches of snowfall for day "+(n+1) +": ");
snowfall_inch[n] = sc.nextInt();
avg = avg + snowfall_inch[n];
}
avg = avg/weekdays;
System.out.printf("The average snowfall for the week is %.4f",avg);
for(int n=0; n<weekdays-1; n++)
{
if(snowfall_inch[n] < snowfall_inch[n+1])
max=snowfall_inch[n+1];
}
System.out.println("\nThe maximum snowfall for the week is "+max);
}
}
OUTPUT
Enter the date for day 2: 12-2-2019
Enter the inches of snowfall for day 2: 23
Enter the date for day 3: 12-3-2019
Enter the inches of snowfall for day 3: 13
Enter the date for day 4: 12-4-2019
Enter the inches of snowfall for day 4: 14
Enter the date for day 5: 12-5-2019
Enter the inches of snowfall for day 5: 34
Enter the date for day 6: 12-6-2019
Enter the inches of snowfall for day 6: 34
Enter the date for day 7: 12-7-2019
Enter the inches of snowfall for day 7: 22
The average snowfall for the week is 21.7143
The maximum snowfall for the week is 34
Explanation:
1. Two arrays are declared to store dates and snowfall inches with string and integer datatypes respectively.
2. Variables are declared to store maximum and average snowfall values with integer and double datatypes respectively.
3. User input is taken for the month, and the dates and snowfall inch values for a week. The input is taken in for loop.
4. Next, for loop is used to find the average and maximum snowfall of the week.
5. These values are displayed to the user as shown in the output.
How do Agile and DevOps interrelate?
Answer:
DevOps is a practice of bringing development and operations teams together whereas Agile is an iterative approach that focuses on collaboration, customer feedback and small rapid releases.
Assume in the for loop header, the range function has the three arguments: range (1, 10, 3), if you were to print out the value of the variable
in the for loop header, what will be printed out? List the values and separate them with a comma.
Answer:
1, 4, 7
Explanation:
The instruction in the question can be represented as:
for i in range(1,10,3):
print i
What the above code does is that:
It starts printing the value of i from 1
Increment by 3
Then stop printing at 9 (i.e.. 10 - 1)
So: The sequence is as follows
Print 1
Add 3, to give 4
Print 4
Add 3, to give 7
Print 7
Add 3, to give 10 (10 > 10 - 1).
So, it stops execution.
a school has following rules for grading system: a. below 25 - f b. 25 to 45 - e c. 46 to 50 - d d. 51 to 60 - c e. 61 to 80 - b f. above 80 - a which of the following is an correct implementation if only whole numbers (integers) are allowed?
score = input("Enter your score")
score = int(score)
if score < 25:
print("F")
elif score >= 25 and score < 45:
print("E")
elif score >= 45 and score < 50:
print("D")
elif score >= 50 and score < 60:
print("C")
elif score >= 60 and score < 80:
print("B")
else:
print("A")
In order to create a hard copy (printed copy) of the electronic data being printed, a computer transfers data to a computer printer. For instance, you may write your resume in a word processor, print copies of it, and mail them to various employers.
Here you can learn more about print in the link brainly.com/question/27646993
#SPJ4
Source data automation involves automating data entry where it onginates to reduce input errors.
False
True
True, source data automation (SDA) automates the procedure for gathering and entering data at the location where it is generated, such as at a point of sale (POS) system, a barcode scanner, or a sensor.
Source data automation: what is it?the method of gathering digital data at its source. By gathering data in digital form at the beginning, it reduces the amount of duplication effort, delay, unnecessary processing, and chance for error.
What are the two benefits of input devices for source data automation?The elimination of manual inputs reduces the amount of time each consumer spends at the checkout counter, which is another benefit of source data automation.
To know more about digital data visit:-
https://brainly.com/question/28421480
#SPJ1
Pete is late to work when he gets to a train crossing. He sees a train coming, but there are no barriers. Should he drive on ?
Tristan has moved the Television and related equipment
row. Next, he needs to delete the blank row.
Use
Space cooling
Water heating
Use the drop-down menus to identify the steps involved
in deleting the blank row in this scenario.
Step 1:
Step 2:
Percentage
17.5
9.5
Step 3:
Step 4: Click the Delete Row option.
9.2
9.1
Lighting
Space heating
Refrigerators and
freezers
Television and
related equipment
All other uses
8.8
5.9
40.0
Answer:
1: C
2: B
3: A
Explanation:
How does one take personal responsibility when choosing healthy eating options? Select three options.
1 create a log of what one eats each day
2 increase one’s consumption of fast food
3 critique one’s diet for overall balance of key nutrients
4 identify personal barriers that prevent an individual from making poor food choices
5 eat only what is shown on television advertisements
The three options to a healthier eating culture are:
create a log of what one eats each daycritique one’s diet for overall balance of key nutrientsidentify personal barriers that prevent an individual from making poor food choicesHow can this help?Create a log of what one eats each day: By keeping track of what you eat, you become more aware of your eating habits and can identify areas where you may need to make changes. This can also help you to monitor your intake of certain nutrients, and ensure that you are getting enough of what your body needs.
Critique one’s diet for overall balance of key nutrients: A balanced diet should include a variety of foods from different food groups. By assessing your diet, you can determine whether you are consuming enough fruits, vegetables, whole grains, lean proteins, and healthy fats. If you find that you are lacking in any of these areas, you can adjust your eating habits accordingly.
Read more about healthy eating here:
https://brainly.com/question/30288452
#SPJ1
Solve recurrence relation x (n) = x(n/3) +1 for n >1,x(1) =1. (Solve for n = 3k)
To solve this recurrence relation, we can use the iterative method known as substitution method. First, we make a guess for the solution and then prove it by mathematical induction.
Let's guess that x(n) = log base 3 of n. We can verify this guess by induction:
Base Case: x(1) = log base 3 of 1 = 0 + 1 = 1. So, the guess holds for n = 1.
Induction Hypothesis: Assume that x(k) = log base 3 of k holds for all k < n.
Induction Step: We need to show that x(n) = log base 3 of n holds as well. We have:
x(n) = x(n/3) + 1
= log base 3 of (n/3) + 1 (by induction hypothesis)
= log base 3 of n - log base 3 of 3 + 1
= log base 3 of n
So, x(n) = log base 3 of n holds for all n that are powers of 3.
Therefore, the solution to the recurrence relation x(n) = x(n/3) + 1 for n > 1, x(1) = 1, is x(n) = log base 3 of n for n = 3^k.
What type of 3-phase connection requires only two transformers?
The use of two single-phase transformers to step down a high 3-phase voltage to a lower 3-phase voltage is possible using a rudimentary configuration dubbed an "open delta."
What is a single-phase transformer?For industrial applications, three phase transformers perform significantly better. Most heating, air conditioning, lighting, and house applications employ single phase systems in residential settings. When compared to low-power industrial systems and machines, they are less productive. A specific type of transformer called a single phase transformer functions using only one phase of power. This device carries electrical power from one circuit to another by the mechanism of electromagnetic induction. It is a passive electrical device. A transformer cannot change single-phase electricity into three-phase power, even if single-phase power can be produced from a three-phase power source. Phase converters or variable frequency drives are needed to convert single-phase electricity to three-phase power.To learn more about single phase transformers, refer to:
https://brainly.com/question/29665451
Which part of the Result block should you evaluate to determine the needs met rating for that result
To know the "Needs Met" rating for a specific result in the Result block, you should evaluate the metadata section of that result.
What is the Result blockThe assessment of the metadata section is necessary to determine the rating of "Needs Met" for a particular outcome listed in the Result block.
The metadata includes a field called needs_met, which evaluates the level of satisfaction with the result in terms of meeting the user's requirements. The needs_met category usually has a score between zero and ten, with ten implying that the outcome entirely fulfills the user's demands.
Learn more about Result block from
https://brainly.com/question/14510310
#SPJ1
What is the best reason a student should cite an online source for a school report?
It demonstrates the credibility of the online source.
It shows the student wants to get a good grade.
It shows the student was interested in the topic.
It demonstrates the length of time it took to write the report.
Answer:
A
Explanation: B and C are easy to cross off, as they aren't related strictly to citing your sources. D doesn't make sense because anything can be cited in any amount of time. The answer is A.
Answer:
it demonstrates the credibility of the online source for a school report
Explanation:
Question #4
Multiple Select
Which of the following statements are true regarding abstraction? Select 3 options.
O Creating a model must occur before abstraction.
O Refinement is the opposite of abstraction.
O Abstraction provides a way to see a complex situation more clearly.
O The level of abstraction needed depends on the situation and your goals.
O Abstraction is a process where details are added to further define the problem.
Answer:
B: the level of abstraction needed depends on the situation and your goals
C: refinement is the oppostie of abstraction
E: abstraction provides a way to see a complex situtation more clearly
Explanation:
I just completed the assignemnet and was checking it while I made this answer.
Which two disciplines should you study if you are considering a career in robotics 
The use of robotics is a “multi-purpose” (i.e., combining computer engineering with mechanical engineering and electrical engineering).
If one wants to work as a robotics software engineer, he needs to have a bachelor’s degree in Computer Science. If a person is interested in designing robotic parts, he needs a degree in Mechanical Engineering or Electrical Engineering.
Since its beginning, robotics has always been a multidisciplinary discipline, combining engineering, cognitive sciences, computer science, and, in recent years, social science and humanities.
To learn more about engineering, refer to the link:
https://brainly.com/question/31140236
#SPJ1
Which of the following statements are true about how technology has changed work? Select 3 options. Responses Businesses can be more profitable by using communication technology to reduce the costs of travel. Businesses can be more profitable by using communication technology to reduce the costs of travel. With the spread of technology and the Internet, smaller businesses are not able to compete as effectively as before. With the spread of technology and the Internet, smaller businesses are not able to compete as effectively as before. In a gig economy, workers are only hired when they are needed for as long as they are needed. In a gig economy, workers are only hired when they are needed for as long as they are needed. Through the use of the Internet and collaboration tools more workers are able to perform their jobs remotely. Through the use of the Internet and collaboration tools more workers are able to perform their jobs remotely. Technology has not really changed how businesses operate in the last fifty years. Technology has not really changed how businesses operate in the last fifty years.
The three genuine statements almost how technology has changed work are:
Businesses can be more productive by utilizing communication technology to decrease the costs of travel. This can be genuine since advances like video conferencing and virtual gatherings permit businesses to conduct gatherings, transactions, and collaborations remotely, lessening the require for costly travel courses of action.With the spread of technology and the Web, littler businesses are not able to compete as successfully as some time recently. This explanation is genuine since innovation has empowered bigger companies to use their assets and reach a worldwide advertise more effortlessly, making it challenging for littler businesses to compete on the same scale.Through the utilize of the Web and collaboration devices, more laborers are able to perform their occupations remotely. This explanation is genuine as innovation has encouraged farther work courses of action, allowing employees to work from anyplace with an online association. Collaboration instruments like extend administration computer program and communication stages have made inaccessible work more doable and effective.Technology explained.
Technology alludes to the application of logical information, aptitudes, and devices to form innovations, fathom issues, and move forward proficiency in different spaces of human movement. It includes the improvement, usage, and utilize of gadgets, frameworks, and processes that are outlined to achieve particular assignments or fulfill specific needs.
Technology can be broadly categorized into distinctive sorts, such as data technology, communication technology, therapeutic innovation, mechanical technology, and transportation technology, among others. These categories include different areas, counting computer science, hardware, broadcast communications, building, and biotechnology.
Learn more about technology below.
https://brainly.com/question/13044551
#SPJ1
Select the range a15:a44. replace all instances of the text apparel at one time
If you want to replace all instances of the text apparel at one time, you would require to change the orientation of the text in the cell followed by applying the condition at the desired cells.
How would you replace all instances of a word in excel?You would definitely replace all instances of a word in excel through the utilization of the following steps:
Press Ctrl+H or go to Home > Find & Select > Replace.In Find what, type the text or numbers you want to find.You can further refine your search. In the Replace with box, enter the text or numbers you want to use to replace the search text.Select Replace or Replace All.Text can be replaced and edited in an Excel worksheet using the Formula bar, double-clicking the cell, or simply typing on the selected cell. One way to edit the text in a cell is to double-click the cell and replace or edit the text.
To learn more about Replace an instance, refer to the link:
https://brainly.com/question/9646036
#SPJ1
A group of related classes is called a?
package. collection. attachment. archive.
A(n) package is the name for a collection of linked classes. A class field that depends on the values of other class fields should not be defined. To prevent having outdated info. Thus, option A is correct.
What package is a group of related classes?A group of related classes and interfaces are grouped under the namespace of a package. It is possible to think about packages as being similar to different computer directories.
A group of package parts is referred to as a package group. Package groups let you specify frequently connected elements as a single entity that you may associate with a rate code or a reservation.
A Bed and Breakfast package, which includes a room and breakfast service for a predetermined price, can serve as an illustration.
Therefore, make sure that just one class out of any multiple classes you define in a single Java file is public.
Learn more about package here:
https://brainly.com/question/15180292
#SPJ2
public class Dog
{
/* code not shown */
}
public class Dachshund extends Dog
{
/* code not shown */
}
Assuming that each class has a default constructor, which of the following are valid
declarations?
I. Dog sadie = new Dachshund();
II. Dachshund aldo = new Dachshund();
III. Dachshund doug = new Dog();
Answer:
dog=1/3=1/4
Explanation:
You are about to deploy a new server that will contain sensitive data about your clients. You want to test the server to look for problems that might allow an attacker to gain unauthorized access to the server. This testing should not attempt to exploit weaknesses, only report them. What type of test should you perform?
Answer:
Vulnerability Scan
Explanation:
What is the relationship between an object and class in an OOP program?
The object contains classes.
The object and class are the same thing.
The object is used to create a class.
The object in a program is called a class.
Answer:
D. The object in a program is called a class.
Explanation:
Java is a object oriented and class-based programming language. It was developed by Sun Microsystems on the 23rd of May, 1995. Java was designed by a software engineer called James Gosling and it is originally owned by Oracle.
In object-oriented programming (OOP) language, an object class represents the superclass of every other classes when using a programming language such as Java. The superclass is more or less like a general class in an inheritance hierarchy. Thus, a subclass can inherit the variables or methods of the superclass.
Basically, all instance variables that have been used or declared in any superclass would be present in its subclass object.
Hence, the relationship between an object and class in an OOP program is that the object in a program is called a class.
For example, if you declare a class named dog, the objects would include barking, color, size, breed, age, etc. because they are an instance of a class and as such would execute a method defined in the class.
which behavior would best describe someone who has good communication skills with customers?
A. Interrupting customer frequently,
B. Talking to customers more than listening
C. Following up with some customers
D. Repeating back what customer say
Answer:
2
Explanation:
hope this helps you! :)
The answers B which is Talking to customers more than listening!
PLS MARK AS BRAINLIEST
Why is it difficult to convince top management to commit funds to develop and implement a Strategic Information System
Answer:
It is difficult to convince top management to commit funds to develop and implement an SIS because it can lead to reengineering, which requires businesses to revamp processes to undergo organizational change to gain an advantage.
Explanation:
import sys
sys.argv([0])
sentence = str(sys.argv([1])
def longest_word(sentence):
longest_word = max(sentence, key=len)
return longest_word
print("Longest word is: ", sentence)
I keep getting an error where it states
def longest_word(sentence):
^
SyntaxError: invalid syntax
Please help me where I went wrong.
The error in your code is that you are missing the : at the end of the if statement
The corrected code:def find_longest_word(word_list):
longest_word = ''
longest_size = 0
for word in word_list:
if (len(word) > longest_size):
longest_word = word
longest_size = len(word)
return longest_word
words = input('Please enter a few words')
word_list = words.split()
find_longest_word(word_list)
Read more about python programming here:
https://brainly.com/question/26497128
#SPJ1
When a computer or digital device is used as a storage device or in the facilitation of an offense, it is argued to be ____ to the offense. incidental evidentiary unrelated tertiary
Answer:
Incidental.
Explanation:
When a computer or digital device is used as a storage device or in the facilitation of an offense, it is argued to be incidental to the offense.
For instance, the list of customers used by human traffickers is considered to be generated through an incidental system.
Which of the following options allow you to access a computer remotely?
a. NTP
b. SSH
c. Server
d. VPN
Answer:
b. SSH
Explanation:
Secure Shell (SSH) is a protocol that allows you to access a computer remotely by providing safe network communications via an unsecured network.
Secure Shell (SSH) protocol can be used to perform essential functions such as protected file transfers, remote access to private network systems, devices, and applications.
Thus, option "B" is the right answer.
Write C programs that output the following patterns exactly. Use loops to implement the repetitive part of the code. No functions or arrays are allowed?
Answer:
your a legend you can do it just pleave
Explanation:
:)
3. Think of a 2D game you enjoyed recently. Did it use vector graphics or bitmap graphics? How do you think the developers made their decision between which style to use—beyond the consideration of scalability?
4. One way to analyze software is to look at its functionality (whether the features work and give you the expected outcome) and its usability (whether it is easy to understand and use). Analyze one (or more) of the software programs discussed in the unit (i.e., GIMP) according to its functionality and usability.
5. The unit described how the game Assassin’s Creed uses rich landscapes based on real-world locations like Rome in Renaissance Italy or Jerusalem during the Crusades. While the benefits include creating a highly immersive game experience, what are some of the potential drawbacks to creating game environments based on the real-world
It used vector graphics, and the making was excellent.
A CPU scheduler that assigns higher priority to the I/O-bound processes than the CPU-bound processes causes:
Answer:
Low CPU utilization and high I/O utilization
Explanation:
mention three types of pipeline hazards
Answer:
Structural Hazards.
Data Hazards.
Control Hazards.
Explanation:
Answer:
Structural Hazards, Data Hazards, Control Hazards
Explanation:
A customer calls in and is very upset with recent service she received. You are trying to calm the customer down to come to a resolution but you are not sure how to best do so
It's crucial to maintain your composure and show empathy while interacting with a frustrated customer. Actively listen to their worries and express your regret for any hardship you may have caused.
Can you describe a moment where you dealt with an angry or upset customer in the past?You can use the STAR approach to share a tale about a time when you had to face an irate client in person. Situation: "A client arrived at my former employment screaming and cursing the workers. She was lamenting because she didn't have her receipt when she tried to return an item.
What are the 5 C's of complaint?The 5Cs approach of formal presentation, where the Cs stand for Principal complaint, Course of sickness.
To know more about customer visit:-
https://brainly.com/question/13472502
#SPJ1
Help picture for 25 points
Divide one number by the other, then multiply the result by 100 to get the percentage of the two numbers.
Explain about the Percentage?Holding down Shift while pressing the 5 key at the top of the keyboard will produce a percent symbol on a U.S. keyboard. You can also construct a percent by using the Alt code Alt +37.
To open the Format Cells dialogue box, click the icon next to Number in the Number group on the Home tab. Click Percentage in the Category list of the Format Cells dialogue box. Enter the number of decimal places you want to display in the Decimal places box.
The percent sign is found on the numeral 5 key, which is placed above the R and T on a US keyboard layout. Press the 5 key while holding down the Shift key to insert%.
To learn more about Percentage refer to:
https://brainly.com/question/24877689
#SPJ1