Here are three different prompts can you please answer one and provide a java code for it.
Question:
Here are three different prompts can you please answer one and provide a java code for it.
Thank you!
1) A small Bodega needs an inventory program to help them track their stock. The items they sell come in two categories: food and non-food. All items have a brand name, a price, a desired stock quantity, an actual quantity, and a location. Non-food items are taxed, but food items are not. Some food items are perishable and have a sell by date. They like to move items that are within one week of their sell by date to an impulse buy location near the register, so they need to be able to get a list of what is about to go out. They also want a list of items they have more in stock than the desired quantity, again, so they can put them up front. For this first pass include milk, paper towels, Oreos, Doritos, scissors, yogurt, canned beans and lighter. You can generate reasonable stock quantity and randomly generate actual quantity.
Band
2) The coach of the marching band wants to have a program that will helis students learn the basics of each instrument and prop. Ultimately this will be a GUI app with lots of recordings, but at this stage, you are just planning out how everything will work together. You can use text for the sounds instruments make as placeholders for the audio recordings. He wants all the musical instruments and the batons and flag included in this program. Only musical instruments make sounds, but all musical instruments make sounds. Each instrument and prop should have a name and a String representation. They will each belong to one of the following categories: prop, woodwind, brass, percussion. For this first pass, you need to have two instruments in each category and two props.
Dungeon Crawl
3) Your friend has a great idea for a new dungeon crawler game but he's not sure if his ideas for weapon values can be done in a program. He wants to create several base weapons, such as dagger, sword, hammer, ax, mace, and halberd. Each will do different amount of damage related to the common dice in D&D. The dagger would do 1-4, the sword 1-6, etc. The dice are 4d, 6d, 8d, 10d, 12d, and 20d. The complicating part is that many weapons can be enchanted, and enchantments add more randomness to the weapon values. Daggers and halberds cannot be enchanted. An enchanted weapon gets to add a second random number to the base weapon number. Some weapons that can be enchanted have an enchantment value of 0, they always return 0 to add to the weapons value. Some weapons that can be enchanted have an enchantment value that is a random number that gets added to the "roll" and others act as a second "roll" to be added to the weapons roll. A given enchantment may add an effect to the weapon. Each weapon should have a toString() that may return something like this: Flaming Sword, 8 or Thor's Hammer, 20. He wants to be able to create weapons with random enchantments and to create weapons and add specific enchantments.
Foundations of Financial Management
ISBN: 978-1259024979
10th Canadian edition
Authors: Stanley Block, Geoffrey Hirt, Bartley Danielsen, Doug Short, Michael Perretta