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
Step2247 [10]
3 years ago
11

Edhesive 3.4 question 2

Computers and Technology
2 answers:
Ivanshal [37]3 years ago
7 0
Where is the question
Shalnov [3]3 years ago
7 0

Answer:

numerator = float(input("Enter a numerator: "))

denominator = float(input("Enter a demoninator: "))

if (denominator != 0):

   print(numerator / denominator)

else:

   print ("Error - cannot divide by zero.")

Explanation:

"numerator" is the variable for the numerator, same applies to the "denominator".

The if command states that if the denominator is not zero, it will divide the numerator by the denominator. The if command will divide with any denominator but 0.

The else command comes in when you input a 0 as a denominator, hence printing "Error - cannot divide by a zero."

You might be interested in
In tableData the column variable of the first column should be RowerNames, the second RowingEvent, the third RowerWeight and the
maxonik [38]

Answer:

Required MatLab code is given below:

Explanation:

function tableData=CreateTable(Names, Event, Weight)

% Matlab function to create a table from the given input arrays

% Inputs:

% Names will be n x 1 string array,

% Event will be n x 1 string array,

% Weight will be n x 1 double column array.

% Outputs:

% tableData : where column variables are : RowerNames, RowingEvent,

% RowerWeight and WeightCategories

WeightCategories = ""; % create an empty WeightCategories array

% loop over the Weight column array, populate the WeightCategories

% based on Weight

for i=1:length(Weight)

if(Weight(i) >= 100 && Weight(i) < 150)

WeightCategories(i) = "light weight";

elseif(Weight(i) >= 150 && Weight(i) < 200)

WeightCategories(i) = "medium weight";

else

WeightCategories(i) = "heavy weight";

end

end

% create the table with arrays Names, Events, Weight and

% WeightCategories by taking transpose of WeightCategories as WeightCategories is a row array

tableData = table(Names,Event,Weight,WeightCategories','VariableNames',{'RowerNames','RowingEvent','RowerWeight','WeightCategories'});

end

%end of function

8 0
4 years ago
What will be the output of “AAAAMMMMMHHHVV” using a file compression technique?
jeka94

Answer:

it would be amhv i think i hope it answered u'er question

Explanation:

8 0
4 years ago
How the (i)?? Help me to slove this
cupoosta [38]

Answer:

#include <fstream>

 ifstream inFile("bookBorrower.txt");

 ofstream outFiles ("overPayment.txt");

Explanation:

fstream has ifstream and ofstream for input and output, respectively.

4 0
2 years ago
Estan clasificadas como piezas alargadas y dentada<br>​
hodyreva [135]

Answer:

Estan clasificadas como piezas alargadas y dentada

when you turn the setence above me to english it means

They are classified as elongated and toothed pieces

Explanation:

7 0
3 years ago
The bindery process of cutting irregular shapes and patterns in press sheets is called what?
konstantin123 [22]
B. Die cutting. Typically a metal die with various shapes and patterns is rolled over paper, cardboard, etc to punch out.
3 0
4 years ago
Other questions:
  • A foreign country attempting to access government networks in order to disable a national power grid would be an example of: Sel
    7·2 answers
  • We have two processors. They are named PL and PS. PL has a large number of registers, and PS has a small number of registers. Th
    7·1 answer
  • 9.2 code practice edhesive
    14·1 answer
  • In which type of class methods is it typically necessary to filter bad arguments (either directly or indirectly with the help of
    13·1 answer
  • Unlike radio frequency identification (RFID) tags, bar codes: Question 30 options: require a reader that tunes into a specific f
    14·1 answer
  • 2.3 pseudocode exercise on edhesive
    9·1 answer
  • Use the drop-down menus to match each description to its corresponding term.
    7·1 answer
  • A__ is a part of a GUI that allows a specific type of interaction with the user.
    14·1 answer
  • Data will zip through a 5G network much faster than through a 4G network because of the 10-fold difference in _____.
    7·1 answer
  • 3. It is important to make certain that your employees are aware of the work ethic
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!