Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are a sales rep responsible for quoting a price for orders of paper. Normally, paper costs $5.00 per pack with a flat shipping cost

You are a sales rep responsible for quoting a price for orders of paper. Normally, paper costs $5.00 per pack with a flat shipping cost of $7.99. If a customer orders a quantity of at least 20 packs of paper, the unit price will drop to $4.00. If a customer orders at least 10 packs of paper, the shipping becomes free for the customer.

Write a block of code that takes, as input from the user, the quantity of paper ordered and returns the final price including shipping.

java

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

Students also viewed these Databases questions