Create a program that will do the following:
- Ask the user for a number from 1 to 20, check to ensure that a valid number is entered
- Ask the user for a second number from 1 to 20, check to ensure that a valid number is entered
- Ask the user for a third number from 1 to 20, check to ensure that a valid number is entered
- Display a message telling the user what is the largest number
- Display a message telling the user what is the second largest number
A client has approached you to create a website specific to their business. This website will serve as a
way of marketing their business, attracting clients and allowing them to make queries. The client
wants the website to keep track of users by storing their details for survey and marketing purposes.
The client requests that the website should have a database to keep track of these users.
Create any one game using data structure in C program
Take a list of elements that contains both characters and numbers. Using any sorting algorithm sort the list such that the characters are in alphabetical order and the numbers are in descending order. However, retain the position of numbers and characters. For example: Input: b,2,1,c,3,a. Output: a,3,2,b,1,c.
write a algorithm to reversethe required elements of password to get the actual password,so that file can be opened
Make an application with the above classes for a client that comes with a list of items * that needs to purchase with the following ruleset: - At the beginning at least 5 different types of items must be added to the storage (use the method addItemQuantity() from Storage.class) - Then create a list of items of the client. - For every item first should be checked if the items are available (use getItemQuantity of Storage.class) - If an item is unavailable do not include it in the invoice - If the item is available include it in the invoice - After all the items are added to the invoice, show all the items added with the description, quantity and cost of the item. This final list should be shown ordered in alphabetical order. - output the invoice into a text file (invoice.text) and save it on the local PC.
You are provided with a simple Java project.create an abstract class 3DShape for 3D shapes.
Create Cube and Cylinder 3D shapes by extending the 3DShape class you’ve just created.
Create an interface to calculate volume and implement necessary code to calculate correct value of volume of all types of your 3D shapes.
As a bonus, implement a design where 2DShape supertype is the parent of the 3DShape supertype, and respective methods for area and volume calculation are inherited from the relevant supertype for the concrete 3D objects.
Fibonacci numbers are a sequence of integers, starting with 1, where the value of each number is the sum of the two previous numbers, e.g. 1, 1, 2, 3, 5, 8, etc. Write a function called fibonacci that takes a parameter, n, which contains an integer value, and have it return the nth Fibonacci number. (There are two ways to do this: one with recursion, and one without.)