Questions: 856

Answers by our Experts: 763

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

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.

Design an algorithm to solve the problem using pseudocode:



(Print a table) Write a program that displays the following table:



p p*5 p*10



5 25 50


10 50 100


25 125 250


50 250 500

Design an algorithm to solve the problem using Pseudocode:


(Display two messages) Write a program that displays Introduction to Programs and Welcome to Computer Fundamentals and Programming. 


(Sum the digits in an integer) Write a program that reads an integer between 0 and 1000 and adds all the digits in the integer. For example, if an integer is 932, the sum of all its digits is 14. 

 

Hint: Use the % operator to extract digits, and use the / operator to remove the extracted digit. For instance, 932 % 10 = 2 and 932 / 10 = 93. 



LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS