Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

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_2

Step: 3

blur-text-image_3

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

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions

Question

Define exon and intron.

Answered: 1 week ago

Question

=+j Understand different types of regions in the world.

Answered: 1 week ago