56 Topics
|
|
I have written a program that simulates volleyball using rally scoring. In rally scoring, the team that wins the rally wins the point, regardless of which team is serving (for this reason my program ignores the issue of who’s serving). Games are played to a score of 30 and must … |
|
Hello! I am fetching some names from MySQL and i want to remove duplicated strings. Currently got this code: [CODE]function get_PublicAlbums(){ $sql = "SELECT * FROM `ue-userfile` WHERE public=1"; $result = mysql_query($sql); $html = ""; while($row = mysql_fetch_array($result)) { $albumname = $row['albumname']; $html .= '<p><a href="index.php?page=public-albums&an='.$albumname.'">'.$albumname.'</a></p><br/>'; } /* It might … |
|
So, we were asked to design a vending machine. You can insert nickles, dimes, quarters, and dollars. I can add the amounts up, my only problem is that I can't get the input correct. My circuit is attached as a jpeg. Here are my questions. Any help is much appreciated. … |
|
Can anyone tell me the logic to solve common emitter biasing of a BJT using c programming language? Just tell me the idea. No need of program. |
|
what;s wrong with this mysql trigger logically?? [CODE] DELIMITER | CREATE TRIGGER comment_count AFTER INSERT ON comments FOR EACH ROW BEGIN UPDATE sub_sections as t1 SET t1.published_comment_count = (select count(id) as cnt from comments where article_id=t1.id and published=0 and status=0) WHERE id= (select article_id from comments order by date_modified desc … |
|
Hai all, Please help me to compare two xml files using vb script or java script. example of xml file [CODE] <table name="uninstall_software" numRows="0" remarks="" schema="dbo"> <column autoUpdated="false" digits="0" id="0" name="swtitle_id" nullable="false" remarks="" size="10" type="int"> <parent column="id" foreignKey="c_uninstall_swtitle_id" implied="false" onDeleteCascade="false" table="software_title"/> </column> <column autoUpdated="false" digits="0" id="1" name="machine_id" nullable="false" remarks="" size="10" … |
|
Hello, I would like to know how do I compare two chars properly Im making a healthcare project, its pretty rudimentary, Im trying to make a comparison between a char that the user inputs and the char that is in a structure that is saved in a .txt file So … |
|
I have created a simple gui using a windows form, which consists of some checkboxes, radiobuttons and textboxes. I also have my logic code which consists of several switch case statement and I want to know how to put my logic code into the gui I have created. Does anyone … |
|
I have a code in here [CODE=prolog] location(california, usa). location('los angeles', california). location(hollywood, 'los angeles'). look_on(Country,Place) :- location(Place,X),write(X),nl, look_on(Country,X), fail.[/CODE] if i query like this one [CODE=prolog]-?look_on(Place,stamp).[/CODE] the output would be: los angeles californai usa ,can anyone help me how to display only the the last data which is the … |
|
Hey Guys, I have an "events" table in my DB and a "default_events" table also. Every day I display one event. I check to see if any rows in the "events" table match todays date and then display that event, if no events match by date, I check the "default_events" … |
|
Hey Guys, I need some assistance if possible. I am using MySQL & PHP, I have an "events" table with a row field called "Users_Attending" and can't seem to figure out the best way to add multiple users to an event rows "Users_Attending" field. I want to store user emails … |
|
Hey guys, I just need a bit of help figuring out what the best way to go about the following using PHP/MySQL: It's basically a registration component So I have a button, let's call it "add_to_list" and I need this button to control a couple of things. When a user … |
|
Hi, I have a fully pledged membership system and want to integrate my own user referral system but want some tips, advice really on the logic of it. Basically already registered users on my site will have the option to refer people, only registered users. I will try to explain … |
|
So i found a code thats the Java equivalent of the bubble sort algorithm, i understand parts of it, but the thing is i dont get how it works, specifically the loops which i assume do much of the work, can somebody please explain to me, i swear if i … |
|
Hi, can anyone tell me how the below three logic gates work: AND Gate NOT Gate OR Gate Basically all I need to know is, if the logic gates is an AND gate: when provided with inputs A and B, the user must calculate the output C. I am trying … |
|
Im making a separate chaining hash table for dictionary words. In my insert method i use find to make sure there isnt a duplicate. Every thing compiles but my program stops at the find statement and quits working. If i omit the find method, which ok for the first word … |
|
Hi to all, Problem Statement: [INDENT]I have 4 nodes which are executing in parallel, each node is processing some information and storing records in MySQL DB, the possible records being saved in an db daily is above thousand, but i want only 100 samples to be stored in db daily, … |
|
Good morning all, i have a text file contains following data..... sec TID ATTRIBUTE 69013 1-3039-1 REGISTER 69013 1-3039-1 100 69013 1-3039-1 401 69013 1-3039-2 REGISTER 69013 1-3039-2 100 69013 2-3039-1 REGISTER 69013 3-3039-1 REGISTER 69013 4-3039-1 REGISTER 69013 1-3039-2 200 69013 2-3039-1 100 69013 2-3039-1 401 .................. .................. 69023 … |
|
This program is supposed to print out prime numbers from 1 to 50: [CODE]public class Break{ public static void main(String[] args){ int i,j; System.out.println("Prime numbers between 1 to 50 : "); for (i = 1;i < 50;i++ ){ for (j = 2;j < i;j++ ){ if(i % j == 0) … |
|
I've tried some SEO tools. There are some formula and logic need to follow like keyword in the content page at least 3%, H1 tag should only appear once in a page. I wonder where is this logic come from? Can anyone point out the source? Thanks in advance. |
|
How can i make addition in my linked lists if the nodes are stroing two values: 1) int element 2) int colomnvalue i have to make the addition on the basis that the nodes having the same colomvalue, thier element should be added. This addition is to be made in … |
|
Hi all, So I'm working on this program to detect if the w' in a string in the form of w$w' satisfies the condition that w' is the reverse of w. The only problem is that I have a logic error that I don't understand. If I input the string … |
|
Hello, I am writing a prolog program that compares the positions of buildings. The only fact I can use is west(building1, building2), which says that building 1 is immediately west of building 2. I have declared many of these for the two rows of buildings I am using. I am … |
|
This isn't exactly a problem with C# coding rules, rather I need help with logic. Here's my situation. In my program, I deal with a JobID. Say, a print job, and there is a unique (obviously) JobID assigned to each print job. Now, regarding each job there are MANY files … |
|
A C code is written: int i=-1 , j=-1 ,k=0 ,l=2 ,m; m=i++ && j++ && k++ || l++; //Line 3 printf("%d%d%d%d%d",i,j,k,l,m); O/p= 00131. I figured out that the Last variable in Line 3 is incremented only if it is preceeded by || else if preceeded by && it is … |
|
I registered some data in my registration.html it seems to work properly but when I clicked submit button to start an action of summarizing the registration.html to be showed up in my registration_summary.php, all it shows is just a blank white page. Why??? this the code. I write the code … |
The End.