132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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 | |
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 | |
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 | |
[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++ | |
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 | |
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 | |
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 | |
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++ | |
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 … | |
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 … | |
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 … | |
Hello Community, I was wondering if there is a way to make grid transition in visual studio using the language visual basic. Please help... Software Development asp.net microsoft vb.net visual-basic visual-studio | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
hie how can i restrict the user to enter only numbers in a textbox Software Development vb.net | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 … | |
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 | |
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 … | |
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 | |
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++ | |
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 | |
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 | |
# 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 | |
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 | |
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 | |
#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++ | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
![]() | 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 ![]() |
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++ | |
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 | |
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 |
The End.