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

The supermarket has different variety of items in different weight. Find maximum weight from these items. Write a program to find maximum weight of an item using dynamic memory allocation.



Runtime Input :


10

2.34

3.43

6.78

2.45

7.64

9.05

5.67

34.95

4.5

3.54


Output :


34.95


B. Identify a real-world scenario for the below task:6 A task where the next one to work on is always the one that has been waiting the longest. i. For the above task, explain your choice of an appropriate data structure for such a task. [3 marks] ii. Provide the corresponding algorithm for solving such a problem based on the data structure you chose above. You can represent each step diagrammatically. [5 marks


Consider a set up that corresponds between alphabetic characters as follows

Assuming the encryption algorithm is C=11m+7 mod 26, where m is the

message and C is the ciphertext.

I. Encrypt the word “CYBERCRIME

CR,10Marks

II. Derive the decryption algorithm


You have learned that Group-based asynchronous communications are normally conducted in text forms. Discuss with two relevant examples each, the four types of group-based textual communication.


You are designing a quiz game to help elementry school students with fraction calculations

Your games should have a set of 25 addition, subtraction, multiplication, division questions located in a file. Each question should be formatted to look like:

  • 3/4+4/5
  • 5/8*9/4

The questions should be displayed to the player 1 question at a time and reward the player points for gettting the answer to that question correct.

  • Question was correct the first time (4 Points in Lowest Terms, 3 Points not in lowest terms)
  • Question was incorrect the first time but correct on second guess (2 Points in Lowest Terms, 1 Point not in lowest terms)
  • Question incorrect after second guess (0 Points)

Your program should always display the correct answer in lowest terms if the player didn't answer in lowest terms correctly

Your program should append the players name and score to a file when complete.

You must design and code a Fraction Object to complete this program

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.


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


LATEST TUTORIALS
APPROVED BY CLIENTS