An algorithm read numbers between 0and 15 and check whether number is even or odd then display sum of even numbers and average of odd numbers
Write a pseudocode that converts 50 Celsius degrees into its equivalent Fahrenheit degrees. Use the formula: F= 9/5*C + 32
Write a pseudocode that converts 50 Celsius degrees into its equivalent Fahrenheit degrees.
Use the formula:
"f=9\/5*C+32"
a algorithm whether a number is a single digit number,
two-digit number, three-digit number, four-digit number or just more than four-digit number
Q 1. Convert the following statements into logical expression? (15)
1.1. When you buy a new car from Scion Motor Company, you get either $2K back in cash or 2% car loan.
1.2. For you to win the contest it is necessary and sufficient that you have the only winning ticket.
1.3. If you read the newspaper every day, you will be informed and conversely.
1.4. The train runs late on exactly those days when I take it.
1.5. Draw graph for given map and also fill with minimum number of colors.
1.6. Build a circuit for the given function
1.7. Write a formula for the given sequences 0.25, 0.5, 0.75, 1, 1.25 …?
Build an AVL Tree using these keys, draw the corresponding
tree after each key is inserted.
A L G O R I T H M C
Write an algorithm, Pseudo Code and Flow Chart for the following scenario:
Suppose you are having Rs. 500. You have purchased one pen priced Rs. 25.0 per
unit, 3 notebooks priced 45 per unit, 1 drawing copy priced 50 per unit. You give the
currency of Rs. 200 to the shopkeeper. Find out the amount shopkeeper will return to
you and also tell the total item purchased.
Design an algorithm to solve the problem using pseudocode:
(Average sales in grams) Assume a vendor sells 6 kilograms of grocery in 15 hours and 30 minutes and 30 seconds. Write a program that displays the average sale in grams per hour (Note that 1 kilogram is 1000 grams).
Design an algorithm to solve the problem using pseudocode:
(Area and perimeter of an equilateral triangle) Write a program that displays the area and perimeter of an equilateral triangle that has its three sides as 9.2, using the following formula:
area = 1.732 x (side1)2/4
perimeter = 3 x side1
Design an algorithm to solve the problem using pseudocode:
(Summation of odd numbers) Write a program that displays the sum of the first ten odd numbers.