Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Java please with screenshots of code. 1) In a manufacturing firm, workers are paid monthly bonus based on their production quantities. For every 100

In Java please with screenshots of code.

1) In a manufacturing firm, workers are paid monthly bonus based on their production quantities. For every 100 units beyond the minimum of 1000 units upto maximum of 2000 units, $50 bonus is paid (e.g. worker with 1524 output units will get a bonus of $250). Write the program to get # of units as the user input and output the bonus amount.

2) Given a number of tickets sold at each level and priced at $50/$30/$20, compute the total sales. Please add 8.25% sales tax as well. Round off to 2 decimal digits in the output.

Here is the sample input & output:

# of first-class tickets: 5

# of second-class tickets: 6

# of regular class tickets: 14

Total revenue: 768.58

3) Here is a code segment we wrote in the class to give 15% discount to customers who purchased more than $200 and 10% discount for customers who purchased more than $100. Use it as reference to answer the following question.

if (total >= 200) {

System.out.println("Your discount is " + total * 0.15 );

total *= 0.85; //one way to apply 15% discount

} else if (total >= 100) {

System.out.println( "Your discount is " + total * 0.10);

total *= 0.9; //one way to apply 10% discount

}

Most wholesale companies have the bulk discounts to encourage the customers to buy more. Gildan T-shirt company has the following rates for bulk purchasing:

100+ : $4.99 per piece

500+ : $3.99 per piece

1000+ : $2.99 per piece

2500+ : $2.49 per piece

5000+ : $1.99 per piece

Write the program to ask the customer for # of T-shirts and compute the total cost based on this information

image text in transcribed
1) In a manufacturing firm, workers are paid monthly bonus based on their production quantities. For every 100 units beyond the minimum of 1000 units upto maximum of 2000 units, $50 bonus is paid (e.g. worker with 1524 output units will get a bonus of $250). Write the program to get amount. of units as the user input and output the bonus Given a number of tickets sold at each level and priced at SSO/S30/S20, compute the total sales. Please add 8.25% sales tax as 'vell. Round off to 2 decimal dgts in the output. Here is the sample input&output t of first-class tickets: 5 t of second-class tickets: t of regular class tickets: 14 Total revenue: 768.5 Here is a code segment we wrote in the class to give 15% discount to customers who purchased more than $200 and 10% discount or customers who p than $100. Use it as reference to answer the following question Chased more system.out .print n(.rour discount is " + total * 0.15 }, total *# .85; //one way to apply 15% discount else if (total-100) system.out.printin "Your discount is total:0.10 total *= 0.9; //one way to apply 10% discount Most wholesale companies have the bulk discounts to encourage the customers to buy more. Gildan T-shirt company has the following rates for bulk purchasing: c100 pieces 1 not availabl 100+ 1 4.99 per piece 500+ 3.99 per plece 00 $2.99 per piece 2500+$2.49 per piece 5000+$1.99 per piece write the program to ask the customer for # of T-shirts and compute the total cost based on this information

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

Database Design Application Development And Administration

Authors: Mannino Michael

5th Edition

0983332401, 978-0983332404

More Books

Students also viewed these Databases questions

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago