Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 3-Write a program. Submit GiftWrap.java ***please code in java*** Gifts And More is a store that offers giftwrapping for items in rectangular shaped boxes.

Problem 3-Write a program. Submit GiftWrap.java

***please code in java***

Gifts And More is a store that offers giftwrapping for items in rectangular shaped boxes. Customers can either buy standard wrapping paper or holiday wrapping paper. The owner of this store wants customers to be able to know how much they will spend on wrapping paper before they get to the counter in order to speed up the check out process. Standard wrapping paper costs $1 per square inch and holiday edition wrapping paper costs $2 per square inch. Customers are expected to enter measurements of the rectangular shaped box themselves.

*Hint: look up the formula for surface area of a rectangular prism to calculate how much actual wrapping paper you need

Example Program Run:

***Hello! Please pick from the following options:***

1) Buy standard wrapping paper-press 1

2) Buy holiday edition wrapping paper-press 2

1

You have selected standard wrapping paper.

Please enter the size of your gift (in inches):

Length: 2

Height: 5

Width: 4

You will pay $76 at the counter. Thank you for shopping with us!

image text in transcribed

Problem 3-Write a program. Submit GiftWrap.java Gifts And More is a store that offers giftwrapping for items in rectangular shaped boxes. Customers can either buy standard wrapping paper or holiday wrapping paper. The owner of this store wants customers to be able to know how much they will spend on wrapping paper before they get to the counter in order to speed up the check out process. Standard wrapping paper costs $1 per square inch and holiday edition wrapping paper costs $2 per square inch. Customers are expected to enter measurements of the rectangular shaped box themselves Hint: look up the formula for surface area of a rectangular prism to calculate how much actual wrapping paper you neea Example Program Run: ***Hello! Please pick from the following options:** 1) Buy standard wrapping paper-press 1 2) Buy holiday edition wrapping paper-press 2 You have selected standard wrapping paper. Please enter the size of your gift (in inches): Length: 2 Height: 5 Width: 4 You will pay $76 at the counter. Thank you for shopping with us

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

Intelligent Information And Database Systems 6th Asian Conference Aciids 2014 Bangkok Thailand April 7 9 2014 Proceedings Part I 9 2014 Proceedings Part 1 Lnai 8397

Authors: Ngoc-Thanh Nguyen ,Boonwat Attachoo ,Bogdan Trawinski ,Kulwadee Somboonviwat

2014th Edition

3319054759, 978-3319054759

More Books

Students also viewed these Databases questions