132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for brandon66

Problem: How many times must I will I need to throw two dice to get three 2’s, three 3’s, three 4’s, three 5’s, three 6’s, three 7’s, three 8’s, three 9’s, three 10’s, three 11’s and three 12’s. Write a program that will roll two dice over and over until …

Software Development vb.net
Member Avatar for Reverend Jim
0
210
Member Avatar for mical700

I am trying to print: 0 1 1 2 2 4 3 8 4 16 5 32 6 64 7 128 8 256 9 512 10 1024 11 2048 12 4096 13 8192 14 16384 15 32768 16 65536 17 131072 18 262144 19 524288 20 1048576 21 2097152 22 …

Software Development c c# c++ motherboards-cpu-ram
Member Avatar for mical700
0
395
Member Avatar for paku_dnj

How to read a specific value from a text file and then save the value in another text file. Example: in data.txt file there is some values. Item Name : m-01 Item Brand : One Man Item size : XXL Item Price : 1000 Item vat : 15% these are …

Software Development file-system java
Member Avatar for paku_dnj
0
486
Member Avatar for Violet_82

HI all, I was wondering if anybody can help me to understand this exercise: "A small airline has just purchased a computer for its new automated reservation system. Write an application to assign seas on each flight of the airline's only plane (capacity: 10 seats). Your application should display the …

Software Development java java-swing
Member Avatar for Violet_82
0
7K
Member Avatar for Shania_01

Hello, does anyone know how i can draw a small handle (square) on the edge of the circle at each quadrant( for e.g at the north,east,west and south quadrants) I used general path to draw the circle, now I'm having difficulties to draw the handles. Here is my code: //class1 …

Software Development java java-swing
Member Avatar for gusano79
0
226
Member Avatar for Robert Storm

The Class will create a program to store the name and the grid position of 6 common minibeasts. The Students from Calibre Academy will write a program to store the position of each common minibeast. The Software will. Allow one of six minibeasts to be selected from a menu. Enter …

Software Development visual-basic
Member Avatar for Ancient Dragon
0
208
Member Avatar for vaironl

Hello Everyone, I understand this is a basic problem, with a simple solution, but I cannot find a way to fix it. I'm trying to add a Jpanel to a JFrame and when I do the following. g.drawString("HELLO", 500, 0); The string is not seen on screen now if I …

Software Development display java java-swing
Member Avatar for vaironl
0
1K
Member Avatar for fedaa91

hi i am trying to read a file and save to array i wrote one and it worked accept it not reading ot line by line, so i wrote another one but i am trying to make it as function when i make function call i get this error read.c:32:13: …

Software Development c
Member Avatar for fedaa91
0
205
Member Avatar for hwoarang69

i created a game in applet and i want to put it on a site. the problem is that my games has alot of classes. how can i use applet tag to up it online? java.php <html> ... <applet code = "Main.class" width = 900 height = 400> </applet> ... …

Software Development html-css java
Member Avatar for hwoarang69
0
190
Member Avatar for Asmaa_2

I'm asked to Write a program to create a calendar and I have a problem with defining the first day in every month whether it's satureday or sunday, etc can anyone give me a hint to fix this BTW, I'm not allowed to use functions :/ I'm disappointed about my …

Software Development c++
Member Avatar for gusano79
0
391
Member Avatar for fedaa91

hi i have this small problem in my code which is that when i run the code it enters to the wrong condition i mean in the if clause where i enter "download" it executes the body of the upload even though the first if clause condition meet and the …

Software Development c
Member Avatar for fedaa91
0
153
Member Avatar for cproger

I type in <graphics.h> and "graphics.h" for terminal on my mac and it says fatal error: 'graphics.h' file not found Please help me.

Software Development c
Member Avatar for cproger
0
159
Member Avatar for rory.duncan.14

Thanks in advance for anyone who can a)understand this, and b) give any help in my struggles. We are coding in C++, have half a circle, starting a a certain point (e.g. (0,-310)) and finishing at a certain point (0,310). We have the radius, and we have the equation X^2 …

Software Development c c# c++
Member Avatar for Ancient Dragon
0
192
Member Avatar for greatman05

This is homework. I have been tasked with creating a new dialog in WinMerge that provides line stats for every open file. It should show total lines, lines modified and lines deleted. I am working on implementing the total lines part. I have already created the dialog, a class for …

Software Development c++ oop
Member Avatar for Ancient Dragon
0
267
Member Avatar for craig.durnin.1

Hi there. I am trying to create C++ code that allows User Input in selecting a variety of fields, then it will calculate many different angles and show the users the results, as well as a graph. However, it has been suggested to us by our lecturer that it may …

Software Development c++
Member Avatar for Ancient Dragon
0
2K
Member Avatar for tony75

Hi I’m working with an old python exercise is to implement the caesar cipher, a simple encryption technique. Description of the methods can be found on the web (wikipedia) http://en.wikipedia.org/wiki/Caeser_cipher and the additional document. In short, each letter is replaced by another letter (like a is replaced by b, b …

Software Development encryption python
Member Avatar for tony75
0
443
Member Avatar for Counterpartz

Hello, I'm having an issue with a windows forms application assignment, it's supposed to take a list of variables entered in the score and compute the average/variance of those scores when the buttons are pressed, I wasn't sure how to do the variance (button 4) but my Average function on …

Software Development
Member Avatar for RvSon
0
266
Member Avatar for cherry.basilio2

How do you convert a decimal to binary and vice versa? using netbeans ide

Software Development ide java
Member Avatar for stultuske
0
273
Member Avatar for dustin.mcalister.58

Hello, it's me again, and I'm stuck again. I need to enter the highest and lowest temperatures for seven days, which the program will then store in two columns, with the average of each column stored in the bottom row. I got it working and everything, except that it'll only …

Software Development c++
Member Avatar for RvSon
0
202
Member Avatar for Petranilla

How do you generate random numbers in Java without duplicate? Thanks.

Software Development java
Member Avatar for jwenting
0
569
Member Avatar for saurabh.mehta.33234

the foll code when run on gcc compiler gave 12 as output `struct aa{char a:3;int b:30;char c:3;}; printf("%d",sizeof(struct aa));` but when i replace size of c to 2 then it gives 8 why is that so?? sizeof int is 4 and char is 1..

Software Development c
Member Avatar for nullptr
0
110
Member Avatar for delta_frost

I have this simple first multiprocessing code in pyton,but I encounter a BSOD when running it.Can anyone please point out what is wrong with it ? import multiprocessing def cracker(): print "Hello" return procs = [] for i in range(8): p = multiprocessing.Process(target = cracker) procs.append(p) p.start() for p in …

Software Development python
Member Avatar for delta_frost
0
597
Member Avatar for gyno

Is it possible to install two IDE like say Netbean and Eclipse on same system without the two disturbing each other?

Software Development ide java
Member Avatar for jwenting
0
232
Member Avatar for ilove.lyka15

how can i make my 10 different program as one program? please help me.. ;( this is my case study(baby thesis)

Software Development java
Member Avatar for jwenting
0
167
Member Avatar for mical700

Histo.java import java.util.*; // Scanner import java.io.*; // PrintStream class Histo extends Object { static PrintStream theScreen = new PrintStream(System.out); static Scanner theKeyboard = new Scanner(System.in); public static void main(String args[]) throws FileNotFoundException { final int MAX_SCORES = 5000; // define nameArr as an array of String objects String[] nameArr …

Software Development java
Member Avatar for peter_budo
0
326
Member Avatar for somjit{}

i want to sort a list of two dimensional points based on their polar angles with respect to a particular point. this will a part of a bigger code to find collinear objects from a set of points. the method i thought of for doing this is is: 1. create …

Software Development java
Member Avatar for somjit{}
0
544
Member Avatar for beginner91

so i created a client server program using tcp that works fine. but now i want to use broadcasting (which uses udp) so i'm changing to change my code but i keep running into problems. when i run my code the error message "ERROR binding: 10047" and that error means …

Software Development c++ client-server tcp-udp
Member Avatar for beginner91
0
339
Member Avatar for gunnerone

Hi, I have this simple program that should draw a cube for the user by reading the data in from a text file which looks like this. 8 100.0 100.0 -100.0 -100.0 100.0 -100.0 -100.0 100.0 100.0 100.0 100.0 100.0 100.0 -100.0 -100.0 -100.0 -100.0 -100.0 -100.0 -100.0 100.0 100.0 …

Software Development c c# c++
Member Avatar for Ketsuekiame
0
444
Member Avatar for dustin.mcalister.58

Before I go any further, I just want say yes, this is the same code from my last post, and no this isn't a repost. Now that I know that I need a loop in my code, all I need to know right now is where to put the loop. …

Software Development c++
Member Avatar for nullptr
0
182
Member Avatar for Ismatus3

Hello friends , I have two questions : 1) I was using psycopg2 for old versions of python 2.x , and now while using Python 3.3 , i can install psycopg2 , maybe it needs a special psycopg for Python 3.3 . 2) I could install py-postgresql , and i …

Software Development postgresql python
Member Avatar for Ismatus3
0
294
Member Avatar for rajathvk

Hi friend , I am currently designing a project in which there is a picturebox and a upload button. If the user clicks on upload the file is open and the user select the desired picture from the file and display in the picturebox which is then saved to the …

Software Development display video webcam
Member Avatar for catherinesea
0
209
Member Avatar for write.me

This code calculated the variance to be 9.75. It really is 9.3, what am I doing wrong? static double computeVariance(ref double Variance, params int[] intValues) { int sum = 0; for (int n = 0; n < intValues.Length; n++) { sum += intValues[n]; } double avg = sum / intValues.Length; …

Software Development c
Member Avatar for tinstaafl
0
155
Member Avatar for vb_newbie

Hi, I have a combobox, textbox, listbox, and a save button. Combobox is filled with illness names stored from database. Every illness that will be selected from the combobox, its symptoms will be listed in the listbox. When a symptom is typed in the textbox and save button is clicked, …

Software Development vb.net
Member Avatar for vb_newbie
0
939
Member Avatar for anukavi

Hi , Working on VC++ 2012. "error LNK2005: "class std::basic_ofstream<char,struct std::char_traits<char> > Createonly_logs" (?Createonly_logs@@3V?$basic_ofstream@DU?$char_traits@D@std@@@std@@A) already defined in UtilityFunctions.obj I have defined a text file (for writing the output) under LogFiles.h #include <fstream> using namespace std; ofstream Createonly_logs("E:\\MyProj\\MTEST\\CreateFile_logs.txt"); I have created three .cpp under the project and all these cpp uses …

Software Development c++
Member Avatar for anukavi
0
120
Member Avatar for Papa_Don

Hello Group, I'm beginning to understand the connections required to return information from your database. I'm now trying to return multiple lines from the database that have the same "prefix" within the part number. As my example, I have two records within my database that both start with "AO0025". I …

Software Development open-source sql vb.net
Member Avatar for Papa_Don
0
221
Member Avatar for solomon_13000

I am attempting to load an 3 icon image but my code doesn't do so: package com.proxy; import java.awt.Component; import java.awt.Graphics; import javax.swing.ImageIcon; import javax.swing.JFrame; public class ImageIconProxy extends ImageIcon implements Runnable{ static final ImageIcon ONE = new ImageIcon("/IFDesign/images/green.jpg"); static final ImageIcon TWO = new ImageIcon("/IFDesign/images/yellow.jpg"); ImageIcon CURRENT = ONE; …

Software Development java router-proxy-firewall web-design
Member Avatar for solomon_13000
0
363
Member Avatar for $Tweety$

Heyy could any1 plz suggest sum really tough programs dat can be written in c++??

Software Development c++
Member Avatar for vmanes
0
261
Member Avatar for entropic3105

I've been using Tkinter a little and want a program with the save and save as functions. Does anyone know how?

Software Development python tkinter
Member Avatar for vegaseat
0
305
Member Avatar for Qazinix

I am working on my first Client server program. The client will have to connect to the server however there is no way to know what the server ip will be so this needs to happen dinamically, at least the first time the program runs. The clients will receive strings …

Software Development client-server pascal
Member Avatar for Qazinix
0
324
Member Avatar for rc_new

im trying to convert my date from MySQL to a textbox.text and its giving the msg unable to convert MySQL date/time value to system.datetime dim tempdate as date TempDate = dr.Item("dob").ToString txtDate.Text = TempDate.ToString someone please help

Software Development mysql vb.net
Member Avatar for rc_new
0
530
Member Avatar for thanhdcbk

I want to make a application P2P chat between 2 local networks but i don't know what i have to do ? Please help me.thankz

Software Development
Member Avatar for thanhdcbk
0
169
Member Avatar for Jake.20

Greetings can someone give me tips on how to solve this? When i'm searching for a data on the datagrid to edit it doesn't display the data to the corresponding text boxes. The textboxes is bound on the datafields I have these fields Combobox - Searchbox textfields Student ID Student …

Software Development open-source visual-basic
Member Avatar for Jx_Man
0
218
Member Avatar for Fernando_1

the names and course and grade dont print, just the totals [Click Here](http://pastebin.com/BNz8VX3T) it reads a file text file [Click Here](http://pastebin.com/a2VjXjwz) the output should look like [Click Here](http://pastebin.com/Lt9uchM9) Im barely learning how to use the control break method and most of the program is broken up in functions. Im not …

Software Development python
Member Avatar for woooee
0
315
Member Avatar for Sacrificer_911

Hello! I'm just a beginner in java and also a newbie,in fact this is my first post. I already programmed some stuffs such as games, calculators and other stuff. I also have a good grasp on the language and some of it's libraries . I am planning to take my …

Software Development java posting-games
Member Avatar for Sacrificer_911
0
310
Member Avatar for krutikasharma

There are a 10 words in statement.i want program in 'C' to find out how many words have the same number of letters

Software Development c c# c++
Member Avatar for Moschops
0
106
Member Avatar for dirtydit27

Hello, I'm currently working a project for class and I've gotten stuck. I am suppose to write a program that will read a csv file and create a text file with information from this csv file. So, far I have code that prompts for the file name and gives a …

Software Development python
Member Avatar for dirtydit27
0
467
Member Avatar for karenhaha

I have been using Python for a few months in a Windows environment with IDLE. I installed Python on my (new) Macbook and opened the same files, but am now getting strange results. These are scripts that worked fine in Windows: 1. When I use a function to open and …

Software Development python
Member Avatar for karenhaha
0
271
Member Avatar for siaosituimoloaublood

Okay, here is my problem. The instructions are I would have to store the minimum points and grades in a five row two column array. The procedure should display the grade corresponding to the number of points entered by the user. Minimum Points Maximum Points Grades 0 299 F 300 …

Software Development vb.net
Member Avatar for siaosituimoloaublood
0
110
Member Avatar for Roshan92

hi all, i am doing my java project (video player). This is the task : Enter a video number and click a button to add that video to a playlist. If the video number is valid, the video name should be added to the list and all the names in …

Software Development gui java java-swing microsoft-access
Member Avatar for stultuske
0
274
Member Avatar for ImZick

Hi guys can you help me out. i want to display the item in my textbox but how can i do that i tried to search tru web but nothings working for me. it is something like this "SELECT Department FROM Table1 WHERE Department = " & .Textbox1.Text & "" …

Software Development display vb.net
Member Avatar for Reverend Jim
0
161

The End.