64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for UNDER-18 FG

Hi. I need to develop a C source code that accept all marks and counts the total percentage of the subject "STIV1013". And, based on the total percent obtained, I need to determine the grade acquired for the subject "STIV1013" based on the grade table given. Look below, for a …

Member Avatar for Adak
0
162
Member Avatar for buzzykerbox

Hello, I'm creating a blackjack game,and would like the function cardToString to return the file name of a card e.g "AceDiamonds.gif" and fill an array called deck,its only returning one card and not filling the array thank you in advance [CODE]<script> var dealer_hand = new Array(); var player_hand = new …

0
84
Member Avatar for Despairy

i wrote a program that needs to act like the SHELL in linux everytime the user enters a command the shell needs to get it and do the action by sending a fork child to do so now i read using FGETS and get a char array containing the command …

0
105
Member Avatar for jcAmats

I’m creating a program that displays random lines from a file. I have 8 lines on my text file and after displaying the last/8th random line… it displays [B][I]Segmentation fault[/I][/B] and then terminates the program. The program should display a message saying that there are no lines left to display. …

Member Avatar for jcAmats
0
11K
Member Avatar for Octet

I am creating a database search and I am having a bit of issue when I want to return to my main menu. I have attempted to use loops with no success, could anyone suggest how I can do this? [code] #include <iostream> #include <fstream> #include <windows.h> #include <string> using …

Member Avatar for Octet
0
303
Member Avatar for David321

I'm supposed to be making an inventory program with a logo. I can get the inventory part working fine in a jframe, and I can get the logo working fine in jpanel, but if I combine them it starts acting really weird. Every time I click a button, it generates …

Member Avatar for JamesCherrill
0
202
Member Avatar for Raik.48

Hello, I have chosen a project of developing a 2d action-adventure game with some rpg elements, in-game puzzles. I have considered developing with C++ and OpenGL. I do not have prior knowledge of these language but I had good grasp on C programming language. For C++ and OpenGL, I have …

Member Avatar for Raik.48
0
462
Member Avatar for Stefano Mtangoo

Hi, I need to concatanate lines based on regex. Lines to be concatanated are scattered. All lines begin with number$number$number$number$sentences. There is nothing to mark the end of sentence, only the beginning. Here is an example. I want to rewrite this one [CODE]2 $5$233$ check big cat if it have …

Member Avatar for Stefano Mtangoo
0
215
Member Avatar for Unsated

Hi everyone i have this simple banking program here and i was hoping someone could help me jazz it up.. Something simple like making it easier to use or making it look better. Just trying to go beyond what was asked for.. [CODE] import javax.swing.JOptionPane; class MiniLab5z { public static …

Member Avatar for JamesCherrill
0
168
Member Avatar for toldav

Any will help will appreciated. Every time I run my code my list city still visible at run time how do i make not to visible when I run my vb code. [CODE]lstCity.Visible = False[/CODE]

Member Avatar for TechSupportGeek
0
168
Member Avatar for IcyFire

I have an assignment to make a craps game in c. The program i wrote runs but it always ends before it should. I think that the while loops in main have a problem but im not exactly sure wat the problem is because ive reviewed this code over and …

Member Avatar for IcyFire
0
2K
Member Avatar for Octet

I am creating a MAC Database for my home network which shall contain a list of names of those on the network and allow me to quickly search for people when I get a warning about a user. I am using switch statements to go to each main section (sorry, …

Member Avatar for Octet
0
193
Member Avatar for TurkAlush

Hey Can someone explain me how I can make a simple calculator, which can plus to numbers together.. And later make the program ask if user wants to multiply or divide..?

Member Avatar for TurkAlush
0
1K
Member Avatar for dre-logics

I use Visual Basic 2008 with Mysql I have a table article with the following data : Articlenb - Productcode - amount 1 - XXL - 1 2 - 12 - 1 3 - 10 - 1 4 - 1.5 - 1 5 - 7 - 1 6 - 4 …

Member Avatar for adam_k
0
193
Member Avatar for ekin5683

hye..its kinda easy..but i still cant solve it.. [QUOTE]1.Write a program that has an array of at least 10 string objects that hold student’s ids and names, you may make-up your own strings or use the following: “1000614921, Abdulkadir Musa Jibrin” “1000717859, Abdulwahab Ali Esmail Al-Nawah” “1000716597, Ahmed Ebrahim Mohammed …

Member Avatar for ekin5683
0
2K
Member Avatar for Joey_Brown

Hello; Is there a way in java to create a flip card effect. I have two pictures, that are to form a double sided card. Ive come with a way to snapshot them in different angles and finally iterate through them in a loop. Its not very good :) Is …

Member Avatar for hiddepolen
0
111
Member Avatar for vammy

Hi Guys, I want to enforce validation rule in create table statement for a coloumn. im using vb.net as front end and access as back end. could u please post a sample code here.help would b highly appreciated.

Member Avatar for vammy
0
91
Member Avatar for vammy

Hi friends, i want to restrict -ve values entering into access database table.im using vb.net as front end... please help..

Member Avatar for vammy
0
120
Member Avatar for UNDER-18 FG

Hi everyone. My assignment this time requires me to: [B]1.[/B] List down the marks obtained for each 5 Quizzes. [B]2.[/B] Choose the best 2 highest marks out of the 5 Quizzes. [B]3.[/B] To make the "best 2 highest marks" becomes the ultimate Quizzes total mark which has a 10% carrying …

Member Avatar for WaltP
0
89
Member Avatar for Dakot

hello , whet i compile , i get these errors , but i dont know where i mistaked g++ -Wall -o "untitled" "untitled.cpp" (in directory: /home/btwnix/Documents/Projects) untitled.cpp: In function ‘std::string bunnynames(std::string)’: untitled.cpp:14:14: error: no matching function for call to ‘tolower(std::string&)’ untitled.cpp:14:14: note: candidates are: /usr/include/ctype.h:116:12: note: int tolower(int) /usr/include/ctype.h:116:12: note: …

0
306
Member Avatar for mkbear

Hey so Im a beginner, and I need some help. My professor gave us this code: [CODE] def average(list): total = 0.0 for number in list: total += number return total / len(list) [/CODE] Then, he asked us to rewrite that program so that it uses a while loop instead. …

Member Avatar for askandstudy
0
205
Member Avatar for MrEARTHSHAcKER

Hi, What's wrong with this code: [CODE] //Comments explain what I check int Array[9]={1,2,3,4,5,6,7,8,9}; int Integer=0; int i=8,n=0; for(int x=0;x<9;x++) cout<<"array="<<Array[x]<<endl; //Are all members ok? for(int exp=0;i>=0;i--){ Integer+=Array[i]*pow(10,exp); cout<<"Integer1="<<Integer<<endl; //Is Integer being summed fine? exp++; } cout<<"Integer="<<Integer<<endl; [/CODE] Program's function is to create an integer from array ( for example: …

Member Avatar for mazzica1
0
118
Member Avatar for walid86

Anybody know how to have a power factor in text.. 100 m2 etc.. is it a unicode character? thanks

Member Avatar for walid86
0
104
Member Avatar for mhariharasudan

Hi, I am a new Java Programmer.could you help me in resolving this. I am trying to created a JPanel withing a main JPanel. For the nested one, i have included Grid Layout and i am trying to add components to it dynamically. i.e i have added a combo box …

Member Avatar for mhariharasudan
0
1K
Member Avatar for mkbear

Hey so Im a beginner, and I need some help. My professor gave us this code: def average(list): total = 0.0 for number in list: total += number return total / len(list) Then, he asked us to rewrite that program so that it uses a while loop instead. So far …

Member Avatar for inuasha
0
223
Member Avatar for jackmaverick1

Before you read this, please don't say how I could make this better, I've thought of it, or because of the circumstances, it's not possible. I'm having a problem where when I input a command into the Runtime class's exec function, it doesn't run. When I try the exact same …

Member Avatar for NormR1
0
295
Member Avatar for umsungun

import javax.swing.*; class ch9reverse{ public static void main (String [] args){ int Character, count = 0; char letter; String Str; Str = "The gate to Java nirvana is near"; [COLOR="Green"]For this must print out the "ehT etag ot avaJ anavrin si raen[/COLOR] Character = Str.length(); System.out.print(reverseString(Str));

Member Avatar for zeroliken
0
94
Member Avatar for cool_intentions

Hello guys, I have a small problem, and searching for solution. I am trying to write program that will write all numbers from 00000000 to 99999999 into txt file. Result in txt should look like this 00000001 00000002 00000003 So, how can I do this? Thanks

Member Avatar for thines01
0
208
Member Avatar for Mindless Z

I'm working on a project and i'm having a bit of trouble. the basic idea is to make an employee database using a basic structure. the program is to have 3 files and in the header file the professor wants the function prototype to be: [CODE]int addEmployee (struct employee *, …

Member Avatar for Mindless Z
0
156
Member Avatar for hfx642

[B][I]This it only for people who are running a DUAL Monitor system.[/I][/B] I wrote a sample program to display what occurs. No matter which button I click on (Primary Display OR Secondary Display), the JOptionPane will pop up on the Primary Display. What I would like to happen is... If …

Member Avatar for hfx642
0
962
Member Avatar for arindam31

Hi Everyone, I am trying to call a function after every T secs . When i use time.wait() , the app hangs, i do not have control over the app. For now , this programs will do the process once , and then after T secs . But i do …

Member Avatar for arindam31
0
283
Member Avatar for mags11

Hi all! I am in the beginning to mid stages of my project. It's an autobody program. You get the calculations when you click Calculate. However, I can't seem to get the hours of labor box to compute to the correct amount. Whenever I put something more than 1 hour, …

Member Avatar for hericles
0
406
Member Avatar for aa26i

I will try to explain as simple as i can [B]head section[/B] <script type="text/javascript"> function randomnumber() { document.forms[0].randomnumber.value=(… } onload=randomnumber </script> [B]body section[/B] <div class="ss-item ss-text"><div class="ss-form-entry"><label class="ss-q-title" for="entry_13">Booking ID </label> <label class="ss-q-help" for="entry_13">To trace ur record</label> <input type="text" name="entry.13.single" [COLOR="Green"][B]value=""[/B][/COLOR] class="ss-q-short" id="entry_13"></div></div></div> the normal way to see my random …

Member Avatar for aa26i
0
217
Member Avatar for terence193

The program should simulate rolling of 2 dice and add the sum of the 2 dice after they are rolled for 3600 times. Their sum ranges from 2-12. The frequency should be tallied in this order for eg when sum =2 freq =.. when sum =3 freq =.. etc This …

Member Avatar for terence193
0
132
Member Avatar for KushMishra

Hello All, I have come up with a social networking website which should support chat functionality like Facebook. My intentions are as follows :- 1.It should be dynamic that is the chat window should appear only when any friend is online else it should remain hidden somewhere. 2.Could it be …

Member Avatar for adobe71
1
171
Member Avatar for furlanut

On a MySQL table the Date column is set at YYYY-MM-DD with some dates shown as 0000-00-00 (Default set at NULL) where no date is available. This is OK until I display the web page that contains the php code for the SELECT query. All the 0000-00-00 dates are displayed …

Member Avatar for cereal
0
130
Member Avatar for VB 2012

Okay Ive got a Huge problem something that my current Programming skills will not be able to fix. Ive got a Program and a text file , this text file gets load into the list box but that's not the problem. The problem is that when i make the text …

Member Avatar for VB 2012
0
137
Member Avatar for vammy

Hi Guys, I need Some help in validating a particular coloumn in datagrid for duplicate values before inserting into database.Im using datatable. Please help with some example code.appreciate our help. regards, vamsee

Member Avatar for vammy
0
1K
Member Avatar for nickliutw

I'm currently working on a program which is pig Latin. It allows a user enter a sentence. The program would take the user input and change every word in to pig latin which it takes the first character of a word and add it to end of word with "ay". …

Member Avatar for nickliutw
0
181
Member Avatar for thanatos1

I'll try to keep this simple, i have an abstract class called Shape (Shape.h) which has a few pure virtual functions, cool. so I have another class called Circle (Circle.h and Circle.cpp) which extends Shape. here's the code. (In Shape.h) [CODE]#ifndef SHAPE_H #define SHAPE_H #include "Point.h" class Shape { // …

Member Avatar for mike_2000_17
0
252
Member Avatar for phorce

Hello, I'm doing a project where I need to see which number matches to a list of letters in the alphabet. Currently I have the output as: [code] A= 5 A= 8 B= 9 B= 2 C= 0 C= 3 D= 6 D= 4 E= 1 E= 13 F= 0 …

Member Avatar for Munnazz
0
127
Member Avatar for cummings15

My code complies fine but freezes when i try to run it. I Believe the error is somewhere between lines 82-115 [CODE]#include <iostream> #include <fstream> #include <string> #include <iomanip> #include <cmath> using namespace std; struct domList { string domName; string ipAddress; int counter; }; void insertOne(domList list[], ifstream& inFile, int …

Member Avatar for cummings15
0
305
Member Avatar for Forte1292

Ok so I'm working on an assignment for my CS class. One of the methods needs to check that a string is a valid input and the easiest way is to use the .matches method. my method is [CODE] static boolean validateCourseId(String courseId) { boolean valid = courseId.matches("^CS [1234]\d\d\d$"); return …

Member Avatar for Ezzaral
0
160
Member Avatar for FreddieBambino

Right. Im trying to communicate with the expedia travel API, exchanging xml feed with them. It goes somehow like this: I send them info of the query I want, they send me the query back in xml form. Here is an example of a query I would want to send …

Member Avatar for FreddieBambino
0
228
Member Avatar for cummings15

I have a error with a nodeType. I believe it is just one line. The error says "[Linker error] undefined reference to `insert(nodeType*,std::basic_ifstream<char,std::char_traits" and "Id returned 1 exit status" This line is the part of code that i believe is wrong. [CODE]nodeType *insert(nodeType *list, ifstream& inFile);[/CODE] [CODE]#include <iostream> #include <string> …

Member Avatar for r.stiltskin
0
152
Member Avatar for toldav

I'm new in VB programming I did wrote this code so far but for some reason the senior does not calculate. Any help will greatly appreciate. This is what I'm trying to accomplished. "basic monthly cost of a membership is $100 for adults and $75 for seniors. Members must choose …

Member Avatar for Ezzaral
0
352
Member Avatar for Mehnad

i have been asked to create a method that is capable of inserting a "Person" class into an ArrayList of persons. but all it says is that the types are incompatible. starting to think that the add method might not work in this situation. any advise would be greatly appreciated! …

Member Avatar for Ezzaral
0
939
Member Avatar for Zssffssz

well here is something interesting: How many calculations, math, movements, assignments, can I do in the glbal area? EX: [CODE]Header/using blah int vap = 7; int pav =2; int sasd = 0; (sasd=(vap*pav));[/CODE] Would the last line work? Or do I have to declare a vareable to do any math/calculations? …

Member Avatar for mike_2000_17
0
165
Member Avatar for BDan

Okay I am fine tuning my program and would like to have a new JOption Message appear when a particular input is caught and have the exception message thrown. I am trying to get my input to come from my combo box but getting the cannot find symbol message". Am …

Member Avatar for BDan
0
431
Member Avatar for Danny159

Hey, I have a database of events... and I need to add a row for each day for a year... so there will be 365 rows in the database, but the date format must be as follows: Row 1 Start Date: 2012-01-01T00:00 End Date: 2012-01-01T23:59 Row 2 Start Date: 2012-01-02T00:00 …

Member Avatar for pzuurveen
0
166

The End.