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
(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...
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...
Write a script to display numbers from 1 to n, where n is an integer provided...
Write a script to display numbers from 1 to n, where n is an integer provided by users (if not, default to 10). Hint: use “read” command to accept user input. a) Display the source code in an editor (#4-9) b) Execute your script in the terminal, and display the command and the result (#4-10)
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
Temperature is used to measure the output of a production process. When the process is in...
Temperature is used to measure the output of a production process. When the process is in control, the mean of the process is 125 and the standard deviation is .01. a. Construct an chart for this process if samples of size are to be used (to 2 decimals). b. Is the process in control for a sample providing the following data? 128.6 129.5 128.7 128.6 129.1 128.7 (to 2 decimals) Conclude that the process - Select your answer -is notis...