Design an algorithm to read a value from the keyboard which represents the name of a shape. Allowed shapes are circle, square, and triangle, any other shape name should result in an error message being displayed. For each shape the area of the is to be calculated and displayed so the program should prompt the user for any additional information needed to calculate the area based on the shape. For triangles, only right-angled triangles are allowed. The calculated area along with the input from the user should be displayed.
Draw the flowchart and write the pseudocode for the algorithm.
Moments of inertia: The rotational equivalent of mass is inertia, I, which depends on how an object’s mass is distributed through space. The moments of inertia for Disk rotating around its center is:
I = 1/2 mr2
Where m is the mass and r is the radius.
Write the pseudocode and draw the flowchart for the algorithm that will accept the mass and radius from a user and then print the moment of inertia of the disk rotating.
Moments of inertia: The rotational equivalent of mass is inertia, I, which depends on how an object’s mass is distributed through space. The moments of inertia for Disk rotating around its center is:
I = 1/2 mr2
Where m is the mass and r is the radius.
Write the pseudocode and draw the flowchart for the algorithm that will accept the mass and radius from a user and then print the moment of inertia of the disk rotating.
Design an flowchart to read a value from the keyboard which represents the name of a shape. Allowed shapes are circle, square, and triangle, any other shape name should result in an error message being displayed. For each shape the area of the is to be calculated and displayed so the program should prompt the user for any additional information needed to calculate the area based on the shape. For triangles, only right-angled triangles are allowed. The calculated area along with the input from the user should be displayed.
Design an algorithm to read a value from the keyboard which represents the name of a shape. Allowed shapes are circle, square, and triangle, any other shape name should result in an error message being displayed. For each shape the area of the is to be calculated and displayed so the program should prompt the user for any additional information needed to calculate the area based on the shape. For triangles, only right-angled triangles are allowed. The calculated area along with the input from the user should be displayed.
Draw the flowchart and write the pseudocode for the algorithm
Moments of inertia: The rotational equivalent of mass is inertia, I, which depends on how an object’s mass is distributed through space. The moments of inertia for Disk rotating around its center is:
I = 1/2 mr2
Where m is the mass and r is the radius.
Write the pseudocode and draw the flowchart for the algorithm that will accept the mass and radius from a user and then print the moment of inertia of the disk rotating.
Design an algorithm to read a value from the keyboard which represents the name of a shape. Allowed shapes are circle, square, and triangle, any other shape name should result in an error message being displayed. For each shape the area of the is to be calculated and displayed so the program should prompt the user for any additional information needed to calculate the area based on the shape. For triangles, only right-angled triangles are allowed. The calculated area along with the input from the user should be displayed.
Draw the flowchart and write the pseudocode for the algorithm
A teacher has stored the percentage scores for eighty-six (86) students; she has the following tasks to complete: • compute and print the average score. • add an additional fourteen percent to each student’s score
Illustrate the working of heapsort on the following arrays:
i. 2, 3, 4, 5, 6, 7
ii. 7, 6, 5, 4, 3, 2
Design and explain the following with the help of diagrams and
examples.
(a) Four-bit Synchronous Up counter.
(b) Four-bit Synchronous down counter