Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~4K People Reached
Favorite Forums
Favorite Tags
Member Avatar for jrp370

hey everyone im making a program that takes a number (n) from the user and then decides if it is prime or not and prints that decision to the screen [CODE] from math import * def main(): n=eval(input("please enter the number you wish to check:")) n=abs(n) if n < 2: …

Member Avatar for vegaseat
0
264
Member Avatar for jrp370

when I'm running the code everything works fine, it doesnt allow you enter the same name twice but if I shut it down and then start the code again it will let me add the same name again without throwing the error message. does anyone know I could change my …

Member Avatar for d5e5
0
113
Member Avatar for jrp370

every time i try to run my program (driver) is receive the following error message, arithmetic.pm did not return a true value at ./driver line 9, begin failed--compilation aborted at ./driver line 9 can anyone help me sort this out? thank you very much [CODE]#!/usr/bin/perl -w #Driver #program by James …

Member Avatar for jrp370
0
156
Member Avatar for jrp370

i have the code for a simple mail transfer protocol but when i go to compile it in eclipse i get an error along the lines of cant find "main" class, program will now terminate, ive attached the code and would love it if someone could take a look and …

Member Avatar for jrp370
0
112
Member Avatar for jrp370

i have a few .c files, pro3.c is the only file that complies without a problem however when i go to compile the other ones i get a error message: warning useless storage class specifier in empty declaration, i was hoping someone could tell/show me what i am doing wrong. …

Member Avatar for Narue
0
399
Member Avatar for jrp370

my problem comes up with the code is creating an envelope it keeps saying that envelope can not be resolved to a variable any idea on how to fix this? [CODE]import java.io.*; import java.net.*; import java.awt.*; import java.awt.event.*; /* $Id: MailClient.java,v 1.7 1999/07/22 12:07:30 kangasha Exp $ */ * A …

Member Avatar for Ezzaral
0
191
Member Avatar for jrp370

so i know how to add the numbers in a list recursively [CODE] def ListSum(list): if list = []: return 0 else: return list[0] + ListSum(list[1:]) [/CODE] but how would i go about subtracting a list from a list using recursion? does anyone know how/ where i could go to …

Member Avatar for TrustyTony
0
1K
Member Avatar for jrp370

ok so i really dont understand this whole recursive stuff and i need some help on a simple program. the problem is to write and test a recursive function max to find the largest number in a list. here is a non recursive function that ive made, [code] def Max(li): …

Member Avatar for Gribouillis
0
2K
Member Avatar for jrp370

im trying to create a function that does the same thing as the built in list opperation for index with out using the built in command for it. what i mean is i cant have a list lets say myList=[1,2,3,4,5] i then cant simply go mylist.index(3) any idea on how …

Member Avatar for TrustyTony
0
106
Member Avatar for jrp370

im trying to edit this class so it takes a letter grade instead of a number to find the gpa but im at a total loss any ideas? [code]class Student: def __init__(self, name, hours, qpoints): self.name = name self.hours = float(hours) self.qpoints = float(qpoints) def getName(self,name): #name=input("what is the students …

0
62
Member Avatar for jrp370

i have this code to simulated a walk going either forwards or backwards amd i need to modify it so that it can go either up, down, left or right. only problem is im stuck can you offer any advice? thanks [code] import random filename="walk1.txt" def randWalk(n): steps = 0 …

Member Avatar for group256
0
93