43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for wai.yan.9678

A. Write a triangle solver that takes 3 inputs consisting of angles in degrees and length of sides in arbitrary units and, if possible (your program has to determine this), supplies all other angles and side lengths. There will be either 0 triangles, 1 triangle, 2 triangles or an infinite …

Software Development python
Member Avatar for JamesCherrill
0
28K
Member Avatar for Adm666

im intending to do a function that'll calculate the cosine of x like this: 1-x^2/2! + x^4/4! - x^6/6! ... and compiler says that it doesn't support "%lf" format and "undefined" to pow and cos ? why #include <stdio.h> #include <math.h> double my_cos(double c){ int i,k; double result=1.0; for(i=1; i<10; …

Software Development c
Member Avatar for Reverend Jim
0
467
Member Avatar for rouse

I am trying to use a link from a menu item to call a javaScript function that uses jQuery to place the contents of an HTML file into a given ID within a DIV on a page. Here is the link that points to the specific DIV and the also …

Software Development javascript-jquery
Member Avatar for rouse
0
273
Member Avatar for Karuna_2

dear sir i have one check box and one button.when i open form above button is hide. if i tick check box and close the form and when i re open form i want to display above button please help me how to do it. thank you wansa Public Class …

Software Development vb.net
Member Avatar for Reverend Jim
0
348
Member Avatar for ka-ii

i have learn this Java since last month for my work purposes. i wanted do this exercise. this is Vending Machine Program. I don't if write it in a wrong way. So i need somebody to show me the in my code. i know there must be wrong somewhere in …

Software Development java
Member Avatar for JamesCherrill
0
15K
Member Avatar for abu taher

When I click in listview control to send data in specific textbox then show the error. run time error 380 Invalid property value. I write this code: Private Sub LVEmp_ItemClick(ByVal Item As MSComctlLib.ListItem) With Item Me.txtSrNo = .Text Me.txtamount.Text = .SubItems(mlngCUST_LAST_IDX) Me.txtdate.Text = .SubItems(mlngCUST_LAST_IDX) End With End Sub

Software Development listview
Member Avatar for Reverend Jim
0
493
Member Avatar for Adm666

im intending to make a brackets checking code that will check some code and look if there's any brackets mistakes in it, i started like this : #include<stdio.h> int i=0; int isPaired(char c) /*checks if bracket matches*/ { if (c == '}' && s[--i] == '{') return 1; if (c …

Software Development c
Member Avatar for AssertNull
0
361
Member Avatar for ReneeJA

Please, i need a teacher to help me out...i am at the intro stage and i was wondering if someone would walk me through this please..i would appreciate it. Mr. Clark employs students who are exempt from taxes and others who are not. Write a program that will calculate and …

Software Development c c# c++
Member Avatar for owlowl076
0
1K
Member Avatar for tegaelam

Hello all, I am having issues with a homework assignment. My assignment is as follows: Write a program that uses a loop to display Pattern A below, followed by another loop that displays Pattern B. Pattern A: + ++ +++ ++++ +++++ ++++++ +++++++ ++++++++ +++++++++ ++++++++++ Pattern B: ++++++++++ …

Software Development c++ display
Member Avatar for Reverend Jim
0
3K
Member Avatar for daino

Would anyone know how to put user input into a Char Array. I've provided the code below It doesn't work so I've tried many variations like making char wrd as char wrd[20] but still nothing. I think I'm missing a fundamental point here. All I want to do is have …

Software Development c++
Member Avatar for deceptikon
0
43K
Member Avatar for Clocker

Hi guys i am trying to save information in to my access database , i created new instance of an ADODB.Connection object and ADODB.Recordset object but visual studio 2005 is given me an error message that ADODB.connection and ADODB.Recordset are defined, please can any one help this is my code …

Software Development vb.net visual-studio
Member Avatar for chilaka2
0
5K
Member Avatar for Sagar_9

Hello All, I'm currently working on a project which requires me to encrypt multiple text files at one go. I am able to retrieve the name of the files through listfiles() but how am i supposed to pass those files to File variable so that the encrypt method can encrypt …

Software Development algorithm encryption java
Member Avatar for Sagar_9
0
2K
Member Avatar for k2k

hi, does anyone know how to insert a background picture to a JPanel? I have googled around, found something seem more difficult than it should be, and a simple one as below but not showing the pic. [code] midBoard = new JPanel(); JLabel pic = new JLabel(new ImageIcon("Sunset.jpg")); //midBoard.setBackground(java.awt.Color.RED); midBoard.add(pic); …

Software Development java
Member Avatar for JamesCherrill
0
14K
Member Avatar for Sameer_8

Hi i have other problems in other class the questions is ** The Person class Create a class called "Person" that includes three pieces of information as instance variables: a name, address, and age. Your class should have a constructor that initializes the three instance variables. Provide a set and …

Software Development java
Member Avatar for Sameer_8
0
200
Member Avatar for Rajan_8

I am doing a mini project on Caesar cipher, I found one program but can't understand the 29th line "key = -key". Please help me. # Caesar Cipher MAX_KEY_SIZE = 26 def getMode(): print('Do you wish to encrypt or decrypt a message?') print("'e' for encrypt and 'd' for decrypt") while …

Software Development python
Member Avatar for Rajan_8
0
694
Member Avatar for gozo12

hello what is the code of if scroll bar of listbox move i somethins like this ? [CODE] if listbox1.scrollmove then textbox.text="" end if [/CODE]

Software Development vb.net
Member Avatar for Xavier_5
0
3K
Member Avatar for naazsayed

Hi, i am trying to build Employee Attendance system and was successful in assigning TAGS to employees.now i want to calculate in/out timings of employees and which TAG swapped His/Her TAG without displaying any data to end user. i had tried basic sql query but seems to be not working. …

Software Development c# sql visual-studio
Member Avatar for rproffitt
0
327
Member Avatar for Learner010

we use `Print` to print text to form in vb6 and dont know how to print text to window form in vb.net please explain how to achieve it . . .

Software Development vb.net
Member Avatar for munawer_1
0
3K
Member Avatar for Latrell_vie

I have the following code and i dont understand why P4(3,7)is giving returnvalue true (1) , since here 7(ConTemp.XYCoord[1]) is bigger than 5 (ReCoordRo.XYCoord[1]), so i would like to know a way to monitor the boolean Rechteck1.contains(P4), watch windows doesnt give me that option, so how do i go about …

Software Development c++
Member Avatar for ddanbe
0
683
Member Avatar for Clif40RD

Hi Guys, I have a data bound grid-view with action buttons for updating and deleting items in a users shopping cart. The grid-view uses a 'SelectMethod' in the code behind to generate the data. The problem I'm having is that every time I edit some data in the grid-view, the …

Software Development asp.net
Member Avatar for ddanbe
0
1K
Member Avatar for sciprog1

Hello Members, I want to write a C program which creates two threads and uses a semaphore (as a critical section) to sleep for 1 second and then terminate. I am having a hard time with some of the C Syntax for semaphores. Is it possible to post an example …

Software Development c
Member Avatar for charlottegracie
0
4K
Member Avatar for nadiam

Hello. I have an exercisse to convert from 24-hour to 12-hour clock. code: /*ALGORITHM READ INPUT VALUE IN 24-HOUR FORMAT DISPLAY THE EQUIVALENT 12-HOUR CLOCK WITH THE PERIODS AM OR PM */ #include<stdio.h> #include<conio.h> int InputValid24Hour(void); void Output12HourClock(int); void main() { int data; data = InputValid24Hour(); Output12HourClock(data); _getch(); } int …

Software Development algorithm c display
Member Avatar for nadiam
0
482
Member Avatar for kishpopboy

I'm Currently working with a payroll system with daily time record.. I'm having troubles with their time records, what i did is this, i created 6 textboxes on the form the 1st textbox is for the AM IN 2nd is for the Lunch OUT the 3rd Is for the total …

Software Development vb.net visual-basic
Member Avatar for CERTIVE
0
5K
Member Avatar for Minimalist

Good day guys, here is another question I have, working with vb.net community 15. I have a large datagridview to display all lessons for my school timetabling program. There could be up to 14 timeslots = lessons per day. Now I like a timetabler to be able swap days like …

Software Development vb.net
Member Avatar for ddanbe
0
840
Member Avatar for Anel_1

**A newbie would appreciate if someone could give him a pseudocode or any kind of explanation for the part of the code where the actual algorithm for matrix determinant is written.** using System; namespace Determinant { class Program { public static double DET(int n, double[,] Mat) { double d = …

Software Development c c# matrix-multiplication
Member Avatar for Anel_1
0
6K
Member Avatar for Minimalist

Good day community, I have completed vb.net program (a school timetabling program) and I am in the process to create a website. At the moment word -press on wamp server and parallel Microsoft Expression Web 4. To sell the program off the website, either clickonce or downloaded, I request the …

Software Development vb.net
Member Avatar for Minimalist
0
311
Member Avatar for Karuna_2

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click 'Using writer As System.IO.StreamWriter = New System.IO.StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory), "Word List.Txt", True) Using writer As System.IO.StreamWriter = New System.IO.StreamWriter("C:\Users\Home\Desktop\lessons Word\Word List.Txt", True) Dim curLine As String = TextBox1.Text If (TextBox1.Text.Count > 1) Then curLine = "" For Each line As …

Software Development vb.net
Member Avatar for tinstaafl
0
455
Member Avatar for long5001

Hi, I am trying to write a simple script that reads a file for two time stamps and then finds the delta. However, I can't get passed converting the time strings to datetime objects. I haven't done any coding since college and I everything I've read says this code should …

Software Development python
Member Avatar for long5001
0
974
Member Avatar for Shereen_1

Write a C++ program that inputs the number of students in a class and the number of tests and the grades of the tests conducted by each student, then it calculates the average of the student and outputs related information as given below. The Average of a student is calculated …

Software Development c c# c++
Member Avatar for JamesCherrill
0
333
Member Avatar for naazsayed

HI , There are TWO Excel Files in my Program which I am trying to upload to a FTP server and then later Download it and its getting uploaded and downloaded with no error but when i try to open the file i get error message its corrupted or not …

Software Development c# file-stream file-system visual-studio
Member Avatar for naazsayed
0
1K
Member Avatar for Saboor880

Hi! I have create a simple desktop application (CRUD operation) using java derby by using the library "derbyclient.jar" I want to deploy it on another computer which not have netbeans IDE installed. I ''clean and build '' the project and a jar file created in dist folder of my project …

Software Development ide java java-netbeans
Member Avatar for JamesCherrill
0
611
Member Avatar for Hawk123

i can't get DateTimePicker to insert into Access databse. I've tried all the suggestion i can find from this forum, so i'm thinking my problem is different? my table has a column date which has a Date/Time format my code [CODE] Dim cmd As OleDbCommand Dim sqlstr As String, ans …

Software Development microsoft-access vb.net
Member Avatar for izzah_3
0
3K
Member Avatar for John_147

i've got code like this naglibog.CommandText = "UPDATE ptransaction " & _ " SET Quantityt = " & mm & _ ", Partial_totalt='" & jj & "'" & _ " WHERE Product_Codet =" & intProduct11_Code & "'" & "'AND soldtime = '" & stime & "'" naglibog.ExecuteNonQuery() libogsya.CommandText = "UPDATE …

Software Development vb.net visual-basic
Member Avatar for Reverend Jim
0
231
Member Avatar for anousha

hi i'm anousha and i have a big problem ive an aasignment to create a calculator in VB.net to prfrom addition and subtraction then show the results using mouse controls. Can you give me a hit how to do it plz?

Software Development vb.net
Member Avatar for Reverend Jim
0
786
Member Avatar for Begginnerdev

Hello Daniweb, and thank you for taking the time to read this post. I have a question of efficiency. I am wondering, what is the most efficient way to print from a listview. The listview's values are loaded from a database, and I would like to print from that listview. …

Software Development listview vb.net
Member Avatar for Ivan_14
0
6K
Member Avatar for sankar_2

the text file has more than one word. the user to put the input from the jtextfield and get the input related word from text file, to display the jlist how

Software Development java
Member Avatar for JamesCherrill
0
132
Member Avatar for Satyam_1

In vb.net application I have 10 Textbox and value entered by Barcode scanner So when one Textbox1 get the value by Barcode scanner the focus moved automatically to another Textbox2 and so on. I have this code but its working. Private Sub A1TextBox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) …

Software Development vb.net
Member Avatar for Mr.M
0
1K
Member Avatar for Jezer

Hello i am creating the assembly program that accepts a single character and display the alphabet . The requirements are (1) The input character should be displayed (2) The input of the single uppercase letter should be displayed the lowercase letter. (3) The alphabet should be displayed horizontal position and …

Software Development assembly
1
212
Member Avatar for Bernardo_3

Hi guys. i'm new to this forum and new to programming in general. ive had some classes of vb.net and im just starting to actually play around with vb. im trying to make a program that starts with an image in a certain position (in ths case a car) and …

Software Development image visual-basic
Member Avatar for Bernardo_3
0
365
Member Avatar for Shirin_2

Hi PerlGurus, I am really new to perl and liitle handson with the concepts here. I am trying to learn the hash & Array concepts and come up a self exercise to do practice. *Got two files * # inFile01 as below: # CLAYCOUNTY;Wood;statecode=FL CLAYCOUNTY;Wood;statecode=FL SUWANNEECOUNTY;Wood;statecode=FL SUWANNEECOUNTY;Wood;statecode=TX SUWANNEECOUNTY;Wood;statecode=TX SUWANNEECOUNTY;Wood;statecode=TX NASSAUCOUNTY;Wood;statecode=UT …

Software Development perl
Member Avatar for Shirin_2
0
999
Member Avatar for vivekH

how to export my table data which is in mysql database to a csv file I am not getting any error or exception but my csv file is empty after successful running this code. code what i did: import java.io.FileWriter; import java.sql.Connection; import java.sql.DriverManager; import java.sql.Statement; import java.sql.ResultSet; import java.sql.SQLException; …

Software Development java mysql
Member Avatar for aditya_20
0
12K
Member Avatar for JohnMcPherson

Hello, I am working on a new screen for a program used by the U.S. Department of Labor. I am getting a signal SEGV (access to address exceeded protections) when I try to excute the command snprintf(rowh[1] + 30, 4, "%4d", baseyr + 1);. The string I am trying to …

Software Development c
Member Avatar for rproffitt
0
314
Member Avatar for Sherwin_4

Good morning everyone, The library will be home, 0800 till 2100. I've been working on trying my loops in my hailstone sequence into recursions. It seem recursion can easrier to do, instead of creating loops. I say seem, because now I have come to halt on my progress. The halt …

Software Development c++
Member Avatar for JamesCherrill
0
783
Member Avatar for Jhovyn

Why am I getting an error "Operation is not allowed when the object is open"....Here is my code Option Explicit Public Report As New CrystalReport1 Public mvCn As New ADODB.Connection Public Function printReport() Dim strConnectionString As String Dim rs As ADODB.Recordset Dim strScript As String strConnectionString = "Provider=SQLOLEDB............" mvCn.ConnectionString = …

Software Development visual-basic
0
177
Member Avatar for Nazneen_1

Hi , i need to add values in my Grid-View at Run time and save it to the database.i am displaying a particular folder filenames in gridview now after displaying need to add two columns and insert values at runtime in it and then save it to the database.i tried …

Software Development
Member Avatar for ddanbe
0
657
Member Avatar for Branislav_1

Program sifrarnik; Uses sysutils; Type myrecord=Record num:integer; itemname:String[20]; price:Integer; End; Var data:array[1..10] of myrecord; doc:file of myrecord; operatingnum:integer;//item number used for reading and writeing into base error1,choice1,i,j,n,a:integer; begin Repeat Begin WriteLn('1. Add items date':10); WriteLn('2. See items data':10); WriteLn('3. Close'); Write('Chose: ':10); ReadLn(choice1); Case choice1 of 1 : Begin Assign(doc,'myfile.dat'); …

Software Development pascal
Member Avatar for Branislav_1
0
581
Member Avatar for Adm666

So i've made a Node class : public class IntNode { private int _value; private IntNode _next; public IntNode(int v, IntNode n) { _value = v; _next = n; } public int getValue() { return _value; } public IntNode getNext() { return _next; } public void setValue(int v) { _value …

Software Development java linked-list
Member Avatar for JamesCherrill
0
930
Member Avatar for Monique_2

Modify the Week Two Java non-GUI console application using NetBeans IDE (or jGrasp) to meet these additional and changed business requirements: • The company has recently changed its total annual compensation policy to improve sales. • A salesperson will continue to earn a fixed salary of $35,000.00. The current sales …

Software Development gui ide java java-netbeans
Member Avatar for JamesCherrill
0
563
Member Avatar for Adm666

is there anyway to improve my code's time complexity or memory's complexity ? (without using advanced methods - im a beginner) its a method that gets an array filled with zeroes and other numbers, and it changes each number(which is not a zero) to the distance of the closest zero …

Software Development java
Member Avatar for JamesCherrill
0
413
Member Avatar for Monique_2

Part 2 to Salesperson Java Application, still new to this. class SalesPerson { /** * Fixed Salary */ final double fixedSalary = 35000; /** * Current Commission Rate */ public double curCommissionRate = 0.15; /** * Accrued Commission */ public double curCommission = 0; /** * Total Compensation */ public …

Software Development java
0
229

The End.