132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Gl753

Write a program to compute the computer programming grades of 8 IT students. Randomly create student numbers for each of the students and store each in an array. The program should take the input of (validate the input where appropriate): Names of Students and store them in an array. Addresses …

Software Development java
Member Avatar for JamesCherrill
0
229
Member Avatar for mollyorgasm

i need help with my code Give the class methods to provide name and SID to a newly created Object (a constructor) and a method to determine the Grade of a piece of work. and to Write a Main method in another class which creates an instance of this class …

Software Development
Member Avatar for castajiz_2
0
152
Member Avatar for Lethugs

Hi, is it possible to combine Stored Procedure and Text Command Type in Select Statement? I have a stored procedure that compute available items, it quite a bit long select statement, now i need to call this statement in another select statement which is in text command type, how will …

Software Development sql vb.net
Member Avatar for ryanjayson
0
498
Member Avatar for glao

hello, I want to compare 2 strings.I want to find if a list with characters contains all the letters in a string. If **all** the letters in the string are in the list. For example: > mystring='abc' > mylist=['a','b','c'] must return True > > mystring='abc' > mylist=['a','c','b'] must return True …

Software Development python
Member Avatar for glao
0
505
Member Avatar for murali2489

Dear Team, I am writing a Swing application for my project which gets the user information and saves it in a database and then displays in a JTable. I thought like, instead of manually updating the data from our client website, why not read the data from the site and …

Software Development java java-swing
Member Avatar for murali2489
0
253
Member Avatar for PulsarScript

Hi all,can enyone give a solution ,how to emplement random function,so it could randomly select numbers from the saved text file(grid) and output in matrix . What i try to do is:Create animation project,but would like color matrix as a background.What i did so far is came up to the …

Software Development c++
Member Avatar for owenransen
0
190
Member Avatar for Wayne.H94

i have some code about the Hanoi Tower here #include<stdio.h> #include<conio.h> #include<stdlib.h> void cthap(int m,int x1,int y1,int x2,int y2,int x3,int y3) { if(m<1) return; else if(m==1) printf("\nchuyen tang 1 tu (%d,%d) tới (%d,%d) ",m,x1,y1,x2,y2); else { cthap(m-1,x1,y1-1,x2,y2,x3,y3); printf("\nchuyen tang %d (%d %d) toi tang (%d %d)",m,x1,y1,x2,y2); cthap(m-1,x3,y3,x2,y2-1,x1,y1); } } void …

Software Development c++
Member Avatar for owenransen
0
171
Member Avatar for vishalrajole

Error: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at assignment.MainFrame.validateEmail(MainFrame.java:324) at assignment.MainFrame.btnRegisterActionPerformed(MainFrame.java:208) at assignment.MainFrame.access$000(MainFrame.java:19) at assignment.MainFrame$1.actionPerformed(MainFrame.java:80) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) at java.awt.Component.processMouseEvent(Component.java:6505) at javax.swing.JComponent.processMouseEvent(JComponent.java:3320) at java.awt.Component.processEvent(Component.java:6270) at java.awt.Container.processEvent(Container.java:2229) at java.awt.Component.dispatchEventImpl(Component.java:4861) at java.awt.Container.dispatchEventImpl(Container.java:2287) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422) at java.awt.Container.dispatchEventImpl(Container.java:2273) at java.awt.Window.dispatchEventImpl(Window.java:2719) at java.awt.Component.dispatchEvent(Component.java:4687) …

Software Development java java-swing oracle regex
0
105
Member Avatar for kayed.alsalim

ok guys I really need help with this homework assignment that my teacher sent I really dont know where to start a little help will be great. You are to write a program that will compute grades. Its input will be a file containing semester scores in TAB-separated format as …

Software Development python
Member Avatar for vmanes
0
219
Member Avatar for Prithvi.R.K

I was trying to write a code for union and intersection of two sets but i got an error which states clrscr and exit are not declared in scope. I have included the header files but still i get this error. Can some one help me out in this?

Software Development c
Member Avatar for Prithvi.R.K
0
1K
Member Avatar for jemartalaban_1

For our project where using a Touch Screen as pointer, and when the user tapped the screen the timer or progress bar will reset to 0 then if the screen didn't tapped in 2 minutes the program will back to login form. Please help.

Software Development visual-basic
Member Avatar for jemartalaban_1
0
120
Member Avatar for ObSys

Hey guys I recent wrote the deal or no deal game in Java for fun. It currently operates using a Command driven interface where users input numbers based on textual feedback. My aim is to develop this into a full GUI interface, however, I have not met GUI's yet in …

Software Development gaming gui java
Member Avatar for JamesCherrill
0
467
Member Avatar for glao

Hello, my code works fine when I don't have white spaces but I can't make it work when the string has. I am trying sth like: def lengthR(mystring): count=0 if mystring=='': return 0 while (mystring!='') and (' ' not in mystring): mystring=mystring[0:-1] lengthR(mystring) count+=1 return count but it returns 0 …

Software Development python
Member Avatar for glao
0
193
Member Avatar for Prithiv_1

I have an openstack setup with ceilometer (polslter and notifier) installed. I am getting the required metrics like Storaeg_objects_incoming_bytes, storage_objects_size of swift in the metering tab. how ceilometer is getting these metrics.. what are the underlying components of swift which ceilometer api is communicating.. i am writing a python code …

Software Development api python
Member Avatar for atul_3
0
244
Member Avatar for littledevils326

I am wanting to measure the performance of an algorithm which I've created, and for some reason the value decreases significantly as I run through my loop

Software Development java
Member Avatar for ObSys
0
244
Member Avatar for theUserMan

# Heading Here # Trying to add a webcam fee to a panel inside of my wxpython GUI. I have buttons on the left currently, and a black panel on the right. I'm confused as to how to add a webcam feed to that panel? here is the code being …

Software Development gui python webcam
Member Avatar for ZZucker
0
478
Member Avatar for pheonixkid

Hi, i'm trying to make 3 different input scenarios using argv. In the code below where there is just one input so when it is argv[0] the calendar for this month comes up, when it is argv[1] so when there are two inputs, it will printout the calendar for the …

Software Development c
Member Avatar for Ancient Dragon
0
2K
Member Avatar for foxhatxd

The following is a function I wrote to go along with a minesweeper program. For some crazy reason, the inner loop gets skipped after i begins to increment. For example, after i and j have been reduced by one: n = 3, k =3 i = 0 j = 0, …

Software Development c
Member Avatar for foxhatxd
0
167
Member Avatar for krystosan

It seems like the slotDirChanged is getting executed twice, becuase everything seems to be working fine, import datetime from PyQt4 import QtGui,QtCore from PyQt4.QtCore import pyqtSlot import sys import os class WatchFilesBin(QtGui.QMainWindow): def __init__(self, lookinpath=None): super(WatchFilesBin, self).__init__() self._filesBinPath = lookinpath createFilesBin(self._filesBinPath) self.filesList = os.listdir(self._filesBinPath) print self.filesList self.fileSysWatcher = QtCore.QFileSystemWatcher() def …

Software Development python
Member Avatar for krystosan
0
1K
Member Avatar for asif49

This is kind of what I'm trying to do. I'd like to do something, have a mini 1 second wait then do something else. The below example illustrates... private void someTypeOfMouseClicked(java.awt.event.MouseEvent evt) { handleMouseClick(j); } private void handleMouseClick(JLabel j) { j.setText("hi"); Thread.sleep(1000); j.setText("yo"); } What happens is that it takes …

Software Development gui java
Member Avatar for asif49
0
126
Member Avatar for super.sam1

C++ program to find sum of marks entered by 30 students using for loop or while loop/

Software Development c c# c++ mathematics
Member Avatar for rajol.singh1
0
636
Member Avatar for cambalinho

see my windows procedure: LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { bool blnMouseEnter=false; switch(msg) { case WM_CLOSE: DestroyWindow(hwnd); break; case WM_KEYUP: if (wParam ==VK_ESCAPE) DestroyWindow(hwnd); else { char strDataToSend[32]; sprintf(strDataToSend, "%c", wParam); MessageBox(NULL,strDataToSend, "keyselected",MB_OK); } break; case WM_MOUSEMOVE: SetWindowText(hwnd,"hi"); break; case WM_MOUSELEAVE://is ignored :( SetWindowText(hwnd,"bye"); break; …

Software Development api c++ windows-api
Member Avatar for cambalinho
0
3K
Member Avatar for PulsarScript

Hi to all,could anyone please suggest the animation project? I am on the first year of software development course and need to start with animation project.Any ideas,suggestions?Regards.

Software Development c++
Member Avatar for llgms
0
146
Member Avatar for ragnacrap

Does anybody know how to make a program that calculates your work hours? I tried this code, but it's going all wrong. #include<stdio.h> #include<stdlib.h> #include<conio.h> #include<ctype.h> #include<string.h> #include<time.h> char* timein[5], timeout[5], p; int totaltime, ticktock, hour, minute, rate; FILE* f; int main(){ clrscr(); CreateTimeFile(); GetTimes(); DisplayFinalInfo(); getch(); } CreateTimeFile(){ f …

Software Development c
Member Avatar for Banfa
0
333
Member Avatar for martin.krivos.9

Hi i need windows command line to find all files that end with .jpg.pdf and remove the .jpg part so it will be pure .pdf at the end, i have following line for /R %DIR% %%i in (*.jpg.pdf) do set without=%i:~0,-8% & rename %%i "%%without.pdf" It should remove last 8 …

Software Development microsoft pdf shell-scripting
Member Avatar for dodo2013
0
520
Member Avatar for ragnacrap

I'm doing a C program where the user is asked to enter an employee number. I know how to make the program ask again if the number doesn't exist. However, I don't know how to have the program check it from a *.txt file like this. EMP10-1234,smith_john,2 EMP08-0321,kent_brenda,1 EMP10-0501,delcambre_kory,3 EMP11-0112,pregeant_mark,3 …

Software Development c c# c++
Member Avatar for ragnacrap
0
386
Member Avatar for kkjaykamau

I have the following code that is returning an error - not all code paths return a value. static class Products { public static List<ProductResponse> GetProducts(string productsURL) <---- error thrown here. { //List<ProductResponse> products = new List<ProductResponse>(); try { var w = new WebClient(); var jsonData = string.Empty; // make …

Software Development json
Member Avatar for ddanbe
0
264
Member Avatar for castajiz_2

I ll give my best for this post not to be too long. I would like to make a program for my colleagues, students so they can check their results when they finish there task or if they want to check results first and then give it a try (doesn …

Software Development mathematics
Member Avatar for ddanbe
0
192
Member Avatar for Xcelled194

Hi guys, I'm an experienced VB programmer, but recently started using C# and I like it. But what I need to do now, is get a list of all printers installed on the computer (not a problem) and print a page to all of them (also not a problem)... BUT …

Software Development adobe pdf printer xml
Member Avatar for sahil000005
0
1K
Member Avatar for Gus_19

I'm not even sure if I'm on the right track, but I am trying to count the excel rows for a worksheet and display them in a textox on my form. I've assuming it would be best to write the row count in the form load procedure and this is …

Software Development display vb.net
Member Avatar for Lethugs
0
222
Member Avatar for supernova122

I am using VB.net 2008 and .net 2.0 framework. After I modified a class library in development environment, I build a particular class library in visual studio 2008 and dll file get generated in the bin directory. I copied this dll file to the bin directory in production environment. But …

Software Development assembly vb.net visual-studio
Member Avatar for tinstaafl
0
381
Member Avatar for Josias_1

Hello everyone i have an issue with this problem, the problem is i need to reset the count after every line in the file, i put a comment so you can see where i want to reset the count. The program is suppose to cut each line after every specified …

Software Development python
Member Avatar for TrustyTony
0
336
Member Avatar for Blogboy2

his one i'm working c# try to use the account database from account to customerid and then the view which is page must have from account dropdown box and toaccount dropdown box and enter the amount the submit which result the amount is deducted from balance I'm focusing on Account …

Software Development asp wordpress
0
129
Member Avatar for prashantsharmazz

KNOW THE LOGIC BEHIND FACTORIAL PROGRAM And CALCULATE FACTORIAL OF VERY LARGE NUMBERS ! **WHat is the most efficient way of calculating the factorial of the number ?** http://www.lifengadget.com/lifengadget/program-to-find-factorial-of-number-in-c-plusplus/

Software Development c++
Member Avatar for prashantsharmazz
0
122
Member Avatar for drgr33n

Hey Guys, Was reading a few posts on here and looks like a cool place to come and try to broaden my knowledge and try and teach myself C++. I've only been reading a few days and I decided to try and create a simple calculator. I wanted to see …

Software Development c++
Member Avatar for Juan_8
0
378
Member Avatar for glao

Hello , I am trying to implement this function: def getGuessedWord(theword, wordlist): for letter in theword: if letter in wordlist: print letter, else: print '_', For example: theword = 'hi' wordlist = ['e', 'i', 'o', 's'] must return : _i but it returns : _iNone I tried : for letter …

Software Development python
Member Avatar for glao
0
150
Member Avatar for Warren_1

Here is my code.... #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> struct data{ int CustomerID; char Forename[15]; char Surname[20]; }; void CreateID (); //int checksize(); //void check number(); void CreateFirst (); int checklen(); int checknum(); void CreateLast(); int checklength(); //int checknumber(); void ViewRecord(); int main() { struct data records[2000]; …

Software Development c
Member Avatar for Warren_1
0
132
Member Avatar for Rebecca_2

In the parent directory O, I have a series of directories Aa, where a varies from 0-1. In each of these I have a series of directories Bb, where b varies from 0-1. In each of these there are the input/output files AaBbCc.dat and AaBbCc.out for some calculations [c also …

Software Development python
Member Avatar for woooee
0
392
Member Avatar for catastrophe2

hi i have this assignment in c++, i did it, but there is one tiny error i cant figure out the solution to it. the program below is supposed to take in 3 elements value inputs from user for 3 students. so if you run it, you get input student1 …

Software Development c++
Member Avatar for catastrophe2
0
189
Member Avatar for kur3k

I create reports by means of RML(XML) and parse to PDF (use pyjon.reports). In output pdf polish char not display my xml file <?xml version="1.0" encoding="utf-8" standalone="no" ?> <!DOCTYPE document SYSTEM "rml.dtd"> <document filename="encoding-test-utf8.pdf"> <template> <pageTemplate id="main"> <frame id="first" x1="72" y1="72" width="451" height="698"/> </pageTemplate> </template> <stylesheet> </stylesheet> <story> <title>Test of …

Software Development pdf python
Member Avatar for shadia.mohamed.9_1
0
839
Member Avatar for VUEKID

I have read a text file to console and printed the file after reading, int textLength=0 int c; int c; FILE *file; file = fopen("ModestProposal.txt", "r"); if (file) { while ((c = getc(file)) != EOF) putchar(c); //fclose(file); } textLength = strlen(c);//get the length of the text How come I can …

Software Development c++
Member Avatar for VUEKID
0
181
Member Avatar for KhubaibQaiser

I am making a programe based on socket programing in which client can download one of the listed books from server. I have come up with this code but the problems with it are: 1) It doesnt downloads pdf file greater than 1MB. 2) It allows client to download 1 …

Software Development ide java socket-programming
Member Avatar for JamesCherrill
0
308
Member Avatar for pritaeas

I'm currently looking into the automatic generation of release notes (or change log) when we create a new release. I'm wondering how any of you tackle this. So far I've found these four interesting options: - https://tfsreleasenotes.codeplex.com/ - https://tfschangelog.codeplex.com/ - http://fromthedevtrenches.blogspot.nl/2013/04/automatically-generate-tfs-release.html - http://mskold.blogspot.nl/2012/05/generate-accumulated-release-notes-in.html Any insights greatly appreciated.

Software Development
Member Avatar for Ketsuekiame
0
176
Member Avatar for lf95

Can someone help me write a program to compute the computer programming grades of 8 IT students. ● Randomly create student numbers for each of the students and store each in an array. The program should take the input of (validate the input where appropriate): ● Names of Students and …

Software Development java
Member Avatar for JamesCherrill
0
354
Member Avatar for johnson_2

I have a text file points.txt which is formatted by Point2D/Point3D , X ,Y points.txt Point2D, [-9, -9] Point3D, [-9, -9, -9] Point2D, [-99, -99] Point2D, [-999, -999] Point3D, [-999, -999, -999] What I want to do is 1) retrieve the X and Y values that belong to Point2D from …

Software Development algorithm c++
Member Avatar for johnson_2
0
665
Member Avatar for Su Myat Naing
0
88
Member Avatar for ZER09

I tried to create a context menu for a griedview and when i test it it works greacefully private void gridView1_PopupMenuShowing(object sender, DevExpress.XtraGrid.Views.Grid.PopupMenuShowingEventArgs e) { ContextMenu c = new ContextMenu(); DevExpress.XtraGrid.Views.Grid.GridView view = (DevExpress.XtraGrid.Views.Grid.GridView)sender; DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo HitInfo = view.CalcHitInfo(e.Point); if (HitInfo.InRow) { view.FocusedRowHandle = HitInfo.RowHandle; c.MenuItems.Clear(); c.MenuItems.Add("sample", sampsss); c.MenuItems.Add("sample", sampsss2); c.Show(view.GridControl, …

Software Development
Member Avatar for Merletyco
0
387
Member Avatar for catastrophe2

hello we have to make a program that grades multiple choice exams from input files by the user and outputs the id of each student followed by their appropriate score. here are the input files: > exam file abcdefabcdefabcdefab 1234567 abcdefabcdefabcdefab 9876543 abddefbbbdefcbcdefac 5554446 abcdefabcdefabcdef 4445556 abcdefabcdefabcdefabcd where the first …

Software Development c++
Member Avatar for catastrophe2
0
226
Member Avatar for kerek2

Hi All's, really need your's help regarding this issues. I have one Access Database where the Table = ST , Column =DATE(Datetime),CLICK(Integer). I want to get the total value form CLICK column by Month.I'm already tried with this but cannot : Dim cmd As OleDbCommand = New OleDbCommand("SELECT * FROM …

Software Development vb.net
Member Avatar for kerek2
0
560
Member Avatar for LucyLogic

Hey guys, I need assistance with my program need to write a program that writes a series of random numbers to a file. Each random number should be in the range of 1 through 100. The application should let the user specify how many random numbers the file will hold. …

Software Development file-system python
Member Avatar for LucyLogic
0
10K

The End.