199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bokizss

Write a C++ application that asks the user to enter 10 numbers. The program then stores those numbers in an Array. The program should display the Mean , Median, and Mode. Mean is the average of the 10 numbers. Median is the average of the 5th and the 6th numbers. …

Member Avatar for Bendez Thyna
0
166
Member Avatar for kumarprashant

hi I have a project due this Monday to make an address book. need some help with that.I have some code with me but it is not working. please help me if you can. i have attached a copy of the same and given description below. program description: develop a …

Member Avatar for Bendez Thyna
0
302
Member Avatar for infamous1987

using namespace std; int numCheck(int x); int main () { const double LAWYER = 0.10, PERSONAL_ASSISTANT = 0.03, AGENT = 0.07, TRAINER = 0.05; double athleteBeginSalary(0.0), lawyerSalary(0.0), personalAssistantSalary(0.0), agentSalary(0.0), trainerSalary(0.0), professionalTotalSalary(0.0), athleteEndSalary(0.0); int numLawyer, numPersonalAssistant, numAgent, numTrainer, x(1), y(0); string firstName[8], lastName[8]; // The number of the Professional hired: Lawyer, …

Member Avatar for Kristian_2
0
170
Member Avatar for Siberian

The follow code isn't working, I'll probably have to supply more info :) var headline = document.getElementById('header'); var headlineParent = headline.parentNode; var outputResults = document.getElementById('goat'); outputResults.innerHTML (outputResults);

Member Avatar for Siberian
0
138
Member Avatar for COKEDUDE

I have an array of characters. I am trying to find "houston". The only way I can think of to do this is to use a for loop and check each individual character. Is there an easier way to do this? char string[] = "Fishing tourism miami atlanta dallas houston";

Member Avatar for COKEDUDE
0
210
Member Avatar for Xheis

Hi, I have to create a program that creates N child processes, and they muliply the matrix. I have some base codes but when I try to run them they give me segmentation error and I cant find the problem. #include <stdio.h> #include <stdlib.h> #include <time.h> #include <unistd.h> #include <sys/types.h> …

Member Avatar for David W
0
316
Member Avatar for ubhart

Hi, I am making program that finds solution how to put 12 knights(horses) to chess board that every square is dominated or engaged by other knight. Look at my code: #include <stdio.h> #include <stdlib.h> #include <stdbool.h> //(*******************************************************************************) void addNulls(char L[][9], int N[], int M[]) { int i,j,g; for (i=1 ; …

Member Avatar for ubhart
0
276
Member Avatar for Enigma360

I have just used this code in a project which works perfectly, but I have noticed that the first record is always not displayed. Eg. the SQL query lists 15 results, but the output only displays 14, missing the first record. Any ideas why? <?php $result = mysql_query($sql); //first put …

Member Avatar for diafol
0
1K
Member Avatar for trade19

python3 Hi I am trying to compare these two (strings) of numbers. There may not be a space inbetween the numbers in the file, but here its just for clearity. I want to take the value of 40 and compare it with 14 then 18,35 and so on until 54 …

Member Avatar for trade19
0
410
Member Avatar for jovstudios

Hello guys, I need your Help, why i can get this warning? Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\OJT\FINAL\profile.php:112) in C:\xampp\htdocs\OJT\FINAL\profile.php on line 122 this is my code <?php $member_id=mysql_real_escape_string($_SESSION['id']); $result=mysql_query("select * from user where id='$member_id'")or die(mysql_error); $row=mysql_fetch_array($result); $username=$row['UserName']; $FullName=$row['FullName']; $image1=$row['img']; header("Content-Type: image/jpeg"); …

Member Avatar for jovstudios
0
3K
Member Avatar for Praveen_10

after the 1st iteration the toss is 100 and then the iteration increases toss to 200 and then 300. Why is this happening i want toss to be made only hundred times. PLease help me. #include <iostream> using namespace std; #include <cstdlib> #include<ctime> int toss(void); int main(void) { srand(time(0)); int …

Member Avatar for David W
0
380
Member Avatar for Mike_danvers

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at G:\xampp\htdocs\prac\picvw.php:202) in G:\xampp\htdocs\prac\picvw.php on line 220

Member Avatar for diafol
0
152
Member Avatar for vivekagrawal

I have teo form form1 and form2 i want to pass form1 textbox1 text in form2 textbox1.text whae i click a button of form1.(Its for windows application) Plz give me some help......

Member Avatar for hilahilarious
0
8K
Member Avatar for erik.pierce1

I cannot for the life of me get my GUI to comeup with my deckPanel displayed along with my JButton that I intented to add an Action Listener to. THanks for looking. I am sure it has something to do with my object creation and method calls. import javax.swing.*; import …

Member Avatar for erik.pierce1
0
132
Member Avatar for COKEDUDE

I am trying to clear the first character of my array. The first two methods don't seem to work. The third method seems to but doesn't look like a good idea. char operand[] = "abc"; //both methods seem to null it out operand[0] = 0; memset(operand, 0, 1); printf("%s", operand); …

Member Avatar for Schol-R-LEA
0
132
Member Avatar for ravi_14

when i try to use undefined object ,i get compiler error but there is no option regarding compiler error.

Member Avatar for deceptikon
0
103
Member Avatar for AmrMohammed

Greetings, I'm working on an existing solution. The solution is using a GUI inheritance technique. All Forms within the solution inherite from a parent Form. Within the parent Form there is a virtual method with empty body that is called in the parent Form load event. Each Form override that …

Member Avatar for tinstaafl
0
130
Member Avatar for babyluxe03

Hi everyone , I am doing a log in& registration form. And i am using a adodb connection. can someone pls tell me what is wrong with my code on the rst.open part, and what should i replace. Im trying to call the password from ms access and suddenly there …

Member Avatar for Reverend Jim
0
240
Member Avatar for burt.munn

I'm trying to create a script that will calculate the tip a customer should pay, based on the number of customers and the amount of the bill. I also have to create an HTML document that has a form with two text boxes, one for number of customers and one …

Member Avatar for burt.munn
0
283
Member Avatar for begueradj

Howdy, How can I disable Javascript in Firefox (version 27 and 28) on Windows ? There is no checkbox on the Content tab as I read on other forums ! Regards from Begueradj

Member Avatar for begueradj
0
227
Member Avatar for matrixdevuk

I'll put it simple, I suck at Javascript. How would I make a code editor, using a textarea that you can press [tab] and then it does this: " ". And when you press enter, the indent stays.

Member Avatar for matrixdevuk
0
97
Member Avatar for lfcoats

I am having a problem completing my program. I am sure it is a simple mistake. My results look something like this How many students do you have? 2 How many Exam grades do you have? 4 Enter a score for student number: 1 98 Enter a score for student …

Member Avatar for lfcoats
0
1K
Member Avatar for jazz_vill

Hi I want to count the number of occurence of each characters in a string from a client then the server will compute the occurences and pass back to the client the result.You may have noticed that I used String for result coz im planning to send a string to …

Member Avatar for Reshma_2
0
2K
Member Avatar for ankit.4aug

hello i want to know how can i create my own online mobile recharge website. please help me

Member Avatar for knowhow112
0
399
Member Avatar for monika maan
Member Avatar for monika maan
0
100
Member Avatar for ameer.mhmed

i want to make required field validator in java netbeans on textfield and press button if textfield null or example the textfield required string no integer how do it

Member Avatar for stultuske
0
299
Member Avatar for Bendez Thyna

i have this for my requirement assignment: Write a search function int get_index(const float astm[?][?], const int size) to find the array index from a given size. can someone give me some hint on how to di it pleass?

Member Avatar for Bendez Thyna
0
218
Member Avatar for rpv_sen

Hi I am using MSSQL ODBC Connetion for my project in PHP. I have created login form with PHP and MSSQL with ODBC Function. Can any one please help how to use SESSION to carry on to next page without get function.

Member Avatar for rpv_sen
0
2K
Member Avatar for markii.borabon

im getting unexpected '$sql' when I run this code.. and idont know why.. <?php include('connect/connection.php'); if(isset($_POST['pid2'])) { $pid = $_POST['pid2']; $name = $_POST['name'] $sql="INSERT INTO tbl_wishlist (prod_id, name) (select prod_id, image from tbl_product where prod_id ='$pid' AND image ='$name' )"; }else{ echo 'mali';} mysql_close(); ?>

Member Avatar for markii.borabon
0
103
Member Avatar for Rizi004

Hello everyone i have a pattern that checks the given url is correct or not and this is working perfectly fine, but when i give arabic chrarcters in pattern it return false because of invalid URL. I want english and arabic chracter to check in URL. where i can do …

Member Avatar for diafol
0
1K
Member Avatar for kyle.santelices.31

if(document.form1.captcha.value != '$_SESSION["code"]'){ alert("Wrongwrong captcha \n"); return false; } hello ,i just want to ask why is it not running ?i decided to convert my php function to javascript . thank you

Member Avatar for urtrivedi
0
231
Member Avatar for khei007

Bute there's an error... Error: The given path's is not supported Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try Dim FileToCopy As String Dim NewCopy As String Dim password As String = "Cyndy" Dim username As String = "Abbang" 'NewCopy = "192.168.xx.xx\c$\HS.exe" & username & …

Member Avatar for oussama_1
0
308
Member Avatar for ManthanB

I am looking to make an application that allow me to view remote desktop on my local application without interferring the user. In simple words i want to monitor the user activity on the remote machine. So please give me some suggestions about the same.

Member Avatar for aliasgar.babat.1
0
270
Member Avatar for nathan.pavlovsky

Hello programmers! I was working on a program that reads a sequential file with bank accounts. The file has three sets of data per line: the account #, the account holder's name, and balance. Then, I made a program to print the file- and it printed the last line of …

Member Avatar for vmanes
0
371
Member Avatar for buddi.hemanthkumar

i need help to create website for online test using asp.net with c# coding.. it shld consists of question with multiple answer choices, i ve created using panel control and when i compiled application , the next button is not working,its not taking me to 2 nd question protected void …

0
117
Member Avatar for nurul_1

I have a form and a mysql table name parcel. I need to insert tracking number in the table which is personally generated based on year,category and status. But the tracking number must auto increment. For example : category has two values : D and L status has four values …

Member Avatar for nurul_1
0
614
Member Avatar for Dziri_1

//I want to start a thread that set postion of a la lable here is part of the code t = new Thread(bar); t.Start(); public void bar() { while (true) { label2.Location = new Point(this.label2.Location.X + 10, this.label2.Location.Y); Thread.Sleep(1000); if (this.label2.Location.X > this.Width) { label2.Location = new Point(200-this.label2.Width + 10, …

Member Avatar for Naravia
0
226
Member Avatar for ala_2

I am having trouble reading uint ARRAYS properties from WMI objects. I can read and process STRING properties from WMI objects.

Member Avatar for BobS0327
0
517
Member Avatar for Fernando_4

Hi all, I've made a query that gathers info from several tables, after it was working, there was the need to integrate yet another table, however I can't seem to put it to work. I've seen some of this "witchcraft" before, but can't seem to find a tutorial, basically because …

Member Avatar for Fernando_4
0
473
Member Avatar for Nollyvenon

I have a query which i am trying to get the last date and when i do, the purchdate and LastPayDate is the same for all the data. the query is below: SELECT DISTINCT customer.custid,customer.compname,customer.balance AS balance,customer.phone,acctofficer.acctfullname AS acctoff, preAgg1.LastPayDate,customer.depot, MAX(mastorders.lastsuppdate) AS purchdate, MAX(mastorders.id) FROM customer,mastorders,acctofficer, (SELECT DISTINCT T.custid, Max(T.timestamp) …

Member Avatar for Fernando_4
0
268
Member Avatar for navi2582

I am trying to toggle between the two toolbars (in two different panes) and couldn't do it with the code below. Not sure where the problem is.... I should only see "Page number" details when I click on "Read/Write" and "Hello world" when I click on "Write". Any ideas are …

0
187
Member Avatar for ubhart

Hi I have to write program that finds a solution how to put 12 knights to a 8x8 chess board that every square would be dominated by one of the 12 knights. Do you have any suggestions from where I can start?

Member Avatar for ubhart
0
401
Member Avatar for kannan mangalar

i need a regex for ectract meta title, description exg: <meta name="description" content="xxxxx"> and <meta name="Description" content="xxxxx"> and <meta name="Descriptions" content="xxxxx"> and <Meta name="Descriptions" content="xxxxx"> and <META NAME="Description" content="xxxxx"> i want to extract all type od descrptions, same also meta title

Member Avatar for diafol
0
521
Member Avatar for jovstudios

Hello Guys. I am trying to make a code for login form in my page using Bootstrap modal. Then I want to know how to validate the form in modal. Thanks in advance. Example. There have UserName and Password Field, If Username and Password not match it should be say …

Member Avatar for diafol
0
813
Member Avatar for McNoobie123

I need to create a form with 2 text boxes to receive numbers as input and 1 command button that displays a message box containing the larger of the two numbers. To do so, I need to write code in the Click event of the command to call a user-defined …

Member Avatar for Reverend Jim
0
207
Member Avatar for Suzie999

Simplified code snippet produces assertion string out of bounds error if I do not uncomment the if statement in main. using namespace std; size_t find_next_of(string & src, size_t pos) { //size_t tmppos; //if (pos != string::npos) { return src.find_first_of('a', pos); //} //return string::npos; } int main( void ) { string …

Member Avatar for Suzie999
0
232
Member Avatar for kxjakkk

My Rational class code: from __future__ import division import math as _math def _gcf(a, b): # Returns the greatest common factor of a and b. a = abs(a) b = abs(b) while b: a, b = b, a % b return a class Rational(object): def __init__(self, numerator=0, denominator=1): # Contructs …

Member Avatar for Schol-R-LEA
0
301
Member Avatar for jovstudios

Hello Guys. Can you check out my codes? I dont know y i get this warning Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\OJT\FINAL\login.php:117) in C:\xampp\htdocs\OJT\FINAL\login.php on line 130 help me guys thanks <?php include('dbcon.php');//para sa connection sang database session_start();//para mag start ang session …

Member Avatar for jovstudios
0
324
Member Avatar for BTLSP
Member Avatar for BTLSP
0
127
Member Avatar for keyontes

Cant tell what im doing wrong no matter what numbers i enter it always return as a F and I cant get the average to calculate correctly plz help i uploaded the file also Below is the assignment Create an application that allows a teacher to enter three test scores …

Member Avatar for Yolo03
0
2K

The End.