1,431 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for snowwizard

public int evaluate() { if (root == null) { return -100000; } return evaluateHelper(root); (error) } private int evaluateHelper(MyBinaryTreeNode rt) { if (rt.left == null) { return Integer.parseInt(rt.data.toString()); (error) } switch (rt.data.toString()) { case "+": return evaluateHelper(rt.left) + evaluateHelper(rt.right); case "-": return evaluateHelper(rt.left) - evaluateHelper(rt.right); case "/": return evaluateHelper(rt.left) / …

Software Development java
Member Avatar for JamesCherrill
0
893
Member Avatar for plump23$

The library optimezedr should determine if a collection of books is in ascending or desending order.Your solution must read books from a text file and produce 2 additional text files one in ascending order and one in Descending order. then your solution will indicate if your original text file in …

Software Development c c# c++
Member Avatar for chuckc
0
569
Member Avatar for guffadi

First: Design a class named Employee with private fields for that person’s: (1) name, (2) ID number, and (3) hire date. The ID number should be in the format ###–C, where # is a digit, 0–9, and C is a character, an uppercase letter, A–M. Write no-arg, 1-arg (name), 2-arg …

Software Development java operating-system
Member Avatar for JamesCherrill
0
510
Member Avatar for Duo

Hi Im having an error with my app, Im still learning to code. It gives me error at line rs = cmdOLEDB.ExecuteReader Here's my full code Imports System.Data Imports System.Data.OleDb Imports System.IO Public Class Form11 Dim cnnOLEDB As New OleDbConnection Dim cmdOLEDB As New OleDbCommand Dim cmdInsert As New OleDbCommand …

Software Development dataset open-source vb.net
Member Avatar for Santanu.Das
0
503
Member Avatar for Purva_1

Here is my javascript code. function multyTypeUploadAttachments(file,classId,splAttrId){ var campaignID = $('#wk_custCampID').val(); if(campaignID == ""){ var campaignID = $('#wk_edit_camp_ID').val(); } var fileName = $('#'+file.id).val().replace(/C:\\fakepath\\/i, '');//form_skuAttachment var lastChar = file.id[file.id.length -1]; var upload_data = new FormData($('#wk_multy_form_AttrOptionAttachment'+classId+"-"+splAttrId+"-"+lastChar)[0]); $.ajax({ url: BASEPATH + 'c_workOrder/uploadSKUAttachments/'+file.id+'/'+campaignID, type: 'POST', data: upload_data, mimeType: "multipart/form-data", contentType: false, cache: false, processData: …

Software Development php
Member Avatar for Dani
0
401
Member Avatar for Mitch_3

Getting errors and having a hard time seeing where. If I get it to build it is ignoring the inputmenu. package personalprogram; import java.util.Scanner; /** * * @author mitch */ public class PersonalProgram { /** */ public final class InputMenu { public void display_menu() { System.out.println("1) Calculate Cubic feet per …

Software Development java
Member Avatar for JamesCherrill
0
385
Member Avatar for aveeva7

Magento : Using app/design/frontend/default/theme/template/catalog/product/view.phtml how to display my text message on my selected products, workout : <?php $productId = '42150'; $product = Mage::getModel('catalog/product')->load($productId); if( $productId == '42150' ) { echo "Test"; } ?> if i wrong pls correct me.

Software Development display html-css vb.net
0
372
Member Avatar for Saboor880

Hi to all! I have SQL Server Express, SQL Server Management Studio 2012. My PC Name is : "SaboorPC" and SQL Server instance name is also "SaboorPC". I am trying to connect my Netbeans to My SQL Server but it is not connecting and giving the following error: "com.microsoft.sqlserver.jdbc.SQLServerException: The …

Software Development java java-netbeans sql
Member Avatar for rproffitt
0
445
Member Avatar for Zerua

I am trying to figure out why my answer still wrong even though I type the cucumber... .model small .stack 100h data segment str1 db "Enter Your answer: $" after db "Your answer is: $" answer db "Cucumber$" input db 20 dup("$") newline db 10,13, "$" correct db "Your Answer …

Software Development assembly
Member Avatar for rproffitt
0
389
Member Avatar for shehzadkhan

***java*** i have a assignment of oop by using java can any body help me pz : Design and implement these four classes Employee, MonthlySalEmployee, HourlySalEmployee, Company and implement the following functions: ⦁ Create an application class with N HourlySalaryEmployee objects and N MonthlySalEmployee objects. ⦁ Create constructors, accessor and …

Software Development java oop
Member Avatar for JamesCherrill
0
348
Member Avatar for TheHDTrip

I'm creating a program that maintains student scores. I've created a class called students that stores the data and displays it in a list box. Once the user clicks btnAdd a new form (frmAddStudent) loads that allows them to add the user by name and their scores and display it …

Software Development c open-source vb.net
0
314
Member Avatar for GGomez

I have to write a python program that get a keyboad number and verfiy using the def function. Help n = int(input("Write a number") def countdown(n): if n >= 0: print('Blast off! Zero down') else: print(n) countup(n+1) countdown(3)

Software Development python
0
297
Member Avatar for Zerua

Is there anybody who can help me for giving me source code for countdown timer in Assembly

Software Development assembly
Member Avatar for rproffitt
0
247
Member Avatar for neededcode2497

i have two listview where data display, the SALES INVOICE and CHARGE invoice now when i print it when sales is greater than charge invoice cannot be display in crystal report or charge is greater than sales cannot also display. my crystal report looks like: SALES INVOICE CHARGE INVOICE OR …

Software Development listview
0
211
Member Avatar for Kaushalya15

/* SPRPTA Bus Ticket Reservation System C++ Software Development Project */ #include <iostream> #include <fstream> #include <cstdio> #include <conio.h> #include <cstdlib> #include <stdio.h> using namespace std; int count01 ; // class Passenger class Passenger { string str_City, str_ContactNumber, str_UserName, str_Password, str_name ; protected: string str_NIC ; public: Passenger(){} Passenger(string name, …

Software Development c++ ios
Member Avatar for Yashwanth_1
0
8K
Member Avatar for newbie26

hi...can someone help me?? a program that i can print barcode from a vb6 application? once i entered data, (i have already a format for the barcode value), it will print the barcode once.. then, enter again info, then print.. i have a sato barcode printer ct400.is there any configuration …

Software Development printer visual-basic
Member Avatar for rproffitt
0
3K
Member Avatar for Christian_18

Dear friends, I have a number of buttons ( New, Search, Update) on my Parent form (IsMdiContainer set to true) which work very well but once I load and unload a child form (from ToolsstripMenuItem), the buttons do NOT work anymore (i.e., one just clicks onthe buttons and nothing happens). …

Software Development vb.net
Member Avatar for Christian_18
0
389
Member Avatar for Urfa2

Need help to edit this code to allow user to find words in the grid that are touching horizontally, vertically, and diagonally adjacent. For example, the board: Q W E R T A S D F G Z X C V B Y U A O P G H J …

Software Development c++
Member Avatar for rproffitt
0
362
Member Avatar for VIPER5646

Hi all I have a x32 bit application on a windows10 x64 machine. The application was working fine untill I change the connection string from OLEDB to ODBC with a DSN. Since my application x32 bit I created a x32 bit DSN to an ACCESS db wich also is a …

Software Development
Member Avatar for VIPER5646
0
3K
Member Avatar for NewbieChameleon

I'm just starting out with Assembly languege, having installed NASM on openSUSE 13.1, i386 family processor yesterday. My worry is that a simple program like "Hello World!" has flagged a warning when linking...see line 3 below: 1. coker.mu@linux-jm54:~/nasm> nasm -f elf helloWorld.asm 2. coker.mu@linux-jm54:~/nasm> ld -m elf_i386 -s -o helloWorld …

Software Development assembly
Member Avatar for Kaveri_2
0
910
Member Avatar for zeyneb

hey, i'd like to know if there is a java program that transformate 2D dicom images to 3D dicom images?

Software Development java
Member Avatar for rproffitt
0
463
Member Avatar for Meenakshi_2

Option Explicit Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim list As ListItem Sub Connection() cn.Open "provider=microsoft.jet.oledb.4.0;data source=C:\Users\Archana\Documents\login.mdb;" rs.CursorLocation = adUseClient rs.Open "ARegistration", cn, adOpenKeyset, adLockPessimistic End Sub Private Sub cboAid_Click() rs.Open "Select * from ARegistration", cn, adOpenDynamic, adLockOptimistic rs.MoveFirst Do While Not rs.EOF If cboAid.Text = …

Software Development open-source visual-basic
Member Avatar for Reverend Jim
0
425
Member Avatar for Aakashdata

I am a fresher and want to learn Pandas (Python). A few professionals I talked to suggested I use the book "Learning Pandas" by Michael Heydt. Should I give it a try? Do you have any other suggestions for me?

Software Development python
Member Avatar for Abhays01
0
251
Member Avatar for savedlema

Hi everyone! I'm making an application which requires users with different permissions/previleges to login and use the application.For example, if the user is "admin", all menu items in the menu bar are shown and enabled. If the user is say "user_group1", some of the menu items are to be hidden. …

Software Development dataset vb.net
Member Avatar for Reverend Jim
0
6K
Member Avatar for vegaseat

If you press any key on your keyboard, this small Tkinter GUI program will tell you which key and what type of key has been pressed. Great for applications where a simple key stroke is required.

Software Development gui python tkinter
Member Avatar for Webtest
1
14K
Member Avatar for omi4u

dear all i have a invoice table now in that datagrid table i have 4 columns itemcode itemdescription qty price now what i need is user come to itemcode and whenever he type itemcode, he should get a list of initial alphabetic itemnames like if i type A so itemcode …

Software Development vb.net
Member Avatar for rproffitt
0
3K
Member Avatar for Tsakaki

I'm working on a simple XML/XSLT file that is just meant to display a list of books on a very simple html layout. The files were created to learn XML and XSLT. I have since created two XSLT files that use the same XML. One displays the information in a …

Software Development html-css xml
Member Avatar for Reverend Jim
0
1K
Member Avatar for x38class

I have the following code to connect to wi-fi, which works fine. Dim p = "netsh.exe" Dim wi-fi-name as string = "My-Wi-Fi-Connection" Dim sInfo As New ProcessStartInfo(p, "wlan connect " & wi-fi-name) sInfo.CreateNoWindow = True sInfo.WindowStyle = ProcessWindowStyle.Hidden Process.Start(sInfo) For i As Integer = 0 To 100 Application.DoEvents() System.Threading.Thread.Sleep(10) Next …

Software Development vb.net
Member Avatar for xrjf
0
581
Member Avatar for Dagw300805

Hi all, I need to create a program on python that: At the start a 4 sided dice is thrown and a 12 sided dice is thrown to calculate two values for strength and skill the following method is used for each player: - Each attribute is originally set to …

Software Development python
Member Avatar for Dagw300805
0
527
Member Avatar for Aakashdata
Member Avatar for Reverend Jim
0
327
Member Avatar for javi.crecenteespino

Hello people. Sorry for my English, I use google translator .. Please Can anyone convert this code to C # or vb.net? import sys VERSION = 0 SUBVERSION = 2 def usage(): print "[+] WPSpin %d.%d " % (VERSION, SUBVERSION) print "[*] Usage : python WPSpin.py 123456" sys.exit(0) def wps_pin_checksum(pin): …

Software Development c# python vb.net
Member Avatar for happygeek
-2
11K
Member Avatar for Nebil

Hi guys, i'm having a difficulty to set the path in vb.net.i put the code in the module and every time i run the code it throws error "Could not find file 'C:\Users\Abdueie\Desktop\BMS\Bridge Asset Management\Bridge Asset Management\bin\Debug\Adigrat.accdb'." here's the code Public conn As OleDbConnection = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0; Data Source= .\\Adigrat.accdb;Persist …

Software Development vb.net
Member Avatar for YASHNIT
2
8K
Member Avatar for Violet_82

Hi guys, I seem to have an issue with a boolean method returining a value. Here is the code excerpt - irrelevant code omitted: public class StreamsTest { public static void main(String[] args) { String[] arr = new String[]{"a", "b", "c"}; //convert array to string with streams List<String> list = …

Software Development java
Member Avatar for masijade
0
3K
Member Avatar for gloria_4

Hello, Can someone help me adding two text box. example: textbox1 = (1) textbox2 =(50) textboxsum = (51) i have already values on textbox1 and textbox2, I want the two values of textbox automatically computed on textboxsum. Note: textchange event works but i need to manually input the values on …

Software Development vb.net
Member Avatar for mukiibi
0
9K
Member Avatar for judithSampathwa

hi there, I have a mask text box with the mask as $9999999999.99 as money. when i type in a value as 12345.67 it appears as $_____12345.67 and when i save it to the database it is saved in the correct format as 12345.67 as money as the data type. …

Software Development c#
Member Avatar for Renathu
0
8K
Member Avatar for Michal_5

Hi All. I have a problem with col sorting of my csv file public static void SORT(string input, int col_num) { string[] lines = input.Split(new[] { Environment.NewLine }, StringSplitOptions.None); var data = lines.Skip(1); var sorted = data.Select(line => new { SortKey = Int32.Parse(line.Split(';')[16]), Line = line } ).OrderBy(x => x.SortKey).Select(x …

Software Development c#
0
260
Member Avatar for richard.haines.39

Need Help! Here's the first production worker. Exception in thread "main" java.lang.IllegalArgumentException: Multiple decimal separators in pattern "#.##0.00" at java.text.DecimalFormat.applyPattern(DecimalFormat.java:2519) at java.text.DecimalFormat.<init>(DecimalFormat.java:416) at ProductionWorker.toString(ProductionWorker.java:42) at java.lang.String.valueOf(String.java:2826) at java.io.PrintStream.println(PrintStream.java:771) at WorkerDemo.main(WorkerDemo.java:10) Java Result: 1 BUILD SUCCESSFUL (total time: 8 seconds) // Employee Class public class Employee { private String name; private …

Software Development java
Member Avatar for Demonix
0
6K
Member Avatar for kshahnazari

I have an HDC file(that is taken by screen that I want to save it to any image file (prefer Bmp) , the thing is I don't really know the format and any function that I find for saving takes to many function inputs (that must be maximum 2). Any …

Software Development c++
Member Avatar for Tajuddin_1
0
5K
Member Avatar for Lee_20

Victor and Francis are looking to buy a house in a new development.After looking at the several of models,the three models they like are colonial,split-entry and single-story. The builder gave them the base price and the finished area in square feet of the three models.They want to know the model(s) …

Software Development algorithm c++
Member Avatar for Lee_20
0
1K
Member Avatar for amyvaulhausen

Parsing Large Numbers Question Hi All, I am writing some simple code to raise a base value to a power then perform some operations on the output. I have included the code I am using now, below ( see end of this message ), also see immediately below what this …

Software Development python
Member Avatar for rproffitt
0
404
Member Avatar for prudvi_1

can anyone help me with Add to cart functionality in xamarin(i.e) C# code using SQLite

Software Development c c# sqlite xamarin
Member Avatar for Dani
0
308
Member Avatar for Jayme65

Hi, Could you please help me figure out how I could bind "SelectedItems" of a listbox? Here I have a 'listbox_2' that contains a list of fruits and vegetables ;) There's another 'listbox_1' that contains groups of fruits and vegetables (under a list<of string> format...maybe is it my first error? …

Software Development apple
0
225
Member Avatar for DdoubleD

Demonstrates using .NET Remoting to broadcast to client subscribers. There are three parts: 1) Server.cs - for console app responsible for broadcasting messages (date/time stamp currently) 2) Client.cs - for console app that registers with server to subscribe to broadcasts 3) Agent.cs - class library that facilitates/eposes the interfaces for …

Software Development asp.net client-server lan-wan peer-to-peer
Member Avatar for HarishKJ
2
3K
Member Avatar for tomexlfc

Hello, I wrote some codes for student login. the codes checks for the "username", "password" as well as their type of "status", from the database. once this input are met, the student logs in successful, otherwise a message pops up. The problem i encountered is this, i have 11 student …

Software Development microsoft-access vb.net visual-basic
Member Avatar for The Acnor
0
12K
Member Avatar for Daniel_102

i want to add some text at the begining of every line in a text file. i'm only able to append text to the file Imports System.IO Module Module1 Sub Main() ' Append the first line of text to a new file. Using writer As StreamWriter = New StreamWriter("C:\append.txt", True) …

Software Development vb.net
Member Avatar for xrjf
0
3K
Member Avatar for Pk11

Hi, I'm writing in C my program and I have a problem with this pieces of code: //lib.h typedef struct Array { char **array; char *searchDirPath; char *searchFile; char *tmpFileName; int tmpFile; int arraySize; int currIndex; } Array; // lib.c Array* createArray(int size) { Array* newArray = calloc(1,sizeof(Array)); newArray->array = …

Software Development c
Member Avatar for kevenm
0
2K
Member Avatar for johnhacker

Hello, i need your help. I need to make a program which will make sum of digits in number e.g. 123 is 6 BUT, the number could be very big like 1000 digits long or more.(e.g. 1 005 854 684......) - of course without spaces So, i cannot use datatypes …

Software Development c
Member Avatar for johnhacker
0
991
Member Avatar for tun712

I was wandering aimlessly on google, I found [ReactOS](https://www.reactos.org/). It's interesting. I tried this OS, many windows applications are running well on it. But some latest applications are unable to run like **Firefox 65.0.1** I have few questions, * How worth is using this OS? * What is future of …

Software Development assembly c c++
Member Avatar for tun712
0
869
Member Avatar for guffadi

/** This code is supposed to take the user input of the length and breadth of the room in one class, get the user input of the material and cost from the other class and calculate the total cost.*/ import java.util.Scanner; //My first class class RoomFlooring { private String FloorMaterial; …

Software Development daniweb-bug java
Member Avatar for JamesCherrill
0
854
Member Avatar for guffadi

import java.util.Scanner; class Room_Dimension { private double length; private double width; public Room_Dimension(double length, double width) { this.length = length; this.width = width; } public void setLength(double length) { this.length = length; } public void setWidth(double width) { this.width = width; } public double getLength() { return length; } public …

Software Development daniweb-bug java
Member Avatar for JamesCherrill
0
615

The End.