Question

1. Write an Input Process Output (IPO) to compute and display the temperature in Celsius and...

1. Write an Input Process Output (IPO) to compute and display the temperature in Celsius and temperature in Kelvin. The relevant formulas are:
Celsius = 10 x (depth) + 20

Kelvin = Celsius + 273.15

2.Write an Input Process Output (IPO) for the Pythagorean theorem:
c^2 =a^2 + b^2

Homework Answers

Answer #1

IPO Table for tempreature conversion

Input Process Output
depth

Multiply depth by 10 and then add 20 store in variable c

Add 273.15 to c and store in k

c for tempreatue in celsius

k for tempreature in kelvin

Function tempreature

    Declare depth
    
    Output "Enter Depth"
    Input depth

    Assign c = (depth * 10) + 20
    Assign k = c + 273.15

    Output "Tempreature in Celsius" & c
     Output "Tempreature in Kelvin" & k
End

IPO table for pythagorous

Input Process Output
a,b,c

Take square of a and b and add them

take square of c

if square of c is equal to sum of squares of a and then d = yes

else d = no

d

Function pythagorous

Declare a

Declare b

Declare c

Output "Enter all sides"

Input a

Input b

Input c

Check if c*c = (a*a) + (b*b)

then

Output "Yes this is a right triangle"

else

Output "No, this is not a right triangle"

End

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Write a C function to compute the following output (int) based on two input (int) variables:...
Write a C function to compute the following output (int) based on two input (int) variables: output = a*a + b*b - 2*a*b If the value of output is '0', then return -1 instead. Call the C function 4 times from main() with values of 'a' and 'b' as follows and print output values for each case. a = 3, b = 4 a = 1, b = 1 a = -2 b = 3 a = -4 b =...
Write a program in python to display all the consonant in the user input. E.g. user...
Write a program in python to display all the consonant in the user input. E.g. user input: Hello Good Day to you. Output: consonant H = 1 consonant l = 2 consonant G = 1   consonant d = 1 consonant D = 1 etc
C++ Fahrenheit to Celsius Tables Write a program that first asks the user which Temperature scale...
C++ Fahrenheit to Celsius Tables Write a program that first asks the user which Temperature scale conversion he/she would like to perform: 1. Convert F to C 2. Convert C to F 3. Quit What is your choice? Then it asks the user for input for three real number variables: start_temp, end_temp, temp_incr. It will then produce a two column Fahrenheit to Celsius table or a two column Celsius to Fahrenheit table, depending on the choice. For choice 1, the...
(8 marks) Write a program to ask user to input an integer and display the special...
Write a program to ask user to input an integer and display the special pattern accordingly. REQUIREMENTS The user input is always correct (input verification is not required). Your code must use loop statements (for, while or do-while). Your program should use only the following 3 output statements, one of EACH of the followings: System.out.print("-"); // print # System.out.print("+"); // print + System.out.println(); // print a newline Your code must work exactly like the following example (the text in bold...
1.    Given the following segment of code: (If there is nothing output, write None.) int x;...
1.    Given the following segment of code: (If there is nothing output, write None.) int x; int y; cin >> x; cin >> y; while (x > y) {     x -= 3;     cout << x << " "; } cout << endl;        a.    What are the output and final values of x and y when the input is 10 for x and 0 for y? [2, 2, 2]               Output                                                                                                                                                                                                    x = ______________                                                                                                                                                                                                   ...
Briefly define (one sentence each) these phrases: 1. adiabatic process 2.isothermal process Calculate the heat required...
Briefly define (one sentence each) these phrases: 1. adiabatic process 2.isothermal process Calculate the heat required to raise the temperature of 1.450 mol of lead from 20 °C to 357 °C at constant pressure given that for lead, C p.m  /J K–1 mol–1 = a + bT + c/T2 where a = 22.13, b= 11.72 ´ 10–3 K–1, c = 0.96 x 105 K2 and T is the absolute (kelvin) temperature.
(C++) Write a program whose input is two characters and a string, and whose output indicates...
(C++) Write a program whose input is two characters and a string, and whose output indicates the number of times each character appears in the string. Ex: If the input is: n M Monday the output is: 1 1 Ex: If the input is: z y Today is Monday the output is: 0 2 Ex: If the input is: n y It's a sunny day the output is: 2 2 Case matters. Ex: If the input is: n N Nobody...
WRITE C++ PROGRAM FOR 1,2,3,4 PARTS of question, DO ADD COOMENTS AND DISPLAY THE OUTPUT OF...
WRITE C++ PROGRAM FOR 1,2,3,4 PARTS of question, DO ADD COOMENTS AND DISPLAY THE OUTPUT OF A RUNNING COMPILER QUESTION: 1) Fibonacci sequence is a sequence in which every number after the first two is the sum of the two preceding ones. Write a C++ program that takes a number n from user and populate an array with first n Fibonacci numbers. For example: For n=10 Fibonacci Numbers: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55 2): Write...
Given an input signal x[n], and the impulse response h[n], compute the output signal. x[n] =...
Given an input signal x[n], and the impulse response h[n], compute the output signal. x[n] = a^n * u[1-n]          for |a| > 1 h[n] = u[2-n]
1) The input/output structure is simpler for a process concept diagram than for a PFD. True...
1) The input/output structure is simpler for a process concept diagram than for a PFD. True False 2) Most processes use only continuous unit operations. True False 3) The input/output structure of a PFD includes utility streams such as fuel gas and steam. True False
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT