Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i am new to eclipse so bear with me but any help i can get to figure this out would be appreciated. i attached what

i am new to eclipse so bear with me but any help i can get to figure this out would be appreciated. i attached what i have so far and the question also. than you image text in transcribed
image text in transcribed
create a java program/Class An area of San Juan PR has a zip code of 00901 and a sales tax of 6%. 1. Create the appropriate numeric variable to store any valid 5 digit zip code. 2. Prompt for the San Juan Zip Code. 3. Display the unformatted zip code. 4. Format and display the zip code so that it has leading zeros and a size of 5. 5. My hotel charge is $55.00 Store this in a constant. 6. Create a double variable for my total cost. 7. Calculate my total cost by multiplying my hotel charge by 1.06 8. Display the unformatted total cost. 9. Format and display the total cost rounded to 2 decimal places. use descriptive variable names 0 eclipse-workspace Week 7/arc/main.jave - Echipse IDE File Edit Source Refacto Navigate Search Project Run Window Help ....G.S.P Project Explorer Iman is Week 7 Enport java.util.Scanners > RE System Laney public class wat SC (default package public static void main(String[] args) { Scanner scene Scanner(Systesin) > manje System.out.print Enter San Juan Zip Code: "); int zips.si): System.out.printf("Forestted tip code 04/", tip) Vinal double hotelcharge 3.0 double sytotalcast hotelcharge. 1.01 System.out.println("nformatted total cost Total cost); System.out.print("Forstted total cost 1.287 Totalcost), Outline E. oming veit Premier Dewanto 2mwaming the Description ore 2 there was not beeiled to in West? The project was not be led to a Week? Leo Un Un lava Problem Mave Problem Erontem

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Access Patterns Database Interactions In Object Oriented Applications

Authors: Clifton Nock

1st Edition

0321555627, 978-0321555625

More Books

Students also viewed these Databases questions

Question

305 mg of C6H12O6 in 55.2 mL of solution whats the molarity

Answered: 1 week ago