Write all the instructions in one java file

Assignment Help JAVA Programming
Reference no: EM131832520

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.

Reference no: EM131832520

Questions Cloud

Volume increases the variable costs : what is the current value of these bank bills? If volume increases the variable costs will:
Compute the cost of one unit of product : Loker Corp. makes and sells garden hoses in 50 ft. lengths. Compute the cost of one unit of product using absorption costing
Arguments for utility of consolidated financial statements : Present arguments for the utility of consolidated financial statements for the shareholders of the ultimate parent entity. Include the following in discussion
What is the probability that six of the observed values : Suppose that F is a continuous dj. on the real line; and let at and 02 be numbers such that F(at) - 0.3 and F(a,) - 0.8.
Write all the instructions in one java file : 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).
Students in a certain high school are freshmen : Suppose that 16 percent of the students in a certain high school are freshmen, 14 percent are sophomores, 38 percent are juniors, and 32 percent are seniors
What is the probability that his score : If the students score on test A is 80, what is the probability that his score on test B will be higher than 90?
Prepare the journal entries in the records of white foam : Prepare the journal entries in the records of White Foam Ltd in relation to the above events - All applicants who acquired options also received shares
What must be true about their indifference curves : Create budget constraints for each of the different eMusic membership plans. Prices have been rounded to make things simpler.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd