1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
PSYCHO15rus [73]
4 years ago
12

The specific gravity of gold is 19.3. Write a MATLAB program that will ask the user to input the mass of a cube of solid gold in

units of kilograms and display the length of a single side of the cube in units of inches. The output should display a sentence like the following one, with the length formatted to two decimal places.
Computers and Technology
1 answer:
s344n2d4d5 [400]4 years ago
7 0

Answer:

Check the explanation

Explanation:

<em>Cube.m:</em>

mass = input("Enter the mass of cube [kilograms]: ");

if(mass<=0)

disp("Error: Mass must be greater than zero grams")

else

fprintf("The length of one side of cube is %.2f inches",2.7*mass);

end

<em>Output1</em>

octave:2> source ( Cube.m Enter the mass of cube [kilograms]: octave:2>-3 Error: Mass must be greater than zero grams

<em />

You might be interested in
The ____ causes the network to settle into a stable state where it can correctly respond, to any desired degree of accuracy, to
Tema [17]

Answer:

The back propagation algorithm causes the network to settle into a stable state where it can correctly respond, to any desired degree of accuracy, to all inputs in the training set.

Explanation:

Back propagation algorithm is a part of the learning of a neural network. In a simple neural network setting at each iteration;

  • The network<em> </em>assumes <em>random weights</em>  at each network layer and passes the value to the next trough an <em>activation function</em>.
  • Then a loss function is calculated by comparing the distace of the final value with the label value using a predetermined distance metric.
  • The weights are optimized trough back propagation

Thus, back propagation algorithm used to reach the final weights of the neural network, so that it can work more accurately.

3 0
4 years ago
Write a function similar to keep_ints like before, but now it takes in a number n and returns a function that has one parameter
lukranit [14]

Answer:

def make_keeper(n):

   """Returns a function which takes one parameter cond and prints

   out all integers 1..i..n where calling cond(i) returns True.

   >>> def is_even(x):

       # Even numbers have remainder 0 when divided by 2.

       return x % 2 == 0

   >>> make_keeper(5)(is_even)

   2

   4

   """

   def fun(cond):

       for i in range(1,n):

           if(cond(i)):

               print(i)

   return fun

Explanation:

  • Define a function called fun that takes cond as input.
  • loop from 1 to n and display the value if it meets the requirement.
5 0
4 years ago
Computerized simulations are run repeatedly on tropical storm and hurricane data. As a storm approaches land, these models predi
JulsSmile [24]

Answer:

c

Explanation:

Multiple sources that the forecaster or his crew has to put together to find out the stats of the storm.

4 0
3 years ago
What are the best ways for a speaker to appeal to an audience and why
velikii [3]

emotion, logic, and character because you want the audience to be interested into hat your saying/reading

hope this helped :) pls give branliest

8 0
3 years ago
___________ is the use of value to create the illusion of depth.
Darya [45]
<span>Question 1) a) Shadowing is the use of value to create the illusion of depth. Sfumato is a softening technique, Foreshortening is a technique used to represent spacial presence, and Modeling involves creating actual depth rather than simply the illusion of it. Question 2) a) Negative space is particularly important and highly utilized in creating paintings. Whilst negative space can be used to the artist's advantage in any artistic technique, it is within paintings that a particularly masterful approach to negative space is required. Question 3) d) The way people view and understand an object or subjects depends primarily on perception. </span>
3 0
4 years ago
Read 2 more answers
Other questions:
  • Computer viruses often spread by means of what?
    12·2 answers
  • 1. Which of these is NOT true about Torsion Bars? A. They can be used to adjust Ride Height B. They can be adjusted anytime sinc
    7·1 answer
  • What are sums of money that are given out for specific reasons?
    5·2 answers
  • Sally needs to teach her class how to convert a decimal number to a binary number. What is the first step she should take to sta
    5·1 answer
  • Problem: you need to write a code that read 2 array of size 10x10 of zero and ones that represent black
    8·1 answer
  • What is the output of the following code? stackList stack; int x, y; x = 2; y = 3; stack.push(8); stack.push(x); stack.push(x +
    6·1 answer
  • Which of the following tasks will save a file over top of itself, using the same filename? A. Reload B. Save C. Save As D. Expor
    13·1 answer
  • PLEASE HELP!!!!!! ASAP
    6·2 answers
  • 20.
    8·1 answer
  • What are types of operators in Python
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!