Write all the instructions in one java file do not write a


Assignment

1. (Pseudocode, only - I DO NOT want the Java code for this exercise) The prices of items sold at a bookstore are marked up by 20%. After marking up the prices, each item is put on sale at a discount of 5%. For example, if the price is $100, markup will be $120. Discount will be 120*.05 = $6. So, the final price will be 120-6 = $114. In addition, ask the user for his/her name and birthdate year, month and day. Calculate the final selling price of the item sold at the bookstore. Display the values of each of the items asked from the user and any value you calculate in the process. Don't forget to create descriptive variable names and number your steps. Think about the Input, processing and output steps needed to solve this problem.

2. (Pseudocode only - I DO NOT want the Java code for this exercise) A Lawn service provider has three types of services: mowing, fertilizing, and planting trees. The cost of mowing is $20 per 5000 square yards, fertilizing is $25 per application, and planting a tree is $40. Design an algorithm, to enter the length and width (in yards) of the lawn, calculate the area (hope you know how do this!), and the number of trees to be planted. Calculate and display the billing amount. Add an 8% tax. Display the calculated tax value and display the total bill with tax.

3. Write a Java program to perform the following operations. Write all the instructions in ONE Java file. DO NOT write a Java file for each part. Clearly explain the output (don't just display a number). Don't forget documentation. Because you have 5 parts for this exercise, clearly show the beginning of each question. Make sure your output is descriptive. For example, instead of displaying 3.4 for a person's GPA, display something like: GPA = 3.4

a) Write the Java code for this problem: Ask the user for the capacity of her memory flash drive in bytes. Calculate and display the amount of memory in KiloBytes (1024 bytes), MegaBytes (1048576 bytes) and GigaBytes (1073741824 bytes). Recall that dividing 2 integers will lead to another integer. For example, if the user enters 1347890876 bytes, the answer will be: 1316299 KiloBytes, 1285 MegaBytes, 1 GigaBytes, make sure your output is descriptive. Don't worry about reporting the leftover bytes after making the conversion. Of course, 38 bytes will lead to 0 KiloBytes, etc.

b) Write the Java code for question 1

c) If you know the acceleration (a) and take-off speed (v) of an airplane, you can compute the minimum runway length needed for an airplane to take off using the following formula: length = v2/2a Ask the user for the speed and the acceleration and calculate the length. Also, display all of the input and calculated values. For example, if the speed is 60 and acceleration is 3.5, the minimum runway length would be 514.286. Don't worry about formatting the output with a certain number of digits after the decimal point.

d) Write the Java code for this problem: Ask the user to enter the number of minutes a bunch of people have spent working. Calculate and display the number of years and days. Assume a year is 365 days. For example, if the number of minutes entered is 1 billion, then the number of years will be 1902 years and the number of days will be 214 days. Think about integer division and the modulus operator may also come in handy.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write all the instructions in one java file do not write a
Reference No:- TGS02628025

Expected delivery within 24 Hours