Ok, before everyone gets mad at me for not looking around the board for these topics, I have, but they weren't my problem. My problem I am having is calling the Polynomial class. I know how to call classes in a different class, but this is a bit different. I also realize that this is a homework assignment, and I don't want anyone to do my assignment for me. This is just a step that I am confused about. In addition, I can't just call the Polynomial class because I need to add two polynomials, then in another case subtract, …

Member Avatar
Member Avatar
+0 forum 5

What I'm attempting to do is read a text document to pass in variables into an arraylist of shape objects that I will use to create shapes. I don't need any help with the actual drawing of the shapes, working with the arraylist, or the initial scanning setup. I thought about doing a while loop to read each word/int using the single whitespace in between as the delimiter. Where I get stuck is what exactly I should do with information I don't need. For example, I would test the line to see if it said start via an if statement. …

Member Avatar
Member Avatar
+0 forum 10

Okay, I feel like I busted something in my head because I can't figure out anything in Java anymore! I just confused the crap out of myself, and I can't seem to get back on the horse. What I'm trying to do is read from a text file to create a picture. Each picture has shapes, and it makes them dance. I'm using the DrawingPanel class to help create the circle. My driver class reads commands to create the pictures from the text document; I had my shape working just fine, but I messed with it and confused myself all …

Member Avatar
Member Avatar
+0 forum 3

I want to have a running total in my net profit column. The formula is Amount paid - paypal fees - write fees. Can I do this with out using a query? Here is a screen shot of my table. [ATTACH]18861[/ATTACH]

Member Avatar
+0 forum 0

First off, I know this is homework, and I don't expect anyone to do everything for me. Just a simple explanation is more than enough. The first project I am taking in a number in seconds that the user enters and converting it to hours, minutes, and seconds, but I get a scalar error. I get the expecting scalar type at line 38- if x >= 3600 and line 51 if x < 3600. Additionally, at line 45 - if ah < 60 I get illegal use of register; how would I put the remainder from ah and not get …

Member Avatar
Member Avatar
+0 forum 1

I have been working on a project in Intel assembly until I hit a bump and I can't seem to get myself out of a hole. I realize that this is homework, and I don't expect anyone to do my work for me. However, a little help would definitely be nice. I think I will be able to figure out the last procedure if PrintNumber gets figured out. However, I don't understand what to do for these: ;determine the size of binary value ;set index to size ;move '$' to storage array offset index ;append ascii bits to remainder Thanks …

Member Avatar
Member Avatar
+0 forum 2

I have been working on converting this C/C++ Program as an assignment for my x86 assembly class, and for the love of anything good I can't figure out what is wrong. It doesn't have a problem when assembling or linking, but when I run it, it gives me: CS:0576 IP: Of19 OP:65 63 69 66 79. I would appreciate any and all help. Thank you very much for your time. C/C++ Program: [CODE] int main () { // DATA SEGMENT char ch1 = 'A', ch2 = 'Z', ch3; int num1 = 10, num2 = 20, num3, largest; char name1[10] = …

Member Avatar
Member Avatar
+0 forum 2

I just started assembly programming, x86, and I am kind of getting the hang of it, but I am still far from becoming great at it. It's interesting to see what I do in Java from a different view. Anyways, for the life of me, I can't figure out what I am doing wrong. This is an assignment, and I don't expect to be handed my entire assignment, but I am running into all kinds of errors and would appreciate any help. I commented out a lot of it and am taking smaller steps. There is an example in the …

Member Avatar
Member Avatar
+0 forum 1

I made a program that stores a collection of CDs. This collection is entered in a BinarySearchTree and contains the Artist, Album, favorite song, track numbers, and cost of cd. The inorder traversal works to print everything in the tree, and the cdPrintGroup method prints all the Artists(aka groups), but when I try and insert or delete, I get nothing. Inserting doesn't work, and when I do the delete method from the BinarySearchTree class, it states I can't delete an empty tree. How can that be if the inorderTraversal method works? Thanks for your time. Driver: [CODE]import java.io.*; import java.util.*; …

Member Avatar
+0 forum 0

I have been working on this for a bit, and I have made some great strides. However, there are just a few things bugging me that I can't seem to figure out. This is an assignment, and I don't expect anyone to toss out an entire program for me. However, help would be greatly appreciate it. If you stopped by and helped, thank you for checking the post out and helping. If not, thanks for checking out the post; maybe it helped you. I am using a binary tree to sort through a file that has an artist, cd title, …

Member Avatar
Member Avatar
+0 forum 4

I searched for this topic first, because it is pretty popular, but I didn't find much to help. What I was instructed to do was convert a prefix expression to a postfix expression. I have to use a stack and a queue, which is different than many other threads about this topic. Another thing that is different is that my expressions are purely variables(ie +*A B / C D). I made a little progress on my own, and I don't want everyone to solve it for me, but help would be extremely appreciated. I am reading the expressions from a …

Member Avatar
Member Avatar
-1 forum 4

First, I want to thank you for helping if you did, if not, thanks for checking it anyway. Second, I have been working on this for awhile, but I only am getting baby steps towards my goal. I get this far and I get compile correctly, but when I run it I get: Exception in thread "main" java.lang.IllegalArgumentException: No enum const class project 2$Convert.bi at java.lang.Enum.valueOf<Enum.java:196> at project2$Convert.valueOf<project2.java:5> at project2.main<project2.java:49> Essentially, what I am trying to do is this: I have an input file has numbers like FFFFhex, 1010bin, 0013dec, 7777oct, and I want to convert it to decimal. I …

Member Avatar
Member Avatar
+1 forum 10

The End.