Tianna Taylor-Albin

Greenhorn
+ Follow
since Jun 27, 2013
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Tianna Taylor-Albin

I am trying to implement the cloneable interface of the Product class but I keeping getting an error saying that the clone has protected access in Object. I thought the @Override gave access. Can anyone please tell me what I'm doing wrong? Thanks.
9 years ago
It's supposed to be an invoice app that asks the customer for customer type and subtotal. A discount is given depending on the customer type. It should calculate the total based on the subtotal and discount amount.The invoice class (the one at the bottom) is where the bad if and if else statements are. I think that is what is keeping it from compiling. I can't figure out why they are wrong. NetBeans says it's an "illegal start of type <identifier> expected illegal start of type" error. I'm not sure what that means because I copied it directly from the Invoice App class.
9 years ago
In this exercise, you'll create an Invoice class and construct objects from it as you conver the Invoice application to an object-oriented application.

1. Open the InvoiceApp and Validator classes in the directory. This is yet another version of the Invoice application. Then, compile and run the classes to see how this application works.

2.include two private fields for customer type and subtotal entered by user.
Include single constructor that accepts the customer type and subtotal as parameters.
include get method that returns the subtotal as a double value and a get methods that calculate and return double values for the discount percent, discount amount and total.
Include get methods that return formatted string values for the subtotal, discount percent, discount amount and total. These methods should call the other get methods to get the values to be formatted.
Include a get method that returns a string that contains the full name for a customer type.

3. Modify the code in the InvoiceApp classes so it creates an Invoice object and uses its getInvoice method to get the formatted data fro invoice. That should simplify this class considerably. Then compile and test this class to make sure that this application works the way it did in step 1.

I'm pretty sure I got most of this. I can't figure out why my if and else if statements are wrong.

Validator

What I've come up with


Any help would be greatly appreciated as I am totally lost.
Thanks
9 years ago
I'm getting an error message "Missing method body or declare abstract". I'm not sure what this means. I'm making a test score application that is supposed to validate user input before continuing and I'm stuck on this part. Any help would be greatly appreciated.
9 years ago
I am trying to make a calculator that asks a user how many test scores will be entered, prompt the user to enter a score for the amount of scores to be entered, add the scores, and average the scores. If the user enters and invalid score, one that is above 100, the program should display an error message and not add the entry to the total number of scores or the added scores. I've gotten it to do everything I need until an invalid score is entered. Can anyone help me figure out how to tell it that if the score is over 100, do not add it to the score count or total. Here is what I have so far:



Thanks for any help figuring this out.
9 years ago
What's wrong with it is that it only takes 2 minutes, not 2 minutes and 120 more seconds. When you enter 800 for the file size and 1 for the speed, the answer should be 13 minutes and 20 seconds. This is my second week in this class and it's my first time taking IT classes. My background is in libraries and I'm horrible at math. Please bear with me. I'm trying really hard to understand this, but I can't figure out what I'm doing wrong. I think it has something to do with variables, and maybe my math.
9 years ago
What I'm trying to do is make the calculator tell me how many hours, minutes and seconds a download would take.
I took out the minutes = 60 and it stills runs the same.
9 years ago
I'm trying to make a calculator that will calculate download speed. This is what I have so far:


It gets the minutes right, but not the seconds. I know I need to calculate the total seconds, change that into minutes, then change that into hours and have the left over minutes and seconds displayed. Please help. Any help would be appreciated. Thank you.
9 years ago