43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for mslittle1

I need help with my homework assignment. The assignment is write a method DisplayDigits that receives an integer between 1 and 99999 and displays it as a sequence of digits, separating each pair of digits by two spaces. For example, 4562 should appear as 4 5 6 2 I have …

Software Development
Member Avatar for mslittle1
1
472
Member Avatar for Kuroshi

Hello everyone! I would like to know if there is a way to write false in SWI Prolog instead of error. The situation is the following: I have written a prolog program that says if a statement is a formula or not, for example: ?- fmla(or(a,b)). Answer = true The …

Software Development
Member Avatar for rubberman
0
182
Member Avatar for ReyJEnriquez

Hi EveryOne:-) I hope everyone is doing great... I have a question.. I have a table in a database and it contains 20 names How to loop in a database and display each name in a msgbox?? Thanks :-)

Software Development display vb.net
Member Avatar for ReyJEnriquez
0
172
Member Avatar for ReyJEnriquez

How would i let 3 checkbox acts like a radio button...

Software Development vb.net
Member Avatar for ReyJEnriquez
0
588
Member Avatar for hmx7

I need to restrict this loop from using values greater than 101 and less than zero. The assignment is to make program that finds the average of test scores inputed. I can't figure out what to do, but i feel it's simple. thanks in advance T = 0 GC = …

Software Development python
Member Avatar for hmx7
0
152
Member Avatar for cmps

Hello, I would like to know if using Java as Programming language and Swing as GUI is enough to create a point of sale system ? Which programming language and GUI does companies use to create POS systems ? Thank you :)

Software Development gui java java-swing
Member Avatar for cmps
0
209
Member Avatar for cambalinho

i want build 1 const with std::endl but by some reason isn't accepted:( #define NewLine std::endl i understand the '#define' isn't adviced to be used, but in these case i belive that i can't use the 'const':( what isn't right with that line? error message: "C:\Users\Joaquim\Documents\CodeBlocks\My Class\console.h|170|note: void Console::write(A, B …

Software Development c++
Member Avatar for cambalinho
0
250
Member Avatar for Waseemaburakia

I need help with my homework. Out professor doesn't explain anything and i'm struggeling. TMy homework is: Write, test and debug a program which asks the user to enter three floating point numbers and then reports the largest and the smallest of these values. Here is the example program dialog: …

Software Development python
Member Avatar for slate
0
262
Member Avatar for Stealthbird97

Hi Can someone tell me how I can get the content of a text file to be printed into a windows console. Each Line of the text file to be on its own console line. It would be a lot of help. I don't want to have to write a …

Software Development vb.net
Member Avatar for Begginnerdev
0
141
Member Avatar for cambalinho

i have 1 class: class class1 { void Created(); calss1() { Created(); } } class1; void class1::Created() { cout << "hello"; } imagine that i don't write: void class1::Created() { cout << "hello"; } i get an error. i try these too: class class1 { void Created() { //do nothing …

Software Development c++
Member Avatar for cambalinho
0
199
Member Avatar for Pyler

I have a stack method that's supposed to return a reversed *copy* of the this object. I need this to link this to that, the reversed copy of the this stack. Thanks public FancyStack<E> reversed() { FancyStack<E> that= new FancyStack<E>(); if(this.isEmpty()){ return this; } else{ while(top!=null) { revertStack.push(pop()); } } …

Software Development java
Member Avatar for stultuske
0
276
Member Avatar for mixelplik

Please, I know this is a simple question. I'm copying this code out of my text book, almost ver-mother#&$(ing-batm And it mother#&$(ing refueses, REFUSES to open the mother#&$(ing file and write to the mother#&$(ing array. WTF - Sorry for the language, but this is so stupid and silly and I …

Software Development c++
Member Avatar for mixelplik
0
193
Member Avatar for Waseemaburakia

I need to write a program as following: Write, test and debug a program to calculate and output the minimum, maximum, and average of a list of positive test scores. Ask the user how many scores s/he intends to enter. Assume exactly that many scores will be entered one per …

Software Development python
Member Avatar for Waseemaburakia
0
231
Member Avatar for Jugottabe

Hey guys, slightly less noob programmer here for a some more help, This week in class we were assigned to create a phonebook with a couple functions to manipulate it, but it seems I am having a couple problems. It seems to me that I have most of the program …

Software Development c++ oop
Member Avatar for DeanMSands3
0
227
Member Avatar for MSV22

Hi I am getting this error AttributeError: 'module' object has no attribute 'instancemethod' I searched through the forum and found answers for this error, but it is not working in my case. I am using python 2.6 and wxpython 2.8. The program which where running perfectly earlier are also showing …

Software Development python
Member Avatar for soibac
1
2K
Member Avatar for krystosan

import unittest import filterList class TestFilterList(unittest.TestCase): """ docstring for TestFilterList """ def setUp(self): self._filterby = 'B' def test_checkListItem(self): self.flObj = filterList.FilterList(['hello', 'Boy', 1], self._filterby) self.assertRaises(filterList.ItemNotString, self.flObj.checkListItem) def test_filterList(self): self.flObj = filterList.FilterList(['hello', 'Boy'], self._filterby) self.assertEquals(['Boy'], self.flObj.filterList()) if __name__ == '__main__': unittest.main() my above test test_checkListItem() fails , for the below filterList.py …

Software Development python
Member Avatar for krystosan
0
365
Member Avatar for exfoxs28

why the result is always the same? #include<iostream.h> #include<conio.h> #include<time.h> #include<dos.h> #include<stdlib.h> int main() { int a,b,c; clrscr(); a = 5; b = 5; c = 5; for(int x=1; x<=24; x++) { gotoxy(5,x); cout << "*"; gotoxy(70,x); cout << "*"; delay(50); } clrscr(); do { for(int x=1; x<=24; x++) { …

Software Development c
Member Avatar for exfoxs28
0
240
Member Avatar for rabeea_1

Hi.. im new to java and im writing a code in which i have to show a main menu with matrices addition amd multiplication.. i have almost com[leted it.. but i dont know how to show the option of "MENU AGIAN yes/no"?? what could be the code of it.. cod …

Software Development java matrix-multiplication
Member Avatar for rabeea_1
0
159
Member Avatar for ITOzann

I'm having a hard time understanding why my MIPS program is not outputing the expected result. Please refer to the c++ code, followed is my version of mips **The C++ version:** #include <iostream> using namespace std; int x[10] = {0}; int pos[10] = {-1, -1, -1, -1, -1, -1, -1, …

Software Development assembly
Member Avatar for ITOzann
0
239
Member Avatar for wallet123

Hello guys, i created a method that would set the value of my string so that when i pass it to another class, it would still contain the needed value: This is the first class: public Student getSelectedStudent(){ Student selectedStudent = new Student(); DefaultTableModel dtm = (DefaultTableModel) tblListOfStudents.getModel(); String studentNum …

Software Development java
Member Avatar for nikolaos
0
166
Member Avatar for toniann.midori

Cant figure out whats wrong with this function but i think its probably a data type error. Please help! void displayName(){ char name[30]; int number, x; printf("So..what is your name?\n"); scanf_s("%s",&name); printf("Nice to meet you %s, how many times would you like to be cloned?\n",name); scanf_s("%i", &number); for(x=0; x<number; x++){ …

Software Development c
Member Avatar for cmps
0
123
Member Avatar for Bhavya scripted

hi i recently found an interesting problem(#19) on the project euler website - projecteuler.net The real answer is 171 and i am getting 175 What is wrong with this code- def sunday(): c=0 sun=0 months=[31,59,90,120,151,181,212,243,273,304,334,365] leapmonths=[31,60,91,121,152,182,213,244,274,305,335,366] for i in range(1901,2001): n=leap(i) #Checking if year is leap year if n == …

Software Development python
Member Avatar for TrustyTony
1
473
Member Avatar for shahab.burki_1

I am having an interesting problem in scanf. It inputs the integers successfully but overlooks the character. In debugging I saw a strange value placed in the character variable. Kindly help me-- #include <stdio.h> int main() { int a,b; char op; printf("Welcome To Command Based Calculator"); // printf("\n"); printf("Now enter …

Software Development c
Member Avatar for <Anurag>
0
662
Member Avatar for talat.zaitoun

I'm new to python so any help would be appreciated, here is a code i've been working on for calculating gpa, I have to calculate gpa of an inputed number of courses by a user (could be 2-infinte number of courses); btw this is not the whole function but only …

Software Development python
Member Avatar for slate
0
177
Member Avatar for mrgadgets

Hi guy, I need those of you who has below os to help me test run [this new software](https://sourceforge.net/projects/fastfilemanager/). windows os (64 bit/32 bit) windows 7/xp/2000/98 etc linux (64 bit/ 32 bit) It is really simple to install the above software, just download the zip file, unzip it, click on …

Software Development microsoft python
Member Avatar for slate
0
141
Member Avatar for ReyJEnriquez

Hi everyone.. How to make the checkbox stays checked when double click??? When i click the checkbox it will check, and when i double click it, it will still be check... how should i do that guys???... Cheers:-)...USC CAS CHEERDANCE TEAM

Software Development vb.net
Member Avatar for ddanbe
0
193
Member Avatar for hmx7

I have an assignment that is very similar to a past assignment. I have to create a for loop to find gpa. The previous assignment was to use a while loop: stop1 = int(input('How many GPAs do want to calculate? ')) totalgp = 0 totalgp1 = 0 while stop1 > …

Software Development python
Member Avatar for hmx7
0
185
Member Avatar for jared.geli

Good day to all I was wondering if it is possible to show all data in a datagridview that doesn't match from 2 tables? Like Inner Join if you have at least 1 match data from the other table it will display it. What i want is to display those …

Software Development vb.net
Member Avatar for jared.geli
0
206
Member Avatar for antonio.neal.39

I am working on a program for work and trying to make a massage bar with text can anyone help? I just want the text to move across the screen. from tkinter import * Gui = Tk() Gui.geometry('8000x100+1+600') Gui.title('ALARTS') Gui.config (bg = 'blue') massage = Label(Gui, text = 'this is …

Software Development gui python tkinter
Member Avatar for antonio.neal.39
0
296
Member Avatar for Darkicon

I've been working at this code for probably 7 hours since last night. After hours of troubleshooting I solved most issues with my code but now I have a strange problem that I cannot figure out how to fix. One of my function is to generate a random hex string …

Software Development vb.net
Member Avatar for tinstaafl
0
575
Member Avatar for sasikrishnasamy

Hi I have double values like this, double value1 = 100.0 double value2 = 100.23 I need to convert like this, value1 = 100 value2 = 100.23 Kindly give some sugesstions to convert like this.

Software Development java
Member Avatar for stultuske
0
184
Member Avatar for rahulsingh725

hi i want to show entire column data from sql and show in a single textbox with ","

Software Development
Member Avatar for JOSheaIV
0
209
Member Avatar for Ismatus3

Hello , I am trying to modify a backup script , using the zipfile module , it creates the folder of the day , and inside it the zip file that contains the two source folders , but not the underfolders and the files inside them . here is all …

Software Development python
Member Avatar for Ismatus3
0
233
Member Avatar for kyle.mace.35

Okay so I have fstreams that I swap between output and input. Is there anyway I can tell which openmode the fstream is in?

Software Development c++
Member Avatar for deceptikon
0
182
Member Avatar for alina.nazchowdhury

I'am trying to make a color mix program and is giving me this :Error Invalid Use Of Property. I guess is because i have to put some values for colors, but i don't know how. This is the code, hope somebody help me: Private Sub Command1_Click() Picture1.BackColor RGB(Text1, Text2, Text3) …

Software Development visual-basic
Member Avatar for DeanMSands3
0
404
Member Avatar for DyO1

I would like to make a Export / Import buttons that will save/open files that contain listView data (ListView Items) Can someone tell me is there a way to do this?

Software Development listview vb.net
Member Avatar for DyO1
0
672
Member Avatar for tomexlfc

Hi all, I have already written a code to search for staff records from my staff database and it's working fine, but the problem is, if someone enters a wrong a wrong staff id or just any number or alphabets, it still displays the "Found Record" message, instead of "No …

Software Development microsoft-access seo vb.net
Member Avatar for waseem.akhtar.3572
0
16K
Member Avatar for H_beginner

The maximum size of my array is 20 but I want the array to display only items that have been entered. I dont want the zeros to be considered in the array in all my operations like sorting and printing etc. Can anyone help. #include<iostream> #include<iomanip> using namespace std; void …

Software Development c++
Member Avatar for Banfa
0
454
Member Avatar for reincom

import javax.swing.*; import java.awt.*; import java.awt.event.*; public class PaymentCalculator extends JFrame{ private JPanel panelTitle,panelInput,panelButtons; private JLabel lbltuition, lblmisc, lblscholarship, lblfee; private JTextField txttuition, txtmisc; private JComboBox cbscholarship; private JRadioButton optfull, opttuition,optOther; private ButtonGroup btnpayment; private JCheckBox chkfees1, chkfees2, chkfees3; private JButton btncompute, btnclear; private JList listbuy; private DefaultListModel listmodel; private …

Software Development java java-swing
Member Avatar for reincom
0
146
Member Avatar for </scorpion>

hi :) is there anyone who knows how to add a datepicker when you click the textbox? or pop up a datepicker when you click the textbox and when you click a date in datepicker it will pass the selected date to the textbox??? pls. thanks in advance :)

Software Development
Member Avatar for </scorpion>
0
236
Member Avatar for savedlema

Hi friends, thanks all for your contributions here at DaniWeb Community. I want to ask one thing; I have a table where I keep values for students marks (StudentID,Marks). Let's say there are 50 students. I want to be able to display on the form the class rank for each …

Software Development dataset vb.net
Member Avatar for TrojanhorseRovhine
0
2K
Member Avatar for </scorpion>

How to check if start date and end date overlaps when adding or updating in gridview? is there anyone who knows how to check if dates are overlapping? this is my gridview: | ID | cost | start date | end date | status | --------------------------------------------- | 1 | 66.00| …

Software Development
Member Avatar for </scorpion>
0
283
Member Avatar for aravind07k

i ll send u a question based on checking cheks in chess try coding that in python , here is the question, Problem 2: Check for Checks; Source Module: checkChessCheck Test Module: checkT est Given a board position in chess, check if either the white king or the black king …

Software Development legal python
Member Avatar for iTechnnn
-3
218
Member Avatar for Xakzi

Hello peeps! I need some help to decrypt my text file and make it able to read in my program.. What I have programmed so far is to read the encrypted file, create a new file, decrypt it and read the newly created file.. I need to decrypt the encrypted …

Software Development c++ file-system ios visual-studio
Member Avatar for Ancient Dragon
0
464
Member Avatar for zebnoon

Hye there Plz help me to print the Column of ListView as a receipt.I have no idea how to print ,i have to use datareport of VB6. or what? this is an VB6 project. waiting for reply zeb noon

Software Development listview visual-basic
Member Avatar for chaithra.D
0
1K
Member Avatar for jtresue

I made this program but it isn't working; any suggestions? /* * Program Name : GuessGame.java * Author : James Resue * Date : October 6, 2010 * Purpose: Write a program GuessGame.java that plays the game “guess the number” as follows: * Your program chooses the number to be …

Software Development gui java java-swing
Member Avatar for JamesCherrill
0
3K
Member Avatar for Bhavya scripted

Hey guys!I am new to this awesome forum. I have just finished c/c++ and have decided to move on to some scripting.I liked perl because it is very good for web apps.I personally dont like pyhton. So,can you guys suggest a good perl interpreter for windows7? Thanks

Software Development microsoft perl
Member Avatar for Bhavya scripted
0
189
Member Avatar for dev90

I am getting garbage value. Is it need to free 's' every time or the reason is something else. please,help. #include<stdio.h> #include<conio.h> #include<alloc.h> char* toBin(int); void rec(int); void main() { int n; char *out; clrscr(); printf("\n Enter no : "); scanf("%d",&n); out=toBin(n); printf("\n %s",out); free(out); // rec(5); getch(); } /*void …

Software Development c
Member Avatar for dev90
0
264
Member Avatar for ReyJEnriquez

Hello Everyone, I hope everyone is having a nice day ;-) I have a question about combo box and here is it... I Have sex combo box(Male or Female only) and i want that when i choose Female it will have an id of 2(Male = 1, Female = 2) …

Software Development vb.net
Member Avatar for G_Waddell
0
569
Member Avatar for jared.geli

Hi again............ I'm having problems in saving the data in my datagrid to my Database Imports System.Data.OleDb Public Class Form2 Dim con As New OleDbConnection("provider=Microsoft.ACE.OLEDB.12.0; Data Source=C:\Users\RMC\Documents\Vehicle.accdb;") Dim cmd As OleDbCommand Dim adpt As OleDbDataAdapter Dim cb As OleDbCommandBuilder Dim sql, lol As String Private Sub Form2_Load(ByVal sender As System.Object, …

Software Development dataset vb.net
Member Avatar for jared.geli
0
763

The End.