A toy shop has a unique way of selling their toys to children. As the shop opens the toys prices keeps increasing for every sale he makes. After some time the shopkeeper prefers to lower the price every sale he makes. For example , say the starting prices of the toy is Rs. 10. He decides to increase the price by 5 for 5 first entries and reduce the price by 5 there after. The list would be 10 15 20 25 30 25 20 15 10 5 0. Given this kind of pricing, every day he wants to find what is the maximum price a child had paid for the toy. Write a program to help the shop keep find the toys price in less than O(n) time. You will be given the array. The number of entries for which the shopkeeper decides to increase is kept as a secret.
create a pseudocode that will Write a program that allows the user to enter any number of names; i.e – last name and first name. Using one of the predefined methods of the Array class, order the names in ascending order. Display the results.
create a flowchart that will Write an application that computes the area of a circle, rectangle, and cylinder. Display a menu showing the three options. Allow users to input which figure they want to see calculated. Based on the value inputted, prompt for appropriate dimensions and perform the calculations and perform the calculations using the following formulas:
Area of a circle = pi*radius2
Area of a rectangle = length*width
Area of a cylinder = pi*radius2*height
Write a modularized solution, which includes class methods for inputting data and performing calculations.
Create a flowchart that will solve the area of a rectangle given the length (l) and width (w) of a rectangle. If the length and width are equal, show that the rectangle is square.