Question
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
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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started