Search Results

Search: Posts Made By: totoro125
Forum: Programming 01-20-2015
2,129
Posted By totoro125
Python Concatenating 2 Lists
I am just trying to concatenate two lists together, but I am not sure what is wrong with my code, it won't run. Thank you for any help.

#!/usr/bin/python
# Takes two lists and returns a list that...
Forum: Programming 01-17-2015
2,121
Posted By totoro125
Java Wunderground
I am not sure if anyone here has experience in this, but I am working with web services and Json.

I am trying to obtain my current geographic information (city and state) by using the Weather...
Forum: Programming 12-13-2014
5,836
Posted By totoro125
okay, I have this so far: class...
okay, I have this so far:

class CashRegister(object):
def __init__(self, drawer):
self.drawer = self.formatMoney(drawer)
## Purchase function
def purchase(self, price,...
2,006
Posted By totoro125
I just realized it a little while after I posted...
I just realized it a little while after I posted the question. Sorry, I forgot to copy that file.
2,006
Posted By totoro125
I am getting an error again, I trying to see how...
I am getting an error again, I trying to see how long it takes for different inputs so I compiled both.

$ gcc -o sort1 sort1.c quicksort.c
$ time sort1 < ins.n1000 > /dev/null
-bash: ins.n1000:...
Forum: Programming 12-07-2014
5,836
Posted By totoro125
Thank you! That helps a lot, but is how I started...
Thank you! That helps a lot, but is how I started correct? And did I do the syntax correctly?
2,006
Posted By totoro125
Thank you guys! It worked!
Thank you guys! It worked!
2,006
Posted By totoro125
Time Utility
I am looking at some practice problems from a book involving the time utility and I am a little confused on what to do. Here is what it is telling me to do:

-Compile your sort:
gcc -o sort1...
Forum: Programming 12-06-2014
5,836
Posted By totoro125
Thanks guys for all your suggestions. I decided...
Thanks guys for all your suggestions. I decided to use Python and I am really stuck. I started to create classes but I am not sure if I even have to. I am not that great in programming and I want to...
Forum: Programming 11-30-2014
5,836
Posted By totoro125
Cash Register Change Program
I just need some suggestions on how to start this program I wanted to work on for practice.
I want to make a cash register program that gives change and only works with $1's, $5's, $10's, and $20's...
5,290
Posted By totoro125
Sorry, to bring this up again, but I just thought...
Sorry, to bring this up again, but I just thought of something that I can add to this for practice. After the user selects the team and the players show up, how would I allow the user to select one...
Forum: Programming 11-23-2014
2,375
Posted By totoro125
Oh, thank you! For qsort, if I wanted to check...
Oh, thank you!
For qsort, if I wanted to check that the algorithm was implemented correctly, what assertions can I put into the code?
Forum: Programming 11-23-2014
956
Posted By totoro125
So for the first one, I think I figured out the...
So for the first one, I think I figured out the problem. It needs a pointer of the specified type.

But I am still stuck on the other two.
Forum: Programming 11-23-2014
956
Posted By totoro125
C Formatting Errors
I am compiling little codes and I am receiving formatting errors. Can anyone tell me the problems and how would I fix it?

1.
int main()
{
int n;
printf( "Enter an integer => "...
Forum: Programming 11-22-2014
2,375
Posted By totoro125
Qsort Error
I am looking at a small C program that uses qsort to sort an array of strings and an error occurs when it passes qsort a function to compare integers instead of strings. Why can't the compiler catch...
Forum: Programming 11-16-2014
1,666
Posted By totoro125
Java Abstract Classes
Can anyone tell me if this is correct when creating classes in Java?

public abstract class Animal
{
public class Point
{
public int x,y;
}
public class Animal
{
...
Forum: Programming 11-14-2014
3,463
Posted By totoro125
This is what I have so far: public abstract...
This is what I have so far:

public abstract class Animal
{
public class Point
{
public int x,y;
}
public class Animal
{
protected Point loc;
protected...
Forum: Programming 11-13-2014
1,532
Posted By totoro125
Thank you! You have been such a great help to me...
Thank you! You have been such a great help to me lately ^^
Forum: Programming 11-12-2014
1,532
Posted By totoro125
C: CSV implementation
I have this code from a programming book:

#include <stdio.h>
#include <string.h>

char buf[200]; /* input line buffer */
char* field[20]; /* fields */
char* unquote( char* );...
Forum: Programming 11-12-2014
3,463
Posted By totoro125
Okay, I'll just create the classes. What does it...
Okay, I'll just create the classes. What does it mean by: create an Animal abstract class with a protected attribute of type Point (the location on the map) and a private String attribute (the animal...
Forum: Programming 11-11-2014
3,463
Posted By totoro125
Java Cat and Mouse Game
I am having problems with another exercise from a website to learn Java.
I am supposed to create classes for a game called cat and mouse.

Basically, there is a grid 5x5 (representing the island)...
Forum: Programming 11-09-2014
5,972
Posted By totoro125
Oh, thank you so much! That really helps me a...
Oh, thank you so much! That really helps me a lot. :)
Forum: Programming 11-09-2014
5,972
Posted By totoro125
Java Date Class
I am looking at a website to learn Java and this is one of the exercises.

Write a program that will show different time and date information based on what number you send it. The codes are:

0 -...
Forum: Programming 11-08-2014
3,371
Posted By totoro125
Thank you again! I did it like this: public...
Thank you again! I did it like this:
public class prob1
{

public static void main( String[] args )
{
String ArgumentFromCommandLine = args[0];

int i;
int n = 100;
...
Forum: Programming 11-07-2014
3,371
Posted By totoro125
Oh thank you! It works! The site I am looking...
Oh thank you! It works!
The site I am looking at is telling me to do it a different way.
They want you to be able to type:

java Hundred Gertrude

in the command line and see...
Showing results 1 to 25 of 60

 
All times are GMT -4. The time now is 10:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy