64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Tayler_1

f = open("program0.4.txt", "w") done = input('Enter done for last name when finished') Last_Name = input("Enter Last Name: ") while Last_Name != 'done': First_Name = input("Enter First Name: ") Hrs_Wrkd =int(input("Enter Hours Worked: ")) Hrly_Wge = int(input("Enter Hourly Wage: ")) f.write('Last Name' + ' ' + 'First Name' + ' …

Member Avatar for Tayler_1
0
1K
Member Avatar for Triryche

I'm adding sound to a simple matching game. I have a sound for a flipping a card, a match, and no match. The problem I am having is when 2 cards are match, the flip and match sounds play simultaneous. So I tried calling Sleep at line 146, which gives …

Member Avatar for Triryche
0
328
Member Avatar for arifkutty

i am learning to build a shopping cart, the problem is every time i hit refresh it automatically increases the quantity for the added item, and even i close the window and run the file again i see my cart there means it does not destroy the session, i will …

Member Avatar for arifkutty
0
1K
Member Avatar for dany12

I need a way to store x y height and width in 4 jquery variables I was thinkink about the jquery ajax get but don't know how to achive this. This is my code <?php $result = $pdo->query('SELECT * FROM figures'); foreach ($result as $row=>$value) { echo '<li>'."My value is" …

Member Avatar for dany12
0
250
Member Avatar for jvasher

Sometime crashes, sometimes blank text, and sometimes works. I'm passing (I hope) a reference to TextDisplay::update() so It can draw all the text in keyBindMenu which is a vector of std::strings. I'm not sure if I'm handling this correctly. My understanding of this is very weak, but I think I …

Member Avatar for jvasher
0
142
Member Avatar for DarkLightning7

I'm attempting to write a substitution function but am having trouble figuring out how to fix the Error: operator and operand don't agree [circularity] operator domain: ''Z list * ''Z list * ''Z list operand: ''Z list * ''Z list * ''Z in expression: sub2 (x,y,hd z) Code: fun sub2(x, …

Member Avatar for DarkLightning7
0
1K
Member Avatar for refphlex

The second loop after opening the file again the second calculation for count isn't coming out correctly it seems to be doubled, comes out double the normal value when it shouldn't someone help please! #include <iostream> #include <iomanip> #include <string> #include <fstream> #include <cmath> using namespace std; int main () …

Member Avatar for refphlex
0
167
Member Avatar for ChicagoBears2012_1

I have a function that has takes in a string "secret" sec = set(secret) print sec output: set(['A', 'C', 'E', 'I', 'H', 'M', 'S', 'T']) Assuming I called the function sending in the string "Mathematics", how do I get an ordered set. I'm looking to get unique characters in the …

Member Avatar for snippsat
0
270
Member Avatar for Deegirl

Good morning, Can someone help me code this part of my assignment, it's been 24 hrs trying to do this. Place student names and final mark into two, one- dimensional arrays. One array will be of String (for names), the other will be an array for real numbers (for marks) …

Member Avatar for Deegirl
0
248
Member Avatar for urbanthistleuk

Hello, First of all apologies if this has been posted before, having trouble findin the answer, Let me start by inserting the code I have having the problem with, apologies if this isn't the correct way of doing things but I am still a newbie at php <?php include('config.inc'); mysql_select_db($dbname); …

Member Avatar for urbanthistleuk
0
264
Member Avatar for EddiRae

Hello, I am having an issue with the FindControl looking for a textbox in the Insert mode. I am doing this in the ItemCommand. I have a "Copy" button that is on the ReadOnly mode. I then change over to the Insert mode and start working with filling in some …

Member Avatar for EddiRae
0
334
Member Avatar for Ihteshamullhaq

i wantto builda GPA in C# and want to a condtion which chek the value from user input. chek it if it is greater then 70 show A GRADE greater then 50 show B GRADE like and print it and also set is this char type value to switch and …

Member Avatar for Ihteshamullhaq
0
182
Member Avatar for furalise

Hi What is the difference between using the **fstream** library to read a file....and using something like a procedure below using the FILE* object? There seems to be two ways to read a file? Thanks /* FEOF example */ #include <stdio.h> int main() { FILE * pFile; char buffer [100]; …

Member Avatar for furalise
0
845
Member Avatar for andrew mendonca

Here is the website for the assignment I am working on: http://view.samurajdata.se/rsc/5c1dd0b4/ Here is the website for my header file (MixedExpression.h): http://ideone.com/G9aC9D Here is the website for my library source file (MixedExpression.cpp): http://ideone.com/PfH8f0 Here is the website for my calculator client file (Calculator.cpp): http://ideone.com/4wGayu Here are the input lines: ( …

Member Avatar for Banfa
0
215
Member Avatar for wrathness

Good afternoon everyone. I made a project using Florian Leitner-Fischer's usb library. I can send data to the bus 100%, but when i read i get the recieve frame and then my application hangs for some reason. When i uncomment out "MsgBox(content)" in the event catcher, the program no longer …

Member Avatar for wrathness
0
232
Member Avatar for fx.eko

How do I connect from another machine to SQL Server 2008 R2 Express installed on Windows Server 2008? I've setup the network configuration to be enabled and the TCP port is set to 1433, but I still can not connect to an existing database on the server when creating ODBC …

Member Avatar for fx.eko
0
335
Member Avatar for KushMishra

Hi All, I am creating a dynamic GroupBox through C# and want to change only the header font and not all the fonts in that. GroupBox myGroupBox = new GroupBox(); myGroupBox.Header = mychk.Content.ToString(); myGroupBox.Content = myStack; Here, *myGroupBox.FontWeight* changes all the contents inside the *myGroupBox* but how to change only …

Member Avatar for KushMishra
1
2K
Member Avatar for hemanshurpatel

Dear friends, I am working on representing data in graphical view. Initialy i decide for column chart, in which each column represent a value associated with a variable. The strange thing is that values ranges from 1 to 100000 or ever more. Basically they are representations of types of data …

Member Avatar for diafol
0
150
Member Avatar for MrHardRock

Hey guys I had an assignment to recursively write the Towers of Hanoi then test it. I did not have too much of an issue getting the program written But I am not sure what the book means by test the efficiency do they want the number of moves my …

Member Avatar for stultuske
0
905
Member Avatar for iTechnnn

Hello, im having problem with my output =/ Everytime i run my program is not giving me the right output so, this is my assaigment. Consider a class that keeps track of the sales of an item. An object of this class will have the attributes: Number Sold Total Sales …

Member Avatar for stultuske
0
2K
Member Avatar for Edwin_2

<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>SYNTHESIS REACTIONS</title> </head> <body> <p> Chemistry synthesis reaction equations </p> <p>&nbsp;</p> <form name="form1" method="post" action="index.php"> <p> <label for="A"></label> <input type="text" name="A" id="A"> + <input type="text" name="B" id="B"> <label for="B"></label> </p> <p>NB: Case Sensitive - Use Real Names!</p> <p> <input type="submit" name="solve" id="solve" …

Member Avatar for GrazerC0de
0
219
Member Avatar for great_learner

Hi guys, I am completely new to objective c. I am trying to compile a very basic program of "hello world", but the problem is that gcc compiler can't figure out where my header files are. I wrote on cygwin bash shell: [CODE =c]$ gcc -lobjc hello.m -o hello[/CODE] and …

Member Avatar for spark_1
0
247
Member Avatar for nhrnjic6

I have a practise problem to write a function that takes 3 dim and dynamicly allocates 3d array with those values and then (PART THAT I DONT GET) : fills the 3-dimensional array with multiplication tables. What am I even supossed to do ?? Here's my code : int main() …

Member Avatar for tinstaafl
0
171
Member Avatar for mixelplik

How can I loop through a data field with a binary search, looking for multiple values? Please, I don't want to know another, more efficient way, I want to do it this way to understand the concepts. Also my data is indeed sorted before the call is made. The data …

Member Avatar for mixelplik
0
1K
Member Avatar for sirlink99

I am having a problem deleting nodes from my Binary search tree. What I have so far does part of what it is supposed to do. I read in an input (paragraph of text) to create the tree (organized via ASCII character values). I make it, then print out all …

Member Avatar for sirlink99
0
306
Member Avatar for lizzy2

Hi, I am working on a program that prompts the user for answers to a quiz. The answers can only be a, b, c or d and they are saved to an array which I later compare to my answer key array. Below is the method I have written to …

Member Avatar for lizzy2
0
1K
Member Avatar for whatthebobo

I have an assigment where I am to create a program to calculate BMI. I wrote the program and would like to have someone check it to see if there are any mistakes I need to correct. //Declare variables double weight, height, bmi = 0; //Prompt user for weight in …

0
114
Member Avatar for skyyadav

implement a generic fn mapf with prototype template<class Sequence c , class UnaryFunction) Sequence mapf(Sequence c , UnaryFunction f) for ex if c is a seq containing the seq (3,2,7,6,8) and f is the fn that returns twice it integer agument. then container returned by mafc(c,f) is a list containing …

Member Avatar for mike_2000_17
0
414
Member Avatar for Kleon

hi guys i am having this small issues with image slider, it shows in the broswer just one picture, than slider continues but it does not show the content of the other pictures(can not read them). i have 8 pictures in my Images folder in my project, but it reads …

Member Avatar for Kleon
0
269
Member Avatar for thomale

i am always finding this error. if you have an idea.please assist as soon as possible mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\validate_login.php on line 20 This is line with the problem as per text -editor(* $row = mysql_fetch_array($result);*) <?php // Grab User submitted information $email …

Member Avatar for broj1
0
455
Member Avatar for everton.retweets

Hi Everyone, I am trying to add a php post variable to one of my output error messages. The working error message is this - registerError( $hint, $hint, $error_title, ' + sign not required. International dialing code not required' ); What I would like to do is to display the …

Member Avatar for minitauros
0
362
Member Avatar for grafic.web

Hi, i applyed an CalendarExtender to my text box, this is the code : <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <asp:CalendarExtender ID="TextBox1_CalendarExtender" runat="server" Enabled="True" TargetControlID="TextBox1"> </asp:CalendarExtender> </div> </form> </body> </html> but when i run it, i get this …

Member Avatar for grafic.web
0
756
Member Avatar for sam.escott4

Hi, In an application im making, I need to square a decimal value in a text field to then use in other calculations later, but when the compiler squares the value it ignores the decimal points, treating 1.85^2 as 185^2 and returning 34225 rather than 3.4225. What am I doing …

Member Avatar for KenSquare
0
358
Member Avatar for razree

Hi all, I really need your help on this one. I have a MSSQL db table with two columns-ID and name. Each row in this two columns contains an unique ID and a name. Now I have a query that imports just a name in the listview (I don't want …

Member Avatar for razree
0
1K
Member Avatar for toniann.midori

Ive spent almost 4 hours messing with this code trying to figure out whats wrong...to no avail. I keep getting zero as the total in the displayTripCost function at the bottom, i dont know if i messed up the pointers or what when i called by reference.... Please help!!! //Toni-Ann …

Member Avatar for toniann.midori
0
357
Member Avatar for begueradj

Hello people, I declared a field in my table : [B]my_field VARCHAR(20)[/B], but I don't want it to contain any number: can you tell me how I can do that using a trigger or using a constraint ? Thank you in advance for any help

Member Avatar for mohamedsayed
0
211
Member Avatar for hmx7

class student_name: def __init__(self,student): self.student = student def student_name(self): print('Student Name: ', self.student) class Majors: def __init__(self,name1,name2): self.name1 = name1 self.name2 = name2 def major(self): pass def major2(self): print('Majors: ',self.name1, self.name2) class School: def __init__(self,school): self.school = school def school_name(self): print('School Name: ', self.school) class Student_Track: def __init__(self, School, student_name, …

Member Avatar for hmx7
0
170
Member Avatar for yaragalla_mural

Hi we have developed a web app. In the 1st html page based on the user interaction we are inserting some html into the page using javascript. when user moves to the 2nd page everything is fine. Now if user presses the back button then 1st html is displayed without …

Member Avatar for yaragalla_mural
0
648
Member Avatar for Kleon

I am creating registration Form, here's the code SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["RegConnectionString"].ConnectionString); con.Open(); string insCmd = "Insert into Registration(UserName, Password, EmailAdress, FullName, Country) vaues (@UserName, @Password, @EmailAddress, @FullName, @Country)"; SqlCommand insertUser = new SqlCommand(insCmd, con); insertUser.Parameters.AddWithValue("@Password", TextBoxPass.Text); insertUser.Parameters.AddWithValue("@EmailAddress",TextBoxEA.Text ); insertUser.Parameters.AddWithValue("@FullName",TextBoxFN.Text); insertUser.Parameters.AddWithValue("@Country", DropDownListCountry.SelectedItem.ToString()); try { insertUser.ExecuteNonQuery(); con.Close(); Response.Redirect("Login.aspx"); } catch …

Member Avatar for Kleon
0
130
Member Avatar for glez_b

I have a long list of data structured in the following way Date , Time, Temperature, Moisture, Accumulated precipitation 1/01/2011, 00:00, 23, 50, 2, 1/01/2011, 00:15, 22, 45, 1, 1/01/2011, 00:30, 20, 39, 0, 1/01/2011, 01:00, 25, 34, 0, 1/01/2011, 01:15, 23, 50, 0, . . . . 1/01/2011, 23:45, …

Member Avatar for glez_b
0
3K
Member Avatar for margaretbn

#include<stdio.h> int main(){ printf("hello world"); getch(); return 0; }

Member Avatar for Learner010
0
100
Member Avatar for Nines

how do i put a password, change password on my code because everytime i put it in, my program don't shows it it just jumping to my selection menu, and how do i delete informations that ive put on my program? this is my code. thank you in advance. [CODE] …

Member Avatar for kdevesh
0
4K
Member Avatar for pygeek

Hi, im new to this forum, im trying to make a text editor in python for my school, and its nearly finished, but whenever i save a text file then open it again it makes weird square symbols at the end of each line. Thanks in advance. And i didn't …

Member Avatar for pygeek
0
482
Member Avatar for Tewhano

Thanks to Muschops and Schol-R-LEA I finally got my program working. However I decided to change my file format and replace the underlines with spaces and separate the data with a comma. I open the file and use getline to grab the data but I have an error that reads: …

Member Avatar for Tewhano
0
3K
Member Avatar for james.lu.75491856

Traceback (most recent call last): File "C:\Users\James\Desktop\pvz.py", line 64, in <module> Pea((10,20)) File "C:\Users\James\Desktop\pvz.py", line 48, in __init__ Projectiles.add(self) File "C:\Python27\lib\site-packages\pygame\sprite.py", line 319, in add sprite.add_internal(self) File "C:\Python27\lib\site-packages\pygame\sprite.py", line 147, in add_internal self.__g[group] = 0 AttributeError: 'Pea' object has no attribute '_Sprite__g' import pygame,traceback width = 480 height = 640 …

Member Avatar for james.lu.75491856
0
569
Member Avatar for MONTS

import java.io.EOFException; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.OutputStream; import java.io.Serializable; import java.util.ArrayList; import java.util.Scanner; class Record implements Serializable { int roll; String name; public void setData() { Scanner scr=new Scanner(System.in); System.out.println("Enter Roll Number: "); roll=scr.nextInt(); System.out.println("Enter Name: "); name=scr.next(); writeData(); } public …

Member Avatar for Seldar
0
196
Member Avatar for xirosen

[CODE]Hi.... can everyone help me pls in how to make program using visual basic that can Preview documents before printing.. Help me pls.. thanks...[/CODE]

Member Avatar for babrad
0
2K
Member Avatar for Tewhano

I am trying to read from a text file and input the data into a struct. I have read through all the threads on this topic and have not been able to work out where I am going wrong. My text file is: > Plain_Egg 1.45 Bacon_and_Eggs 2.45 Muffin .99 …

Member Avatar for Tewhano
0
134
Member Avatar for gahhon

I am using SQL Database, In my example of my webpage, i got `FileUpload` & `Image` & `Button` Controls. i wanna to know any tutorials or tricks from code behind that able to upload the image file into my sql database and how to display the image in my Image …

Member Avatar for gahhon
0
217
Member Avatar for sreetha

sir please give me a code for finding bigrams in a given file. example .. if the word is I AM AN OLD MAN.. output should be in a list as [I AM] [AM OLD] [OLD MAN]. i have seen some programs but its giving bi grams of a word. …

Member Avatar for Gribouillis
0
114

The End.