- Design a C++ program that solves Hanoi towers problem
- Experiment with your program , using n=3, n=10, n=20, n=60; and register the number of disk moves required for Hanoi towers problem solution for each value of n and approximate run times.
- Trace execution of your algorithm for n=3 by making a tree of function calls.
- What is the time-efficiency class of your algorithm?
- Design a C++ program with a ListArray class of unordered lists with integer items. main() function should declare an object of this class. It should print the content of the list after execution of each list operation.
- Make necessary changes in your program to keep lists sorted in ascending order and then in descending order. Make sure that your search function effectively uses the fact that a list is sorted now.
- Design three additional methods:
1. itemsSum() that returns the sum of list items.
2. invert_move() that inverts the sequence of list items in the same list by changing items memory locations.
3. invert_move() that inverts the sequence of list items in the same list without changing items memory locations.
- Present report with results of your experiments: The program code, outputs, some comments on additional functions 2 and 3.
Polly Pipe is a water sports provider and installer. Polly Pipe is focused in placing aquariums at business customers. Customers can request several installations, but each installation is tailor-made for a specific customer. Facilities are classified by type. One or more employees are assigned to each facility. The facilities use equipment. Below are examples of paper records.
Staff Management Record
Staff Number| Name| Type|
SHA1| Dave Clark| Plumber
Equipment Type Table
Type| Equipment|
Tanks| 20 gallon tank, 50 gallon tank
Instillation Management Form
Installation ID| Installation Type| Installation Name and Address| Customer| Equipment| Types of Staff Required| Period of Staff assignment|
234| Freshwater Tropical| Oak House| 17 Wroxton Road, Hertfordshire| John Carter| 2 air pumps, 200 gallons fish tank| 1 x Carpenter,1 x Aquatics installer| From 2012/12/10|
ERD Please!!
Polly Pipe is a water sports provider and installer. These necessities are defined in this scenario and below are samples of the paper records that the Polly Pipe preserves. Polly Pipe is focused in placing aquariums at business customers. Customers can request several installations, but each installation is tailor-made for a specific customer. Facilities are classified by type. One or more employees are assigned to each facility. Because these facilities are often very large. The facilities use equipment such as aquariums, air pumps and thermostats.
Below are examples of paper records that Polly Pipe currently maintains.
Staff Management Record
Staff Number| Name| Type|
Equipment Type Table
Type| Equipment|
Instillation Management Form
Installation ID| Installation Type| Installation Name and Address| Customer| Equipment| Types of Staff Required| Period of Staff assignment|
Mr Raman likes to spend the quarantine time with some useful work. he plans to stitch the Mass. he purchases cloth of colour white x cm, cloth of colour black y cm. The white mask takes 12 cm for each mask and the black mask take 10 cm for each mask. How many masks did Mr. Raman stitched. Requirements 1. Capture the size of black cloth y and White cloth x cm. 2. Calculate the number of black mask that can be stitched of size 10 cm. 3. Calculate the number of white Marsh that can be stitched of size 12 CM. 4. Calculate the total masks stitched. 5. Display the total masks.
One dimensional Array.
The program will ask the user to input size of the array, and the user will input values for each index.The program will output the LARGEST inputted value and its index.
One way to determine how healthy a person is by measuring the body fat of the person. The formulas to determine the body fat for female and male are as follows: Body fat formula for women: A1 ¼ (Body weight 0.732) + 8.987 A2 ¼ Wrist measurement (at fullest point) / 3.140 A3 ¼ Waist measurement (at navel) 0.157 A4 ¼ Hip measurement (at fullest point) 0.249 A5 ¼ Forearm measurement (at fullest point) 0.434 B ¼ A1 + A2 – A3 – A4 + A5
Body fat ¼ body weight – B Body fat percentage ¼ body fat 100 / body weight Body fat formula for men: A1 ¼ (Body weight 1.082) + 94.42 A2 ¼ Waist measurement 4.15 B ¼ A1 – A2 Body fat ¼ body weight – B Body fat percentage ¼ body fat 100 / body weight Write a program to calculate the body fat of a person.
Write a user-define function, called AreaOfCircle, that calculates and prints the area of a circle given its radius as input using Python input () function.
Note: You want to use the proper arithmetic operations, calculate, and print the proper value for the scenario described below:
At the beginning of your code, you need to use math module, ask for the radius of the circle. Then calculate the area of the circle and print the result using a proper message. For example, the area of the circle is …
Ten students had worked in a clothing store during the holidays. At the end of
the holiday, they receive a wage according to the number of items that they
sold. The rate of pay is R6.50 per item. Enter the student name and the
number of items that the student sold during the holidays and display the
student name and the amount earned by every student. Also calculate and
display the student name of the student who sold the most items.
Vishal is having a bunch of coins ranging from rupees 1 to 10. Help him to write program to find the sum and average of the coins that he is having using while loop.