Answer:
The sum of the temperatures is: 336
Explanation:
2-Dimensional Array:
A two dimensional array is defined as
int temp [3] [3]
This is how a two dimensional array is defined in C++ programming language.
Here we have defined a 2-D array named temp which can store 3*3 = 9 int values
These 9 values are stored in 3 rows and 3 columns as below:
1, 2, 3
4, 5, 6
7, 8, 9
We are given the temperature for the month of April 2017 recorded by the Zambia metro-logical department.
24.0, 17.5, 33.0, 36.5, 36.0, 22.5, 12.5, 44.0, 15.5, 33.0, 41.5, 23.5
The given temperature values are 12 therefore, we would need a matrix of 3 rows and 4 columns ( 4 rows and 3 columns is also valid)
3*4 = 12 values
These 12 values will be arrange as below:
1, 2, 3, 4
5, 6, 7, 8
9, 10, 11, 12
C++ Program:
#include <iostream>
using namespace std;
int main()
{
// initialize the number of rows and columns
int row = 3;
int col = 4;
// initialize variable sum to store the sum of temperature values
int sum = 0;
// initialize 2d array with given temperature values
float temp[row][col] = { {24.0, 17.5, 33.0, 36.5}, {36.0, 22.5, 12.5, 44.0}, {33.0, 41.5, 23.5, 15.5} };
// we need two for loops to keep track of rows and columns
for(int i = 0; i < row; ++i)
{
for(int j = 0; j < col; ++j)
{
// to display individual temperature values
cout<< "temp[" << i << "][" << j << "] = " << temp[i][j] <<endl;
// to sum the elements of the 2d array
sum+=temp[i][j];
}
}
// to display the sum of temperature values
cout<<"The sum of the temperatures is: "<<sum<<endl;
return 0;
}
Output:
temp[0][0] = 24
temp[0][1] = 17.5
temp[0][2] = 33
temp[0][3] = 36.5
temp[1][0] = 36
temp[1][1] = 22.5
temp[1][2] = 12.5
temp[1][3] = 44
temp[2][0] = 33
temp[2][1] = 41.5
temp[2][2] = 23.5
temp[2][3] = 15.5
The sum of the temperatures is: 336
Note:
The index start at 0 not 1 that is why you see rows from 0 to 2 and columns from 0 to 3.
Page orientation is determined in Microsoft Word from the __________ tab
Answer:
Page orientation is determined in Microsoft Word from the Page Layout tab.
Explanation:
The Page Layout Tab holds all the options that allow you to arrange your document pages just the way you want them. You can set margins, apply themes, control of page orientation and size, add sections and line breaks, display line numbers, and set paragraph indentation and lines.
The printf method of the System.out object requires at least _______ parameters, unlike print and println, which only require _____ each
The printf method of the System.out object requires at least one parameter, unlike print and println, which only require zero and one parameters, respectively. The printf method allows you to format output with more control than the other two methods.
When using printf, you can specify the type of output you want to display and format it according to your needs. The first parameter of printf is the format string, which tells the method how to format the output. This string contains placeholders that are replaced with the values you want to display. The placeholders begin with a percent sign (%) followed by a letter that indicates the type of value you are displaying.
After the format string, you can include additional parameters that correspond to the placeholders in the format string. These parameters are separated by commas. The order of the parameters must match the order of the placeholders in the format string.In summary, the printf method of the System.out object requires at least one parameter, which is the format string. The print and println methods only require zero and one parameters, respectively.
To know more about format visit:
https://brainly.com/question/3775758
#SPJ11
Why is John Von Neumann to a remarkable name?
si
Answer:
John von Neumann is remarkable for his vast knowledge of mathematics, and the sciences as well as his ability to correlate the pure and applied sciences.
Explanation:
John von Neumann who was born on December 28 1903, and died on February 8,1957 was known for his extensive knowledge of mathematics, physics, computer, economics, and statistics. In computing, he was known to conceive the idea of the self-replicating machines that thrive in the automata cellular environment, the von Neumann architecture, stochastic computing and linear programming.
He developed the game theory in Economics, and laid the foundation for several mathematical theories. He contributed greatly to quantum mechanics and quantum physics. Little wonder, he was dubbed "the last representative of the great mathematicians."
How comfortable are you relying on others to achieve your performence goals?
Answer:
Tbh I don't like to depend on people to achieve my goals but if I want to depend on someone I first have to know them really well and see if I can trust them so I'm really comfortable with people I know but if it's a a random person so I don't think I will be comfortable
A binary search tree whose left subtree and right subtree differ in height by at most 1 is called AVL tree o 3-arry tree o Heap O Stack O
A binary search tree whose left subtree and right subtree differ in height by at most 1 is called an AVL tree.
An AVL tree is a self-balancing binary search tree where the heights of the left and right subtrees of every node differ by at most one. This property ensures that the tree remains balanced, which guarantees a worst-case time complexity of O(log n) for searching, inserting, and deleting nodes from the tree.A 3-ary tree is a tree where each node has at most 3 children. A heap is a specialized tree-based data structure where the parent node is always greater or smaller than its child nodes. A stack is a linear data structure that operates on a last-in-first-out (LIFO) basis. None of these data structures have the property of self-balancing that AVL trees have.
To learn more about subtree click the link below:
brainly.com/question/28564815
#SPJ11
a pneumatic lockout/tagout uses a _________ to prevent use .
Answer:
Lockable Valve
Explanation:
A pneumatic lockout/tagout typically uses a lockable valve to prevent the use of machinery or equipment.
Write a program (using a function) that takes a positive number with a fractional partand rounds it to two decimal places. For example, 32. 4851 would round to 32. 49, and32. 4431 would round to 32. 44
The program in phyton that yields the above output is
def round_to_two_decimal_places(number):
rounded_number = round(number, 2)
return rounded_number
# Example usage
input_number = 32.4851
rounded_number = round_to_two_decimal_places(input_number)
print(rounded_number) # Output: 32.49
input_number = 32.4431
rounded_number = round_to_two_decimal_places(input_number)
print(rounded_number) # Output: 32.44
How does this work ?In this program,the round_to_two_decimal_places function takes a number as input and uses the round function to round it to two decimal places.
The rounded number is then returned. The function can be called with different input numbers to get the desired rounding result.
Learn more about program at:
https://brainly.com/question/26134656
#SPJ1
var w=20;
var h = 15;
rect (10, 10, w, h);
ellipse (10, 10, w, h);
How tall is each one of the shapes?
The rectangle is 20 units tall and the ellipse is 15 units tall.
How to calculate the height of each of the shapes?The height of the rectangle is defined by the variable 'h' and is set to 15. The height of the ellipse is also defined by the variable 'h' and is set to 15. So the height of each shape is 15 units.
What is ellipse ?An ellipse is a geometrical shape that is defined by the set of all points such that the sum of the distances from two fixed points (the foci) is constant. It can be thought of as an oval or a "squashed" circle. In the context of computer graphics and drawing, an ellipse is often used to represent the shape of an object or an area.
Learn more about ellipse in brainly.com/question/14281133
#SPJ1
Multiple computers configured to be able to communicate and share information with each other form a ____________.
Multiple computers configured to be able to communicate and share information with each other form a network.
In the field of computers, a computer network can be described as a network that contains multiple computers connected to each other so that data or information can be shared among these computers.
Local-area networks, also referred to as LAN and wide-area networks also referred to as WAN are two major forms of forming a computer network.
However, certain communication protocols are set for computer networking in order to keep check of the privacy of data that a user doesn't want to share.
In computer networking, nodes and links are used for making connections among the computers.
To learn more about network, click here:
https://brainly.com/question/1167985
#SPJ4
help plz (will give brainliest)
Answer:
The answer to this question is given below in the explanation section.
Explanation:
This is the python program in the question that is:
def sum(n1,n2):
n=n1+n2
return n
The question is: write a function CALL that displays the return value on the screen.
So, the correct program is written below:
*********************************************************************
def sum(n1,n2):# it is function that define sum
n=n1+n2 # variable n that store the result of n1 and n2
return n # return the result
print(sum(3,5))# call the sum function with parameter 3 and 5 , it will print 8
print(sum(4,101))
# call the sum function with parameter 4 and 101 it will print 105
********************************************************************************
you can also store the sum result into another variable, because this function return the sum. So, you can store that return value into another vairable and using the print function, to print the value of this variable such as:
*****************************************************************************
def sum(n1,n2):# it is function that define sum
n=n1+n2 # variable n that store the result of n1 and n2
return n # return the result
result= sum(6,9) # store the sum result into another variable i.e result
print(result)# print the result variable value
*****************************************************************************
Here is another example that uses do_twice to call a function named print_apple twice. def print_apple() : print('apple') do_twice(print_apple) 1. Type this example into a script and test it. 2. Modify do_twice so that it takes two arguments, a function object and a value, and calls the function twice, passing the value as an argument.
The program is an illustration of a python function.
Python functions are used to group code segments in a block
Test the scriptTo do this, we simply run the following program:
def do_twice(f):
f()
f()
def print_apple() :
print('apple')
do_twice(print_apple)
Modify do_twice()The modification is to allow the function to take two parameters, which are:
Function objectValueThe modified function is as follows:
fruit= raw_input('Input fruit to repeat: ')
def do_twice(f, fruit):
f(fruit)
f(fruit)
def print_apple(fruit) :
print fruit
do_twice(print_apple, fruit)
Read more about python programs at:
https://brainly.com/question/13246781
#SPJ1
Missing part of the question
A function object is a value you can assign to a variable or pass as an argument. For example, do_twice is a function that takes a function object as an argument and calls it twice:
def do_twice(f):
f()
f()
Assignment: Blues Progression
Blues is a sub-genre of jazz that follows some specific guidelines: specifically, the Blues scale and the Blues chord progression.
In this assignment, you’ll write out a 12-bar Blues chord progression. This assignment is a MuseScore assignment. Do not turn in this document for grading.
Directions:
1. Create a new document in MuseScore
a. For the title, write “MuseScore Assignment: Blues”.
b. For the composer, write your name., then click "next".
c. Under "general", choose “Grand Staff”, then click “Next”.
d. Choose G major for your key signature (1 sharp), then click next.
e. Choose “Piano” (in the Keyboards section) for your instrument. (This step may or may not show for you. It's ok either way!)
f. Choose 4/4 for your Time Signature and 12 measures for number of measure.
g. Click “Finish”.
2. In the Bass Clef, write out a 12-bar Blues Chord Progression.
a. Use whole notes for your chords
b. I – I – I – I – IV – IV – I – I – V7 – IV – I – V7
Save your assignment (with your name!) and submit it to the Composition: Blues Progression Dropbox basket. Turn in the MuseScore file only.
Explanation:
I can provide you with the 12-bar Blues chord progression as you requested:
In the key of G major:
I (G) – I (G) – I (G) – I (G)
IV (C) – IV (C) – I (G) – I (G)
V7 (D7) – IV (C) – I (G) – V7 (D7)
The Roman numerals in parentheses represent the chords to play in each measure, and the chord names outside the parentheses indicate the actual chords to play in the key of G major.
an obstacle or barrier that may prevent you from accomplishing your goal is called
Answer:
a roadblock
Explanation:
what did herman hallerith invent ? what is the use of this machine
Answer:
tabulating machinetabulating machineThe tabulating machine was an electromechanical
machine designed to assist in summarizing information stored on punched cards. Invented by Herman Hollerith, the machine was developed to help process data for the 1890 U.S. Census.
Answer:
Herman hallerith invented a Punch Card Machine System.
Explanation:
It revolutionized statiscal computation.
There is___fatality rate among vulnerable road users.
A. a lower
B. an equal
c. a greater
1. Word Module 2 SAM Textbook Project
2. Word Module 2 SAM Training
3. Word Module 2 SAM End of Module Project 1
4. Word Module 2 SAM End of Module Project 2
5. Word Module 2 SAM Project A
6. Word Module 2 SAM Project B
The raise To Power Module of the program's calling error can be found in the real and integer values of the argument variables.
String should be spelled Sting. The set Double Module instead of returning an integer, does such. Access to local variables declared in the Main module is restricted to that module only. The raise To Power Module of the program's calling argument variables' real and integer values can be used to pinpoint the issue. Although the arguments for the raise To Power Module (Real value and Integer power) have been defined. The integer power is represented as "1.5," and the real value is supplied as "2." A real number, on the other hand, is a number with a fractional part. thus, a number without a fraction is considered an integer. 1.5 is a real number, whereas 2 is an integer. The parameters' contents when invoking raise To Power.
Learn more about The raise To Power Module here:
https://brainly.com/question/14866595
#SPJ4
The three standard classes of devices supported by linux are ____
Linux is a free and open-source operating system that is very flexible and customizable. Linux has a diverse range of hardware support, making it suitable for use in everything from smartphones to servers.
The three standard classes of devices supported by Linux are as follows: Block devices: These devices are capable of reading and writing data in block-sized chunks, such as hard disk drives, solid-state drives, and CD-ROM drives. Character devices: These devices are capable of transmitting or receiving individual characters of data, such as keyboards, mice, and printers.
Network devices: These devices are capable of transmitting or receiving data packets over a network, such as Ethernet and Wi-Fi adapters. Linux also supports other types of devices, such as multimedia devices, storage area network devices, and USB devices.
To know more about transmitting visit:
https://brainly.com/question/14702323
#SPJ11
write java statements to accomplish each of the following tasks: display the value of element 6 of array f. initialize each of the five elements of one-dimensional integer array g to 8. total the 100 elements of floating-point array c. copy 11-element array a into the first portion of array b, which contains 34 elements. determine and display the smallest and largest values contained in 99-element floating-point array w.
Display element 6 of array f, Initialize each element of array g to 8. Total the elements of array c. Copy array a to the start of array b. Find and display the smallest and largest values in array w.
Here are Java statements that accomplish each of the tasks:
System.out.println(f[6]);
int[] g = new int[5];
Arrays.fill(g, 8);
double total = 0.0;
for (int i = 0; i < c.length; i++) {
total += c[i];
}
System.out.println("Total: " + total);
int[] b = new int[34];
System.arraycopy(a, 0, b, 0, 11);
double smallest = w[0];
double largest = w[0];
for (int i = 1; i < w.length; i++) {
if (w[i] < smallest) {
smallest = w[i];
} else if (w[i] > largest) {
largest = w[i];
}
}
System.out.println("Smallest value: " + smallest);
System.out.println("Largest value: " + largest);
Learn more about Java here:
https://brainly.com/question/29897053
#SPJ11
What is the HTML code symbol to the !nstagram Facts Part 2?
FIRST ONE GETS BRAINEST!!
¶^↑↓→← html code symbol
What is the role of the connection medium?
wth does that mean?!
how many types of computer processing are there
Answer:
There are 3 types.
Explanation:
Automatic/manual, batch, and real-time data processing
List and describe in detail any four power management tools that were developed by atleast two manufacturers to prevent and/or reduce the damage of processors from theprocess of overclocking
Some power management tools to reduce damage to processors by the overclocking process are:
CPU TwakerMSI AfterburnerIntel Extreme Tuning UtilityAMD Ryzen MasterWhat is overclocking?It is a technique that allows you to increase the power and performance of various computer hardware. That is, this process increases the energy of the components and forces the pc to run at a higher frequency than determined by the manufacturer.
Therefore, there are several power management models and manufacturers to reduce and prevent physical damage to pc components.
Find out more about overclocking here:
https://brainly.com/question/15593241
a lean-systems method of asking questions about a process is the __________ approach.
A lean-systems method of asking questions about a process is the 5W2H approach.
What is the 5W2H approach?The 5W2H technique is deceptively easy that deals with the various questions of Why, what, how, where, when, and how much. When analyzing a process or problem, 5W2H is a tool that gives leading questions.
The five W's (who, what, when, where, and why) and two H's (how and how much) compel to explore numerous aspects of the scenario under consideration. Ask the correct questions in the proper order, and allow the answers guide to an excellent problem statement.
Therefore, it is 5W2H approach.
Learn more about the lean-systems, refer to:
https://brainly.com/question/29241890
#SPJ51
I will give brainliest!!!
When you have a kWh reading you get a number. But look at the example below
67, 659 kWh
67,659 kWh
In the first one there is a space after the comma
Which is right?
Answer:
The second one is correct you don't put a space after the comma.
Explanation:
How t f did i get this wrong
Answer: #3 is 3/4, just subtraction I believe, and for #4, triangles aren't my strong pint, but I think 2.625. Again, you may need to double check
To open something, using a key or an electronic device/ to use a password in order to use a mobile phone
Answer:
yes that is true
Explanation:
true or false
trueeeee
T/F: though the types of technology used by businesses have changed over the last several decades, the role of business technology has remained remarkably constant.
The statement presented is "Though the types of technology used by businesses have changed over the last several decades, the role of business technology has remained remarkably constant." We are asked to determine whether this statement is true (T) or false (F).
Over the last several decades, technology has evolved significantly, bringing about changes in the way businesses operate. While the types of technology have changed, the core role of business technology has remained consistent. This role is to improve efficiency, increase productivity, reduce costs, and enhance communication within the organization.
However, it's important to note that the impact of technology has expanded over time, with businesses adopting new technologies for various purposes, such as data analysis, artificial intelligence, and automation. As a result, the overall influence of technology on businesses has grown, but the primary role remains consistent.
Based on the explanation provided, the statement is true (T). Although the types of technology used by businesses have evolved over the years, the fundamental role of business technology in improving efficiency, increasing productivity, and reducing costs has remained constant.
To learn more about technology, visit:
https://brainly.com/question/13044551
#SPJ11
Could someone please tell me what I did wrong here? Thank you!!I’ll give Brainliest
Consider the following code segment. A 9-line code segment reads as follows. Line 1: list, open angular bracket, string, close angular bracket, animals equals new array list, open angular bracket, string, close angular bracket, open parenthesis, close parenthesis, semicolon. Line 2: blank. Line 3: animals, dot, add, open parenthesis, open double quote, dog, close double quote, close parenthesis, semicolon. Line 4: animals, dot, add, open parenthesis, open double quote, cat, close double quote, close parenthesis, semicolon. Line 5: animals, dot, add, open parenthesis, open double quote, snake, close double quote, close parenthesis, semicolon. Line 6: animals, dot, set, open parenthesis, 2 comma, space, open double quote, lizard, close double quote, close parenthesis, semicolon. Line 7: animals, dot, add, open parenthesis, 1 comma, space, open double quote, fish, close double quote, close parenthesis, semicolon. Line 8: animals, dot, remove, open parenthesis, 3, close parenthesis, semicolon. Line 9: system, dot, out, dot, print l n, open parenthesis, animals, close parenthesis, semicolon. What is printed as a result of executing the code segment?
The given code snippet initializes an ArrayList named "animals" which is intended to keep a record of strings. The add() method is utilized to append the terms "dog", "cat", "snake", and "fish" to the existing list.
What does the program do?Afterwards, the program utilizes the set() function to substitute the item placed in the second index with the term "lizard," thus resulting in a modification from "snake" to "lizard."
Subsequently, the program implements the add() function once more to incorporate the word "fish" at position 1, resulting in the displacement of elements succeeding said index to the right.
Next, the remove() function is employed to eliminate the item at position 3, which is denoted by "fish".
Ultimately, the println() method is utilized to print out the contents of the "animals" list, which then manifests as the following output: [dog, cat, lizard, fish].
Read more about programs here:
https://brainly.com/question/26134656
#SPJ1
Edhisive 4.9 lesson practice what variable is used to track the amount of loops that have been executed
Your question does not make clear which programming language you are interested in learning about, and the solution to a query about keeping track of loop iterations varies depending on the programming language and type of loop being used.
Define for loops.
A for-loop or for-loop in computer science is a control flow statement that specifies iteration. A for loop works specifically by constantly running a portion of code up until a predetermined condition is met. A header and a body are the two components of a for-loop.
A "For" Loop is employed to repeatedly run a given block of code a certain number of times. We loop from 1 to that number, for instance, if we wish to verify the grades of each student in the class. We utilize a "While" loop when the number of repetitions is unknown in advance.
To learn more about for-loop, use the link given
https://brainly.com/question/19706610
#SPJ1