Place your order now for a similar assignment and have exceptional work written by our team of experts, At affordable rates
For This or a Similar Paper Click To Order Now
A. F22 – Car App (ArrayList)
Create an App that allows you to track different vehicles. Declare a String ArrayList for cars. Add the following cars to your list (pg 473): Mercedes, Mustang GT, Odyssey, Porsche, Corvette, Lincoln, Xterra, Camry, Silverado, and Ram 2500. Print a report title line. Print the ArrayList using a loop that uses the ArrayList size to know when to stop (pg 474). Then, Insert Tacoma before Lincoln (pg477). Replace the Ram 2500 with your favorite vehicle (pg478). Print another report title line stating “after update”. Print the ArrayList the second time using the Enhanced for loop (pg 474). You don’t need to use classes or methods for this assignment. You don’t need to get input from the user (Scanner or JOptionPane).
Sample Output:
*** List of Cars ***
Mercedes
Mustang GT
Odyssey
Porsche
Corvette
Lincoln
Xterra
Camry
Silverado
Ram 2500
*** Cars after update ***
Mercedes
Mustang GT
Odyssey
Porsche
Corvette
Tacoma
Lincoln
Xterra
Camry
Silverado
F250 Super Duty
Hints
You can use string literals (“Mercedes”) instead of asking the user for the cars. This will make it easier to test.
Put a n at the start of the second report heading line so it looks more professional
Make sure to use the correct subscript when inserting Tacoma before Lincoln.
Rubric
Doesn’t use the ArrayList -100%
Doesn’t insert Tacoma before Lincoln – 20%
Doesn’t replace Ram 2500 -20%
Doesn’t print the original ArrayList -20%
Doesn’t use ArrayList size to print the ArrayList -5%
Doesn’t print the report title line for the original ArrayList -2%
Doesn’t print the ArrayList the second time -20%
Doesn’t use the enhanced for loop to print the second time -5%
Doesn’t print the “after update” line for the second print -2
B. F22 – Better Electrician AppThis will be similar to the Java 4 Electrician App. You do NOT need to create classes for this assignment. In the main method, ask how many rooms and the price of wire per foot. Create an array of integers that occurs the number of rooms times (pg 404).Write a method to ask for the # of feet of wire for each of the rooms. Pass the array to the method (pg 422). The method should save the number of feet of wire in the elements of the array. Loop through the method for each room. After all rooms have been entered loop through the array to print all the rooms, ex: Room 1 – 22 feet (where the 22 is the number of feet entered for room 1 in the array). Add the number of feet to a variable for the total number of feet. After all rooms have been printed, print the total of all rooms. Add a line that says Waste (add 10%):. Print the final line that has the total of all rooms plus the 10% waste factor and the total cost of the wire (total feet including 10% waste times the price).Sample Output:Room 1 – 15.00 feet
Room 2 – 25.00 feet
Room 3 – 35.00 feet
Total wire for all rooms: 75.00
Total waste (add 10%) : 7.50
Amount of wire needed : 82.50
Price of wire per foot : $ 4.75
Total cost for all wire : $ 391.88Hints/TipsDon’t forget to initialize your accumulator
You must ask for the room count before declaring the array so you know how big to make the array
The method to get the number of feet of wire per room only contains the for loop and the code to ask for the number of feet of wire for each room. The number of feet of wire must be converted (parsed) to a double to put into the array element. Page 406 has an example of inputting array contents, but the book uses 0, 1, 2 (literal values), for the indexes, while we’re using a loop, so our index will be a variable (the control variable in the for loop). Don’t forget that arrays start out at element 0, not 1. Thus, the array length is one more than the largest index (hence, “Off-by-one-Errors – pg 410).
The main method 1) asks for the # of rooms, 2) declares the array, 3) asks for the price, 4) calls the method to load the array, 5) prints the results using a for loop while accumulating the total feet of wire, 6) prints the summary with totals
To use the number of rooms variable in the method, you must pass it to the method along with the array (it doesn’t have access to variables in the calling method).
I used System.out.printf for reporting results
To line up my colons, I put spaces in the literal (ex: “…(add 10%) :”
To line up my numbers, I put 7 after % so that I would print at least 7 characters (ex: %7.2f). 8 would be better if you have total cost over $1,000.
RubricDoesn’t build and use an array -100%
Doesn’t report room details -30%
Doesn’t pass the array to a method -20%
Doesn’t report the array results -30%
Doesn’t sum and calculate total -25%
Incorrect summary info -2% each occurrence
Why Work with Us
Top Quality and Well-Researched Papers
We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.
Professional and Experienced Academic Writers
We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.
Free Unlimited Revisions
If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.
Prompt Delivery and 100% Money-Back-Guarantee
All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.
Original & Confidential
We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.
24/7 Customer Support
Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.
Try it now!
How it works?
Follow these simple steps to get your paper done
Place your order
Fill in the order form and provide all details of your assignment.
Proceed with the payment
Choose the payment system that suits you most.
Receive the final file
Once your paper is ready, we will email it to you.
Our Services
No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.
Essays
No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.
Admissions
Admission Essays & Business Writing Help
An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.
Reviews
Editing Support
Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.
Reviews
Revision Support
If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.