The dew point temperature Td can be calculated (approximately)from the relative humidity RH and the actual temperature T by
Td=bf(T, RH)/a.f(T, RH)
F(T, RH) =a.T/b+T + In(RH)
where a = 17.27 and b= 237.76
write a WAP that reads the relative humidity (bio 0 and 1) and the temperature ( in degrees C) and prints the dew point value..
Write an application that ask the user for a letter grade A, B, C, D, E, or Q to quit. When the user types the user Q the program must end. Display the following using the information on the table below. Use a switch statement for the selection. When the loop terminates display how many A, B, C, D, or E were entered.
You are required to implement a simple symbolic equation solver. The equation must be stored in a binary tree.
Each operand or operator should be stored as a tuple of the form (TYPE, VALUE).
For example: (OPERAND, 5), (OPERAND, 7), (OPERATOR, '*’').
Following operators should be supported: addition (+), subtraction (-), multiplication (*), and exponentiation .
Skeleton of this lab is given belo. Complete the bodies of the insert, and evaluate methods. Include your solution in the sections
*Input*
root = Node(('OPERAND', 1))
root = root.insert(('OPERATOR', '+'), False)
root = root.insert(('OPERAND', 2), False)
root = root.insert(('OPERATOR', '*'), True)
root = root.insert(('OPERAND', 3), False)
root = root.insert(('OPERATOR', '+'), False)
root = root.insert(('OPERAND', 3), False)
root = root.insert(('OPERATOR', '^'), False)
root = root.insert(('OPERAND', 2), False)
root.get_output()
*Expected output* = 100
Write a program to enter any number and check whether the number is prime number or not
Write a program to convert ASCII representation of Decimal number
(loaded from the keyboard using a loop calling the function getchar() )
and print its representation in Binary number system
(example: 13 » 00001101 )
Write a program to enter any number from user and find the reverse of given number using for loop (example: 1234 » 4321)
Write a program to enter a natural number from keyboard
and then print first and last digit of entered number.
Write a program using iterative loop to calculate (numerically) the series:
1/x + 1/x 2 + 1/x3 + 1/x4 + . . . + 1/xn
Write a program that loads several numbers from the keyboard,
asking in the meantime, the question "Do you want to finish: Y / N?"
At the end of the loop, program should display calculated values of:
the arithmetic average, maximum, minimum of given numbers.
Write a program to find the sum of all natural numbers in a given range [m,n]
which are divisible by number k. The values of all three parameters m, n, k,
should be read from the keyboard at the beginning of the program.