- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Hey, all! I am running into trouble with some code I am doing for an assignment. The section highlighted in red is the section that I am having trouble with. When the user selects a [I]seat type[/I] and then clicks the [I]compute button[/I], the wrong cost is displayed instead of … |
|
I am at my wits end with this code. I've been working on it for at least 2 weeks and the same error appears. The error, itself, is the incompatible types error. It appears underneath the division symbol. [CODE]// DivideByFive.java - This program determines if a number is divisible by … |
|
The program runs perfectly, however I am having an issue adding a discounted price. Another thing I noticed when I run the program is that the switch statement doesn't calculate the discounts at all. [CODE]// DiscountPrices.java - This program calculates total cost for discounted items. // Input: Interactive. // Output: … |