43,549 Solved Topics
Remove Filter ![]() | |
Hi,everyone I have to write a calculator which can + , - , * , / , + = ,- = , * = , /= ,++,-- do this operations with operator overloading [code]#include<iostream> using namespace std; class complexNumber { private: double realPart; double imaginaryPart; public: complexNumber(){realPart=0.0; imaginaryPart=0.0;} ~complexNumber(){cout<<"Destructor do … Software Development c++ | |
Hi, I have a file named demo.py.The contents of the file are: [code] class a: name="swapna" def show(self): print a.name s=a() s.show() [/code] When I execute the file it gives me the following error: "<bound method a.show of <__main__.a instance at 0x009D58C8>>" Kindly advice on how to proceed with it. Software Development python | |
THIS WINDCHILL TABLE PROGRAM IS RUNNING, BUT THE NUMBERS IS STILL NOT LINING UP STRAIGHT..WHY, CAN YOU PLEASE HELP ME..THANKS HERE IS THE PROGRAM BEFORE I RUN IT.. [CODE]def windchill( vel, temp): wc = 35.74 + .6215*temp - 35.75*(vel**.16) + .4275*temp*(vel**.16) return wc def main(): print (" __ __ __ … Software Development python | |
Hi all, How to create a model less dialog box using python 2.3 tkinter? Thanks in advance, Bhupendra | |
Hello, good afternoon. Im a newby user writing my first shell script, and i trying to make it run with the cron utility. If i run this code manually, the code was sucefull runned, but, when i put in this task in the crontab, the mail dont cant sended. When … Software Development email shell-scripting | |
How can i do full screen? How can i get size of monitor? Is that possible? Thanks Software Development python | |
i have a xml document from which i must get the following things, [B]Riigi_nimi[/B], [B]pindala[/B] of it and [B]rahvaarv [/B] with the [B]riigi_nimi[/B] and [B]pindala[/B] i have no problems, but i can't get the program to print [B]rahvaarv[/B], i just can't find a way to copy it into a new … | |
# sum.py # tpm # A program that accepts an indeterminate (any number) of integers entered by # the user, calculates and their sum, using loop [CODE]from math import * def calc_sum(): n = input("Enter any number: ") sum = 0.0 for i in range(n): x = input("Enter a number … Software Development python | |
# class.py # tpm # A program to calculate the volume and surface area of a sphere from its # radius given as input. [CODE]from math import * class Sphere: def _init_(self, radius): self.radius = radius def getRadius(self): return self.radius def surfaceArea(self): self.area = 4.0 * pi * self.radius ** … Software Development python | |
i have the following code, however, the table that is created always starts at the begining of the document. so none of the text written beforehand can be seen. i also dont know how to write things after the table. [CODE]Private Sub wrd2() Dim c As Long Dim wrdApp As … Software Development visual-basic | |
Hi all, i am new to java field, can anyone help me out to create a data base for security or Guard to enter the details of the employee and his phone number and also to replace incase his idcard is broken?? help me out using Java/JSP thanks in advance … | |
1:) Please, how can i make Visual Basic 6 open a HTML file (with Iexplore, let's say), or one MP3 (with Media Player instead of Winamp, let's say), when i click a button? It is possible? I mean, for the HTML, i need the default program to open the file, … Software Development visual-basic | |
Hey all, Would anyone be able to help me out with some code to count how many characters there are in a string e.g. A label disaplys the number of characters that the user has typed into a memo. Katrix36 Software Development pascal | |
I need this script: [URL="http://www.jscode.com/js_auto_bookmark.shtml"]http://www.jscode.com/js_auto_bookmark.shtml[/URL] i just dont know how to make the link as a picture, insted of "bookmark us!" text/ any help with this ?:eek: Software Development java ![]() | |
I have an assignment dealing with algorithms and Big O notation. I am a little confusded about this notation stuff. Here are a few of the questions on the assignment: What is the O-notation for the following code? [code]cin >> N; for (int count = 1; count <= N; count++) … Software Development c++ | |
Hello everybody, I am having a great problem in my class project. I have to play multiple files in different output ports of the sound card same time. Explanation: Suppose i hav 1 speaker and 1 headphone connected to my pc. Now i hav to play 2 files in such … Software Development java | |
[code]import posix import string uid = `posix.getuid()` passwd = open('/etc/passwd') for line in passwd.readlines(): rec = string.splitfields(line, ':') if rec[2] == uid: print 'hello', rec[0], print 'mind if we call you bruce?' break else: print "I can't find you in /etc/passwd" :) [/code] Software Development python | |
I am having trouble drawing on the form, PLS help! Software Development vb.net | |
hi i just started programming so im very new to all this, i am writing a code and i am comparing a string in a struct to a string. one of them as you can tell is an array of strings, im not really sure if im breaking any rules … Software Development c | |
Hi all, I'm trying to create an onscreen keyboard for Microsoft word. At the moment, my onscreen keyboard can send any keystroke to microsoft word as long as the document is called "Document1". Is it possible to send a keystroke to any microsoft document of any title not just "Document1"? … Software Development pascal | |
THE WINDCHILL TABLE IS RUNNING, BUT THE NUMBER IS NOT LINNING UP STRAIGHT. CAN YOU PLEASE HELP ME, THANKS [CODE]def windchill( vel, temp): wc = 35.74 + .6215*temp - 35.75*(vel**.16) + .4275*temp*(vel**.16) return wc def main(): print (" __ __ __ Temperature \n") print ("Speed \n") print (" 1 -20 … Software Development python | |
At the beginning I found Python was very good at its data structures , concise code, and some strong aspects ! but it's very difficult to solve a program with higher speed than C++ and java ! I'm very confused ! could you tell me why do you choose Python … Software Development python visual-basic | |
i have a text box, which the user may enter cash for sales. however, it doesnt seem to recognise anything after a decimal point. for example, if the product costs £300.07, it will only calculate the change ( if any) or display an error message if the tender is 300 … Software Development display visual-basic | |
Hello to all, I am trying to create a script that will go through certain directorys in Windows and pull out the files I stated by extentions. Which will then later copy to a location either on the local machine or an external HD. Any assistence will be greatly appricated. … Software Development python | |
Hi, I'm trying to write a class that uses a vector, but I can't get the right syntax in the Staff constructor. Can anyone help? public: Staff(); Staff (???????????); private: vector<Employee> members; Software Development c++ | |
import urllib f = urllib.urlopen("http://www.mahiti.in") word = "Software" for line in f: if word in line: print line :cheesy: Software Development python | |
I alredy know hoe to send e-mail by python but is possible to receive e-mail?? thanks for all post Software Development first-post python | |
Hi All, Well where I work they are having a problem and I had a solution. Well I was reading on this [URL]http://www.c-sharpcorner.com/UploadFile/mgold/HowtoOepnandReadanExcelSpreadsheetinaListViewin.NET11282005034134AM/HowtoOepnandReadanExcelSpreadsheetinaListViewin.NET.aspx?ArticleID=45ca62cf-fb3e-4f0b-b9a4-031b641aae3c[/URL] Well what it does is pull a named range, sticks the data in an array, my software does it's thing, then puts the changed data back into … Software Development hard-drive microsoft microsoft-office sql windows-server | |
[code] # windchill.py # tpm # A program that prints a nicely formatted table of windchill values. from math import * def windchill(t, v): c = 35.74 + (0.6215 * t) - (35.75 * v ** .16) + (.4275 * t * v ** .16) return c def main(): print … Software Development python | |
def windchill(temp, vel): wc = 35.74 + .6215*temp - (35.75*vel**.16 + .4275*temp*vel**.16) return wc def main(): print (" __ __ __Temp /n") print (" Speed /n") print ("-20 70 10 0 10 20 30 40 50 60 ") for x in range (5,55,5): print x for y in range (-20,70,10): … Software Development python | |
I WRITTEN THIS PROGRAMM IN 2 WAYS(RE-WROTE IT OVER AND OVER), AND ITS STILL NOT RUNNING CORRECTLY. IS THERE OTHER WAYS THAT IS PROGRAM CAN BE WRITTEN. I AM SO FRUSTRATED, PLEASE HELP ME. THANK YOU. 1st way: # windchill.py # tpm # A program that prints a nicely formatted … Software Development python | |
Hello everyone, I am having trouble getting my Javadoc to work. It runs but it doesn't show anything in the HTML file that it creates. BTW I am using java 1.5.0_6 and I am using the latest version of Eclipse. I don't know why it didn't work, and I was … Software Development java | |
Hi, I'm trying to compare elements in two different vectors. I wrote this: if (a[i] = b[j]) same = true; and the compiler said this about the first line: assignment of read-only location What does "assignment of read-only location" mean? Thanks. Software Development c | |
How do you reverse a linked list using recursion, and return it as a string? String backwards(IntNode head): Create and return a string containing the values in the input list, separated by commas, in reverse order. The last number should not be followed by a comma. Spacing within the string … Software Development java linked-list | |
I don't know if I read the book right but my array is not working on my months .My instructions is this assignment uses an array of strings: write a C program that asks the user for the month, day, and year read in the month, day and year (as … Software Development c++ | |
I am fairly familiar with C, but new to Python. Does Python have something like the handy C conditional expression? For example: [code]// C conditional expression x = a ? b : c; // if a is true then x = b else x = c // here used to … Software Development python | |
[CODE]# tpm.py # Take two inputs, age and years of citizenship, and returns eligibility for # senator and representative. from graphics import * def main(): win = GraphWin('Eligibility' , 400,400) win.setCoords(0.0,0.0, 4.0, 4.0) Text(Point(1, 3.0), 'Age').draw(win) Text(Point(1, 2.0), 'Years Citizen').draw(win) agebox = Entry(Point(2, 3.0), 10) agebox.draw(win) citizenshipbox = Entry(Point(2, 2.0), … Software Development python | |
Ok i am having a little trouble trying to figure out how to pull the x-cordinate from p1 and p2 so that i can use it later in the code to build a door. # This is a program to build a house in five clicks from graphics import * … Software Development python | |
# tpm.py # A program that accepts the total amount of purchase, calculates the # appropriate discount, and displays the discount and the purchase after # discount. from math import * def main(): cost = get_cost() discount = get_discount() % = calc_percent(discount) final cost = get_final_cost cost_percent = cost_discount(cost, discount) … Software Development python | |
Hi, I've got a small program, that would be really useful if it could stay on top of other windows programs, i don't think there is a method for that in Tkinter, if anyone has any experience or ideas on this topic, please let me know thanks | |
Hello, I am one of those new assignment people, BUT I have tried to resolve this for a while now. Cant find much on google or other C++ sites. I am trying to compare string lengths of 3 words and then display them in order of length. My code is … | |
Ive been working on this assignment for ages now and its almost working.. well its working but since my output isnt right there must be something wrong lol. problem... I have to select an object to hit a ball.. the distance the ball travels is done using rand according to … Software Development c++ | |
I am having a huge problem with writing this program. Every time I ask the teacher for help she is too busy helping someone else. so she just tell me one thing and runs off to the next person without checking if it worked and what other help I might … | |
Hi guys, can anybody tell me how to add a log file??? when the user finishes using the application I need, the info that is recorded in the textbox to be saved in a log file, on the desktop. :rolleyes: Software Development visual-basic | |
I've heard the word "Literal" many times in Python But I don't understand it ! what does this mean ? Thanks ! :rolleyes: Software Development python | |
[code] #include <iostream> #include <string> #include "scanner.h" using namespace std; void program(string &sym); void body(string &sym); void stmt(string &sym); string sym; int main() { openfile(); sym = getsym(); program(sym); return 0; } void program(string &sym) { stmt(sym); //cout << sym; if(sym!="$") { cout << "Parser failed" << endl; } else … Software Development c++ | |
I need to validate the numbers 1-16 within the given array. Any numbers that are duplicate or are outside of the range need to be outputted. While if all numbers 1-16 are inputted only once then the boolean value is true. The numbers for the array theSquare are inputted previous … Software Development c++ | |
I need to validate the numbers 1-16 within the given array. Any numbers that are duplicate or are outside of the range need to be outputted. While if all numbers 1-16 are inputted only once then the boolean value is true. The numbers for the array theSquare are inputted previous … Software Development java | |
[U]what i want it to do : [/U] enter a barcode search grid if [I]barcode exists [/I] then increase Quantity by 1, recalculate subtotal, set vIndex to last row. if [I]barcode does not exist[/I] then search database for data, insert data ( getProduct, currently working) [U]current code[/U] [CODE]Private Sub searchItems() … Software Development visual-basic |
The End.