JAVA
Suppose that one of your clients is the owner of a retail store. This retail store usually sells general merchandise every week. You are supposed to develop a simple program that will simulate the total profit of a week. The program will get the unit price of an article and calculate the actual sales price first. And then it calculates the total anticipated profit of a week. The following formula is used to calculate sales price and total profits:
Your class should be designed as follows:
Your program should be developed to test a class and get total profits of a week. And also your test program should ask a user whether or not he/she has more articles to simulate profits.
All data should be displayed as a proper format. It means unit price, sales price, profit, and total profit should be represented as a currency, and sales tax should be represented as a percentage (%).
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here