Question: java 13 points) Test 2 checks if the methods addAct() and calculatePrice() are correct, addAct() should store a maximum of ten acts, with each act

java
java 13 points) Test 2 checks if the methods addAct() and calculatePrice()

13 points) Test 2 checks if the methods addAct() and calculatePrice() are correct, addAct() should store a maximum of ten acts, with each act being represented by an integer (you may assume any integer number can be an act number). After adding an act, the price is updated. The pricing policy for a standard ticket is as follows: 30 for the first three acts combined, 7,50 per act for acts four and five, and an additional SC for each further act. If you add a total of ten acts, the complete flag is automatically set to true. If a visitor does not want to schedule 10 acts, he or she can manually complete their ticket using the setComplete() method. Once a ticket is complete, you can no longer add further acts

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!