132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hwoarang69

so i have a interview on data structures. i am sure they will ask question on 1d arrays. but what can they ask me? 1.give a array find the max and min value. 2.give a array find avg. 3.sum of all value in array 4.... what else can they ask …

Software Development java
Member Avatar for jalpesh_007
0
189
Member Avatar for pennywise134

I am working on an assignment for my C++ course, and could really use some help with the following problem: **Instructions: 1. In this assignment we are going to write an object oriented program to calculate provincial tax, federal tax and net income. Your objective is to design a class …

Software Development c++ objective-c
Member Avatar for starpro57
0
151
Member Avatar for priyanka9

I want to filter the datagridview on Search button click,i am using 3-tier architecture,the grid should be updated with the search result

Software Development vb.net
Member Avatar for Pgmer
0
221
Member Avatar for Syrne

Hi there, I'm new to tree maps and I am trying to write my own version of the pre-defined "remove" function for Tree Maps. I know I need to have two extra functions that find the minimum and maximum values in the map that will be called within the remove …

Software Development java
Member Avatar for ekemaz11
0
253
Member Avatar for Asif_NSU

[QUOTE=Dave Sinkula]You may want to investigate makefiles. Then you can use your favorite editor and still write modular code the correct way.[/QUOTE] I just had a glance at how to write makefiles. Looks messy(will look into that later). So opened Dev C++ instead, and tried to work with projects for …

Software Development c++
Member Avatar for Musa_Jutt
0
3K
Member Avatar for london-G

Hello. I have a tablw which holds quite a lot of information, I would like to print the table in landscape. try { boolean complete = Table_Stud.print(JTable.PrintMode.FIT_WIDTH,header,footer); if (complete) { JOptionPane.showMessageDialog(null, "printing...."); } else { JOptionPane.showMessageDialog(null, "Cancelled!"); } } catch (PrinterException pe) { /* Printing failed, report to the user …

Software Development java
Member Avatar for mKorbel
0
780
Member Avatar for ThePythonNoob

I have two inherited classes in another class Class A(object): def printhello(self): self.message1="hello" Class B(object): def printbye(self): self.message2="bye" Class C(A,B): def __init__(self): super(C,self).printhello() def printboth(self): print(self.message1) print(self.message2) a = A() b = B() c = C() c.printboth() How do I super both A and B?, note this is just an …

Software Development python
Member Avatar for TrustyTony
0
2K
Member Avatar for Matigo

Hello everyone I'm creating an application in visual basic 2010, "I'm very new to this" What i want to do now is to make a monitor to check the status of the website server (If it's up or down) I know that i can just ping it using CMD"command" But …

Software Development vb.net visual-basic web-server
Member Avatar for Matigo
0
129
Member Avatar for Ubunterooster

The code I wrote is supposed to show the billing amount. It compiles fine and gives no runtime errors but fails to provide any output and gives the "Improper selection. Please Choose R or P" error regardless of what letter is typed. //switch statements //The program compiles fine and does …

Software Development c++
Member Avatar for nullptr
0
178
Member Avatar for indrajeet6

Hi all, I had originally installed MS SQL Server 2008 R2 in my C: when I was developing the application. While I had the SQL DErver in my C:, everything was fine, no problems at all. Then I began getting low disc space messages, so I uninstalled it from my …

Software Development sql vb.net
Member Avatar for indrajeet6
0
179
Member Avatar for LucianAdamson

I've been through post after post after post for the last few hours trying to figure this out... im new to the XML parsing stuff so I am starting to get frustrated. Here is a sample of the XMl im trying to parse: <level id="1"> <prop n="PROPERTY" v="VALUE"/> </level> <level …

Software Development vb.net xml
Member Avatar for LucianAdamson
0
295
Member Avatar for LucianAdamson

Hello all! Hopefully there is someone out there who can help me with what I need to achieve. Goal: Loop through XML file, reading node by node searching for a node with a specific attribute with a specific value, then write to another attribute of said node found. I feel …

Software Development vb.net xml
Member Avatar for LucianAdamson
0
358
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to make grid transition in visual studio using the language visual basic. Please help...

Member Avatar for joshl_1995
0
276
Member Avatar for coroshea

I chose to enter 4 months during runtime. I decided to test out the member functions/dynamic feature of linked lists, by then adding 3 months before compile time (static binding), which would be appear after the first 4 months. The program outputs: > Full list again: > Month January, had …

Software Development c++ data-structure display linked-list
Member Avatar for coroshea
0
280
Member Avatar for lich

i want to connect the sql dabase to vb.net form. can anyone tel me how to do it. i tired google. but it only says about ms access database. please help me

Software Development sql vb.net
Member Avatar for Icone
0
46K
Member Avatar for kayceedude

I have a program below that I want to display when checkbox is checked and hide when unchecked. I created a Message Label for it but the thing is that when its unchecked, my messagelabel and message displays.... Pls is there a way I can hide the message without the …

Software Development vb.net
Member Avatar for Icone
0
134
Member Avatar for keyontes

Need help building a Shipping Calc with some limitation really confused on how to word and code this program. Below is the code I already have after creating the form. This is my assignment Weight of the Package (in kilograms) / Shipping rate per Mile 2kg or less / $0.01 …

Software Development vb.net
Member Avatar for Icone
0
188
Member Avatar for midnite11

Hi, I need to fill a toolstripcombobox with dates. The values in the toolstripcombobox need to be sorted by date. The database field that I am pulling to fill this toolstripcombobox has the following fixed format: 201201, 201211. So, I first need to convert the retrieved values from YYYYMM to …

Software Development vb.net
Member Avatar for Icone
0
190
Member Avatar for dinhunzvi

i have a MySQL table with the following columns: employeeID, firstName, lastName, gender, salary. whenever i insert a new record for this table i want to be able to retrieve the employeeID of that record. how should i write the commands in VB.Net

Software Development mysql vb.net
Member Avatar for Icone
0
1K
Member Avatar for babbu

hie how can i restrict the user to enter only numbers in a textbox

Software Development vb.net
Member Avatar for Reverend Jim
0
3K
Member Avatar for akasekaihime

Hello good evening to all of you! I know this question is basic but I am really having a hard time doing it. I am a creating a Employee information system. My dilemma is I want to view all the informtion of all the employees from the department that I …

Software Development vb.net
Member Avatar for Icone
0
147
Member Avatar for jhedonghae

i want to call items in a database based on a date range...can someone help me with this..i really don't have any idea how

Software Development vb.net
Member Avatar for Icone
0
167
Member Avatar for الوليد

hi please help me in this queation Q)write programe to open any file in your computer but with password to opean this file? pleassse i want the answer after one week because the last date after one week.

Software Development c++
Member Avatar for Ancient Dragon
0
134
Member Avatar for revathi.sampath.90

i have two textbox..TimeInTextbox that contains time in for example(8:00 am) and TimeOutTextbox that contains time out for example(5:00 pm), i want to add TimeInTextbox and TimeOutTextbox to get the total working hours but how am i suppposed to do that?

Software Development vb.net
Member Avatar for Icone
0
124
Member Avatar for Melly3

import random as r def main(): roll1 = r.randint(1,6) roll2 = r.randint(1,6) point= 4,5,6,8,9,10 sum= roll1 + roll2 print("phase 1") print ("You rolled:", roll1, "and", roll2) if sum == 2 or sum== 3 or sum == 12: print("Game Over. You lose" ) elif sum == 7 or sum == 11: …

Software Development python
Member Avatar for snippsat
0
3K
Member Avatar for Secone

I have a template in a 1-file .h file, and I need it to be adjusted and modified to work properly with only a partial amount of the items in it used. The testArray.cpp file I include is how I test if it works properly. As it is now, it …

Software Development c++ ui-ux
Member Avatar for Secone
0
186
Member Avatar for alexandra.hoops.3

I have to write a program that asks the user how many pumpkin weights they have, and the reads that many pumpkin weights, printing each weight with two decimeal points and a comment and displays data about them to four decimal places. I need to find the average weight, maximum …

Software Development python
Member Avatar for ThePythonNoob
0
589
Member Avatar for shriram.pendse

Hello Stallwarts, I am making a simple VB.net HMI application. I have dlls which give me functions to read / write registers from PLC / controllers. Now How do I do this ??? One threads keeps communicating with devices with these read write functions. Another thread looks after GUI and …

Software Development gui vb.net
Member Avatar for Reverend Jim
0
112
Member Avatar for AmrMohammed

Greetings, As the thread title said I want to know how to create a setup file. I know the basics of creating such setup file but I want to know how to create an enter serial number windows form, how to ensure that the entered serail number is true or …

Software Development app-store file-system
Member Avatar for AmrMohammed
0
208
Member Avatar for Bogy007

I am looking for a way to write a code implementing the Cholesky decomposition with only one loop (on K), utilizing outer product. Not sure how to go about this. MATLAB can do it, but i have to use c++. I have looked at parallelism but that is over my …

Software Development c++
Member Avatar for Bogy007
0
259
Member Avatar for sheushen

I need to sort the display by name in alphabetical order. How do I do that? public class Node { String name; int age; String position; int salary; String num; Node next; Node() { name = null; age = 0; position = null; salary = 0; num = null; next …

Software Development java java-swing
Member Avatar for Taywin
0
205
Member Avatar for BLuv

Hi everyone, I am brand new to Java and I like it a lot so far. I am very stuck on an assignment for school that I need help with. We are just learning about method invocation, how to write and call methods in Java. My program should take user …

Software Development java user-interface
Member Avatar for Taywin
0
185
Member Avatar for ThePythonNoob

# Advanced game of Tic Tac Toe # Author: Bob # Version: TypeError #****************************** #import modules import random import mcommandline #****************************** class Human(object): def __init__(self): self.hposition = 0 self.hmove = ["X", self.hposition] self.question = "" def makemove(self): self.hmove[1] = input("1-9: ") def question(): question = input("Yes/No: ").lower() class Board(object,Human()): def …

Software Development python
Member Avatar for ThePythonNoob
0
283
Member Avatar for OsaidAz

ok, so I have two classes: Ticket and passenger passenger class has 3 data members, and one the the ticket data members is: `private Passenger psmgr;` what I want to do is to access passenger's data member using the psmgr variable how do I do that?

Software Development java
Member Avatar for OsaidAz
0
238
Member Avatar for waqar100

Hi friends i am getting outofmemoryexception, Here is my code which is in italic i have to optimized these nested loops to avoid the exception. I am telling the background here ,I have a condition in which i have Dataset A,Dataset B and Dataset C.Dataset A is parent & the …

Software Development dataset
Member Avatar for Momerath
0
187
Member Avatar for guerratg

#include <iostream> using namespace std; //class definition class Wage { public: int duration; int price; int calculateWage() { cout<< "To exit program enter -1, to continue enter 1! "; cin>> duration; while(duration != -1) { cout<< "\n\nEnter employee hours worked (or -1 to quit): "; cin>> duration; { if(duration <= …

Software Development c++
Member Avatar for BobS0327
0
186
Member Avatar for laian.alsabbagh

The purpose of the following code is to get a random number of 100 nodes and to distribute these nodes randomly in range 500*500 …(X,Y).. this was the first step #include<iostream> #include <fstream> #include<cmath> using namespace std; int main() { const int x = 0, y = 1; int nodes[100][2]; …

Software Development c++
Member Avatar for laian.alsabbagh
0
213
Member Avatar for Limiter

Just a simple question, might sound stupid even. :) If I write a C program that incorporates execv or fork, does it work properly if I run the program on Windows? I heard that they are associated with Linux based system.

Software Development c
Member Avatar for nitin1
0
115
Member Avatar for IcyFire

Is there a way for me to manipulate the cells of a grid layout? For example lets say i have a grid that has 5 rows and 5 columns. Is it possible for me to manipulate the cell at row 1 column 2 using the layout, sort of like the …

Software Development java
Member Avatar for IcyFire
0
219
Member Avatar for overwraith

I am working on a "for loop that finds all the drives on a system that match a given criteria and am trying to accumulate the drive letters into a list(string) which I can then pipe to a command which will do something to those drives. I do not use …

Software Development shell-scripting
Member Avatar for overwraith
0
227
Member Avatar for clever.forextrading

I created this little application which calculates an average of temperatures based on values given by user. I am trying to create a news switch statement so that for example the average temperature this week was < 10 it would give a message such as "it was a cold week". …

Software Development
Member Avatar for ddanbe
0
103
Member Avatar for rahul.ch

List<? extends Integer> list = new ArrayList<Integer>(); for (Integer element : list) { System.out.println(element); List<? super Integer> list = new ArrayList<Integer>(); for (Integer element : list) { System.out.println(element); For the first three lines as Case 1 using extends it compiles fine. But for Case 2 of next three lines, it …

Software Development java
Member Avatar for rahul.ch
0
2K
Member Avatar for nitin1

i am using masm to write assebmly language codes. can you please tell that how can i change binary numbers to its ascii ? like 10 is given what will be its ascii value ? i know that 30h is ascii value of 0 ans so on. please help.

Software Development assembly
Member Avatar for nitin1
0
540
Member Avatar for apayn

Hey Guys I have some code problem with my classes. Can anyone tell me what has happened? class Location(object): def location(self, index, desc, lootvalue=0, loot_type=0): self.index = index self.desc = desc self.lootvalue = lootvalue self.loot_type = loot_type self.nuetralmobspawn = nuetral_mob_spawn self.passivemobspawn = passive_mob_spawn self.hostilemobspawn = hostile_mob_spawn def __repr__(self): text = …

Software Development python
Member Avatar for Lardmeister
0
167
Member Avatar for meaganicole

Hi, does anyone know how to add date validation? This is what I currently have: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Calculate_reservation_totals { public partial class CalReservationTotals : Form { public CalReservationTotals() { InitializeComponent(); } private void CalReservationTotals_Load(object sender, …

Software Development
Member Avatar for ddanbe
0
213
Member Avatar for emil.rubinic

My program consist of two classes: Form1 (windows form with textbox) and SerialCommunication (class for serial communication). When data occurs on COM port DateRecievedHandeler store the message to indata. public ref class SerialCommunication { private: static SerialPort^ mySerialPort; public: static String^ indata; static void OpenPort(); static void Close(); static void …

Software Development c++
Member Avatar for emil.rubinic
0
84
Member Avatar for Jenniferting

Hi guys, so im required to write a programme that will make a table, along with the values and all and im also required to mark "X" at the minimum value of total time A+B (exactly beside the minimum value in the table). I tried using if statement but it …

Software Development c programming-construct
Member Avatar for Jenniferting
0
229
Member Avatar for lizziekadango

help me out it says in fuction int main, expected primary expression,, #include <iostream> #include <stdlib.h> using namespace std; #define n_file 5 struct record_t { char accname[50]; int accnum; int intbal; int ctbal; int deposits; int deposit; } accounts[n_file]; void printbankaccounts(record_t record); void displayctbal(record_t record); int main() { char buffer[50]; …

Software Development c++
Member Avatar for lizziekadango
0
113
Member Avatar for Matigo

Hello everyone I've been searching for help for a long time and still can't find somebody to solve it for me :(, The problem is im not good at explaining it , But here is the problem I'm creating an application in visual basic 2010, and i was aiming to …

Software Development vb.net visual-basic
Member Avatar for Reverend Jim
0
467
Member Avatar for aerandir.miriel

i got error when making this code. Here is i attach my code and tables: My Tables are =============================== **PRODUCT** **TR_RECEIVE_PRODUCT** >ID_PRODUCT >ID_RECEIVE_PRODUCT >NAME >ID_PRODUCT >CURRENT_STOCK >DATE_IN >STOCK_IN ==================================== ============================================================================= Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click Dim cmd As New SqlCommand Dim connectionString As …

Software Development open-source vb.net
Member Avatar for Reverend Jim
0
268

The End.