Create a program that will prompt the user to enter a number in the range 1-100 to find my favorite number. If the number is less than favorite number, print “Too low...guess again: ”. If the number is greater than favorite number, print “Too high...guess again: ”. Otherwise, indicate that the number entered is the correct favorite number. (use a constant)
The formula (A∨B) ∧ (¬B ∨C) simplifies down to which of the following when using Boolean algebra?
A. A ∧ C
B. A ∧ B ∨ C
C. A ∨ C
D. B
E. A ∧ ¬B ∨ C
A deduction of $20.00 is taken from the salary of an employee if the salary is less than $300.00 and a deduction of $30.00 if the salary is greater than or equal to $300.00. Input the salary and output the salary less the appropriate deduction.
let a and b be two linked lists. write a c function to create a new linked list that contain elements alternately from A and B, beginning with the first element of A. If you run out of the elements in one of the lists, then append the remaining elements of the other list to C.
A certain company plan to give a 10% bonus to each of its employees at the end of every year. If an employee has been working 10/more years at the company, she/he is to get an additional birr 100. Draw a flowchart of an algorithm to calculate and print the bonus for a given employee.
algorithm step by steps procedure that converts a temperature value in Fahrenheit (F) to value in Celsius (C) using the following formula: C = (F -32) x (100/180)
write an algorithm,draw a flow chart and write its corresponding c program to convert a decimal number to its equivalent binary number
write an algorithm,draw a flow chart and write its corresponding c program to convert a decimal number to its equivalent binary number
Carefully analyze the given pseudo-code and supply the output based on each given test value.
Read salary
If salary < 50000 then tax = 0
else
If salary > 50000 AND salary < 100000 then tax = 50000 * 0.05
else
tax = 100000 * 0.30
Display tax
31. – 35. salary= 85000
36. – 40. salary = 42000
41. – 45. salary = 122000