Search Results

Showing results 1 to 34 of 34
Search took 0.01 seconds.
Search: Posts Made By: babutche
Forum: Python Jan 12th, 2007
Replies: 6
Solved: Student GPA
Views: 2,035
Posted By babutche
This is the solved version of my GPA student program:

import string
import math
class Student:
def __init__(self, name, hours, qpoints):
self.name = name
self.hours =...
Forum: Python Jan 12th, 2007
Replies: 6
Solved: Student GPA
Views: 2,035
Posted By babutche
Woooee,

Yes, that is exactly what I needed to do.! I wanted to add my credits and also my (credits * gradepoint). I also needed to indent -- stu.addGrade(grade, credits).

Thanks alot!!!
Forum: Python Jan 12th, 2007
Replies: 6
Solved: Student GPA
Views: 2,035
Posted By babutche
Thank you all for helping. I have finally figured it out with your help and of course a few more mistakes of my own!
Forum: Python Jan 11th, 2007
Replies: 6
Solved: Student GPA
Views: 2,035
Posted By babutche
Hi,

I am trying to average student GPA. I thought I had this problem solved but then I ran it and the GPA did not come out correct. Can anyone give any suggestions?



import string...
Forum: Python Jan 8th, 2007
Replies: 3
Views: 1,929
Posted By babutche
Thank You for your help. I had tried to put another "try, except" statement in my program but I didn't do it right. I never really thought about the "int(grade_string)".

Right now I do not...
Forum: Python Jan 7th, 2007
Replies: 4
Solved: Sorting a File
Views: 1,739
Posted By babutche
Thank you all very much for your input!! I will have to study this and see if I can figure out exactly what is going on (so I know what I am doing).

Now I see that one of my major problems was...
Forum: Python Jan 7th, 2007
Replies: 3
Views: 1,929
Posted By babutche
Hi,

I did get the problem fixed with my "break" not working properly but now my ValueError will not work properly. If you enter a number that is not a floating number it should create a value...
Forum: Python Jan 7th, 2007
Replies: 2
Views: 997
Posted By babutche
Forum: Python Jan 7th, 2007
Replies: 2
Views: 997
Posted By babutche
I am having a problem getting my "break" to work correctly in this program. Can anyone help me see what I am doing wrong?

This is my program:

import string
import math
class Student:
...
Forum: Python Jan 6th, 2007
Replies: 4
Solved: Sorting a File
Views: 1,739
Posted By babutche
Hi,

I am trying to extend my "Student with the best GPA" program so that it allows the user to sort a file of students based on gpa, name, or credits. The program needs to prompt for the input...
Forum: Python Jan 2nd, 2007
Replies: 5
Views: 2,517
Posted By babutche
Forum: Python Jan 2nd, 2007
Replies: 5
Views: 2,517
Posted By babutche
Thanks for your input!

I have revised my program and this is how it looks:

cs = {'indiana': 'indianapolis', 'ohio': 'columbus', 'mississippi': 'jackson',
'arizona': 'phoenix',...
Forum: Python Jan 1st, 2007
Replies: 5
Views: 2,517
Posted By babutche
Hello,

I am trying to create a program that uses a dictionary to associate American states with their capitals. It has an interactive loop that exits when the user enters "quit". The user types...
Forum: Python Jan 1st, 2007
Replies: 4
Solved: Help Please!
Views: 1,064
Posted By babutche
Thank You Vrey Much!! That is exactly what I wanted to do.

I could not figure out why my program was printing an extra print statement but with all of your help I finally see what is wrong with...
Forum: Python Dec 31st, 2006
Replies: 4
Solved: Help Please!
Views: 1,064
Posted By babutche
Hi,
I cannot figure out why my fib problem is giving me the output below. I just want it to print when the fib is called and the value of n, when it returns and with what value of n, and the return...
Forum: Python Dec 30th, 2006
Replies: 8
Solved: Newbie Help
Views: 1,598
Posted By babutche
I can get this to print out the fib #. But I don't know how to print out each call/return. Maybe you can guide me in the right direction. Even though this problem has caused me some grief it, has...
Forum: Python Dec 29th, 2006
Replies: 8
Solved: Newbie Help
Views: 1,598
Posted By babutche
Hi,



It is suppose to show each time the recursion is called and returned in the recursive program. I really don't understand it myself because I am having a hard time understanding recursion....
Forum: Python Dec 29th, 2006
Replies: 8
Solved: Newbie Help
Views: 1,598
Posted By babutche
Hi,

See post below please. Sorry I forgot code tags.
Forum: Python Dec 29th, 2006
Replies: 8
Solved: Newbie Help
Views: 1,598
Posted By babutche
Hi,

I am trying to figure out how to print tracing information for Fibonacci numbers.

output =

Computing fib(4)

Leaving fib(4) returning 3
Forum: Python Dec 27th, 2006
Replies: 3
Solved: Ext Class
Views: 1,107
Posted By babutche
Actuall, I never thought about using a dictionary but that makes sense! I will probably not implement this into my program since this is an assignment (and it is not my work) but these answers do...
Forum: Python Dec 26th, 2006
Replies: 2
Views: 1,629
Posted By babutche
The infile and the outfile were indented into the loop. I emailed my instructor and he figured out what was going wrong. Thanks anyway.

Problem solved so far.
Forum: Python Dec 26th, 2006
Replies: 2
Views: 1,629
Posted By babutche
Hi Everyone!

I need a little help with this problem. I am trying to import a class -- Student with object makestudent but I keep getting this error:





This program sorts student...
Forum: Python Dec 25th, 2006
Replies: 3
Views: 1,918
Posted By babutche
Thank You all very much for your input. Have a Merry christmas!!!
Forum: Python Dec 24th, 2006
Replies: 3
Views: 1,918
Posted By babutche
Forum: Python Dec 24th, 2006
Replies: 3
Solved: Ext Class
Views: 1,107
Posted By babutche
This is what I have come up with but it seems like there should be a more simple way of programming it.

import string
import math

class Student:
def __init__(self, name, hours,...
Forum: Python Dec 24th, 2006
Replies: 3
Views: 1,918
Posted By babutche
Help!

I am trying to enter characters (for classroom grades) into my program and convert them to numeric values so I can get gradepoint averages. I can't figure out how to convert A-, A+, B-, B+,...
Forum: Python Dec 23rd, 2006
Replies: 1
Views: 1,394
Posted By babutche
HI,

I HAVE BEEN TRYING TO FIGURE THIS PROBLEM OUT ALL DAY LONG. CAN SOMEONE PLEASE HELP ME ALONG? I WILL TELL YOU THE PROBLEM AND THEN SHOW YOU WHAT I HAVE SO FAR. I AM TRYING TO MODIFY THIS...
Forum: Python Dec 18th, 2006
Replies: 7
Views: 2,159
Posted By babutche
Thank You Very Much For All Of Your Help!! Between This Site And The Tutorials I Have Read I Am Starting To Understand Classes A Little Bit Beter.
Forum: Python Dec 17th, 2006
Replies: 7
Views: 2,159
Posted By babutche
I AM HAVING A HARD TIME UNDERSTANDING CLASSES.
THANK YOU!!
Forum: Python Dec 17th, 2006
Replies: 7
Views: 2,159
Posted By babutche
O.K. I read the link on code tags and now I understand! Thanks!
Forum: Python Dec 17th, 2006
Replies: 7
Views: 2,159
Posted By babutche
I am using IDLE. I did not know exactlywhat what you meant by code tags. I'm sorry I copied the program wrong earlier.

import string
import math
class Student:
def __init__(self,...
Forum: Python Dec 17th, 2006
Replies: 7
Views: 2,159
Posted By babutche
O.K. This is what I have changed in my program (http://www.daniweb.com/techtalkforums/thread65045.html#):

import string
import math
class Student:
def __init__(self, name, hours, qpoints):...
Forum: Python Dec 17th, 2006
Replies: 2
Views: 2,262
Posted By babutche
O.K. This is what I have changed in my program:

import string
import math
class Student:
def __init__(self, name, hours, qpoints):
self.name = name
self.hours =...
Forum: Python Dec 16th, 2006
Replies: 2
Views: 2,262
Posted By babutche
Hi,

I need help please. At first I was understanding the Python language but I got lost somewhere along the line. Can someone please guide me through implementing an addLetterGrade method? I am...
Showing results 1 to 34 of 34

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC