Computer Science, asked by afrinanasrin01, 1 month ago

Write a Java program to calculate the revenue from a sale based on the unit price and quantity of a product input by the user.
The discount rate is 10% for quantities purchased between 100 and 120 units and 15% for quantities purchased greater than 120 units.If the quantity purchased is less than 100 units the discount rate is 0%.​

Answers

Answered by adityaray38970
0

Answer:

Exercise 1: Solution: import java.util.*; public class Exercise1 { public static void main(String[] args) { showGrade(); } static void showGrade(){ float quiz_score, mid_score,final_score,avg; Scanner sc=new Scanner(System.in);

Similar questions