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

  Determine the retail price for each product

Your program should use a switch statement to determine the retail price for each product. It should calculate and display the total retail value of all products sold. Use a sentinel-controlled loop to determine when the program should stop loopin..

  Modeling the caves

Assignment 2 Description:  You are a mighty warrior, and armed with your trusty bow and 3 arrows, you enter The Caves in search of the mighty Wumpus. If you shoot the Wumpus, you are victorious and the masses will praise you, but if you stumble upon ..

  Calculate the minimum payment

Design and implement a program that will allow us to determine the length of time needed to pay off a credit card balance

  Creates pet objects from data read from the keyboard

The assignment is to write a program that creates Pet objects from data read from the keyboard. Store these objects into an instance of ArrayList.

  Create an application for an animal-fur trimming service

create an application for an animal-fur trimming service. the business is open 15 weeks of the year from april through

  Write applet which reads five numbers-draw equivalent stars

Write the applet which reads five numbers (each between 1 and 30). For each number read, your program must design line containing that number of adjacent asterisks.

  Develop a mobile game using any game scenario of your choice

Using the J2ME platform, develop a mobile game using any game scenario of your choice. You are required to provide the following features in your implementation: 2D implementation using sprite, game canvas and tiled layer

  Program obtaining the new scriptdownload and save the

program obtaining the new scriptdownload and save the attached comment cgi mailer script form-mail2.pl to your servers

  Create your listarray class

Create your ListArray class that is functionally similar to the formal Java ArrayList Utility class. here are the requirements

  Describe the mathematical action that is being implemented

After you have typed this in, you will see an error notation on the left side-What does the program do-Describe mathematical action that is being implemented

  Write a program that takes input of names from user

Write a program that takes input of names from user. Print total names number and all names. NOTE: Solve this problem using ArrayList and Enhanced For Loop. Typical run of the program:Enter a name: (Q to exit)

  Java assignment

Java Assignment

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