Just an accumulation of worldly wisdom in question answer format. Q: "How Do You Get Holy Water?" A: "You Boil The Hell Out Of It."

Member Avatar
Member Avatar
+0 forum 19

I have a problem in this code .this code is for adding question to database.please advise thanks in advance. <?php include('includes/header.html'); ?> <div class="row"> <div class="col-md-offset-2 col-md-8"> <h1>Add Quiz</h1> <form action="process_quizAdd.php" method="post"> <div class="form-group"> <label for="question">Ask Question</label> <input type="text" class="form-control" id="question" name="question" placeholder="Enter your question here"> </div> <div class="form-group"> <label for="correct_answer">Correct answer</label> <input type="text" class="form-control" id="correct_answer1" name="correct_answer1" placeholder="Correct answer 1"> </div> <div class="form-group"> <label class="sr-only" for="correct_answer2">Correct answer 2</label> <input type="text" class="form-control" id="correct_answer2" name="correct_answer2" placeholder="Correct answer 2"> </div> <div class="form-group"> <label class="sr-only" for="correct_answer2">Correct answer 2</label> <input type="text" class="form-control" id="correct_answer3" name="correct_answer3" placeholder="Correct answer 3"> </div> <div class="form-group"> <label for="wrong_answer1">Wrong Answers</label> <input type="text" …

Member Avatar
Member Avatar
+0 forum 3

write a c++ class run that contains followin data member 1)name of runner. 2)distance covered by runner. class ha following member function 1)get function for input runner name and distance. 2)show function to display runner name and distance. the user should be able to show the name of the runner who has covered the longest distance at any point of time. HINT(use static data member). i can not understand that how to use static data member in this programe. PLZ help me.

Member Avatar
Member Avatar
+0 forum 2

hy i have a problem in a Result programe of C++. I want to find 1st,2nd and 3rd position from any number of students. I already have a code to find first three largest element of array but problem is that 2 or 3 students marks can be equal but in this situation my programe is not working please help me.

Member Avatar
Member Avatar
+0 forum 9

Ok, so I just made this account because I'm super stuck. Basically I need to create a math quiz that takes a users input (1 through 12), have it spit out a question, i.e What is 5 x 12? however if the user enters 5, it must randomly generate a question asking the user his 5x tables. i.e What is 5x3? What is 5x7? and so on and he needs to enter the correct answer, after which it will display correct or incorrect. I am having trouble getting the user input part. So far my code allows for him to …

Member Avatar
Member Avatar
+0 forum 2

this code was error.please help me fix it include <iostream> include <conio.h> include <algorithm> using namespace std; int a[]={1,5,7,4,9,8}; BST*binary_search_tree; struct BST{ int value; BST* left; BST* right; }; int search_bst(BST* node,int key){ if(node==NULL) return -1; if(key<node->value) return search_bst(node->left,key); if(key>node->value) return search_bst(node->right,key); else return node->value; } void insert_bst(BST* &treeNode,BST* newNode){ if(treeNode==NULL) treeNode=newNode; else if (newNode->value<treeNode->value) insert_bst(treeNode->left,newNode); else insert_bst(treeNode->right,newNode); } void inorder_bst(BST* tree){ if(tree==NULL) return; inorder_bst(tree->left); cout<<tree->value<<" "; inorder_bst(tree->right); } void binary_tree_sort(int a,int length){ BST item; for(int i=0;i<length;i++){ item=new BST(); item->value=a[i]; insert_bst(binary_search_tree,item);} inorder_bst(binary_search_tree); } int main() { binary_tree_sort(a,6); return 0; }

Member Avatar
Member Avatar
+0 forum 5

Design and implement a class named "Vector 5D" using C++ which stores a 40 hypothetical vector having 5 components, you may assume these components as V[1], V[2], V[3], V[4] and V[5] . The class should use array to store these components. The class should have necessary constructors and member functions. In addition, the class has an overloaded + operator which adds two vectors component by component. Write appropriate main ( ) function that adds two such vectors and shows the output of the resultant vector.

Member Avatar
Member Avatar
-1 forum 1

finds the average number of hours per day spent programming by each student over a three-day weekend. User should enter the number of hours worked each day and number of students.

Member Avatar
Member Avatar
+0 forum 3

1)On receipt of the signed MSA back from the customer, the original should be sent to the legal representative and a controlled copy should be sent to the TM/Account Manager by ___________. B D M DM 2)Runtime Profiling is used by which category of users? Developers and System Administrators Configuration Manager Quality Analyst 3)Which module in the Spring.Net is used to achieve greater efficiency and consistency in writing data access functionality in ADO.NET Spring.Ado Spring. Data Spring.Database 4)_____________ defines as "Model the underlying business that the application must support" Conceptual design Logical design Physical design 5)The TypeLibConverter class, located in …

Member Avatar
Member Avatar
-1 forum 2

I'm trying to create a program that computes the values of cos using the Taylor Series as long as the absolute value of a term is greater than 0.0001 and prints the number of terms used in the series approximation. My code is the following and as of right now I am getting the wrong result. Please help me fix it! I've spent hours trying to figure it out and don't know what to do. Enter the angle in radians: 3.14 There were 8 numbers of terms used in the series approximation. The calculated cosine of 3.14 is 0.00499852 The …

Member Avatar
Member Avatar
+0 forum 12

Hello i have a simple question and i need a simple solution I have a javascript file named a pricing.js which contains this content in it var price_arr = new Array('&#36; 16.95','&#36; 30.95','&#36; 49.95','&#36; 70.95','&#36; 99.95','&#36; 109.95','&#36; 139.95','&#36; 155.95','&#36; 199.95','&#36; 460.95'); but i want to to update this part of javascript file using PHP so please help me in this how can i update this part of the content from javascript file using php? '&#36; 16.95','&#36; 30.95','&#36; 49.95','&#36; 70.95','&#36; 99.95','&#36; 109.95','&#36; 139.95','&#36; 155.95','&#36; 199.95','&#36; 460.95'

Member Avatar
Member Avatar
+0 forum 3

I've been reading a lot of books on neuroscience and things of that nature and I was wondering if I could integrate a medical dictionary into my Kindle just like the regular dictionary it already has. I know this sounds like an odd question but I have been looking for an answer to this question for a long time and XDA was zero help so I figured the best place would be daniweb.com. Thank you in advance.

Member Avatar
Member Avatar
+0 forum 3

I am interested in using the webgl-globe tool which I have downloaded [Here](https://github.com/dataarts/webgl-globe). I have basic experience using CSS and HTML but I am unsure of which files from the repository are necessary for using the platform and how they should be included into one webpage as each folder seems to contain its own index.html file. Any resources/tutorials on how to do this type of thing would be much appreciated.

Member Avatar
Member Avatar
+0 forum 1

Hi daniweb, i m happy join woith u ,and isk tou I'm finding a way to create a 'plug and play' printing apps that can send the document softcopy to a bluetooth tethered device on the fly. I'm seeking advice on which programming language should i get into with to develop the apps. For advancement, I would like to make the device to connect via NFC instead of bluetooth. Thanks and regards.

Member Avatar
+0 forum 0

Hello! I am looking into game development, and recently discovered that most cube based games (with procedural generation) are coded in java, and i was wondering why that is!

Member Avatar
Member Avatar
+0 forum 2

I'm sorry. These question probably sound very stupid to you people. But to me they are extremely difficult. Imagine being completely ignorant with computers, and signing up for an intermediate level class (I did not take the beginner class)................ and NEEDING an A to make up for the 2 B's I got last semester!! Lots of pressure (and I haven't even mentioned the worst part). In any case........ I need help. I appreciate those who stop to help. Thank you. This one I cannot figure out, despite adequate math skills. If it were JUST math I could probably work something …

Member Avatar
Member Avatar
+0 forum 5

Howdy, I'm a relatively experienced PHP developer looking to start building websites in Wordpress. I have previously built my own simple theme consisting of an index page that contains a bunch of posts and a template that is used for single posts with comments etc. I wouldn't say I'm very experienced with Wordpress but I wouldn't say I'm completely new to it. Anyway my question is better explained with an example. Say I was to build a website for a garage that does repairs, MOTs (An annual vehicle inspection for a vehicle to be declared road safe in the UK), …

Member Avatar
Member Avatar
+0 forum 4

I REALLY NEED HELP WITH THIS QUSTION AND I ONLY HAVE 48 HOURS TO COMPLETE IT.. I DONT EXPECT ANY OF YOU TO DO IT FOR ME.. BUT I REALLY NEED SOMEONE WHO WOULD TEACH ME.. EMAIL : nifhail_torres@yahoo.co.uk As everyone knows that Malaysia is going to have the 13th general elections on 5th of May 2013. Therefore, you as a software engineer are required to develop the application system called Smart Registration System (SRS) for the 13th general elections. The purpose of SRS system is developed for election officer to store voters’ particular information in a sorted linked list …

Member Avatar
Member Avatar
+0 forum 3

I am writing some code that will have several functions. I need the functions to have my database connection, is there a way that I can include the connection variable in all functions? Thanks

Member Avatar
Member Avatar
+0 forum 3

Hello to everyone, I´m having problems on retrieving data from mysql to a textfield in html, the data appears with queston marks inside of a "black diamond"! I researched and followed the steps like putting the database charset utf8, the table too! When I insert for example Alimentação its goes to the database like this and when i show it with a table made in php! but when i try do retrieve the data to another php page into textfields in html code, it substituts ção by queston marks inside of a "black diamond". When, again, I put this code …

Member Avatar
Member Avatar
+0 forum 1

hi there, I have a little question that i am facing a little problem in my theme breadcrumbs and dont know how to resolve this issue actually the breadcrumbs is not seprating the main and primary category it should be work like Home > Main Category > Parent Category > Parent Sub Category > Sample Post title but its showing me like this Home> MainCategory Parent Category Parent Sub Vategory> Sample post title please help me to resolve this issue here is my breadcrumbers code /* --------------------------------------------------------------------------- * Breadcrumbs * --------------------------------------------------------------------------- */ function doover_breadcrumbs() { global $post; $home = __('Home','doover'); …

Member Avatar
Member Avatar
+0 forum 3

Good day to everyone. I am new to Visual basic and I am having a hard time at school because they dont teach all the codes in visual basic 6.0 and they want us to have self study and all. What a bummer. For our midterm exams, our professor wanted us to make a program for interview. A simple question and answer program with a database. So we'll be using VB6.0 and MSAccess. It is an interview program that would interview working people of what might their problem be in there office. More likely a survey. I was hoping if …

Member Avatar
Member Avatar
+0 forum 5

Hi guys, I'm working on a holiday scheduling app and I was wondering that if a person wants his holiday for example 10 days. id uid data1 data2 ore tip_concediu ts 7 244 2013-01-25 2013-02-05 3 2 2013-01-25 16:08:35 How would it be possible that I could track the holiday for each month ? January - 6 days February - 5 days In this case, January has 31 days, I would like to group the days into months, in January I should have 6 days and the remaining in February, is this possible from a query? Thanks in advance Szabi.

Member Avatar
Member Avatar
+0 forum 6

Hey everyone I am trying to create a function in php that will take the question that the user enters on the website and store it in an array. here is my code but I highly doubt its right: <?php class Enligne_Model_DbTables_Users extends Zend_Db_Table_Abstract { protected $eilgne_Questions = null; protected $statuses = array( 0 => 'inactive', 1 => 'active', 2 => 'activerestricted', 3 => 'occurred'); public function create ($Questions, $eilgne = 'active', array $params = array()) { if(empty($Question)) { throw new Bts_Exception('Must enter a Qustion!', Bts_Exception::ATTENDEES_PARAMS_BAD); } } ?> please help me out here I need help on this fast.

Member Avatar
Member Avatar
+0 forum 1

not working: // range for for (int (*row)[4] : ia) { for (int col : *row) cout << col << " "; cout << endl; } // error: cannot convert 'int*' to 'int (*)[4]' in initialization. working: // range for for (int (&row)[4] : ia) { for (int col : row) cout << col << " "; cout << endl; } yet, i thought either code is similar, either i confused about how pointer works / how range for iteration works. either way, the first code produce type error which should not be there if the second code is working. …

Member Avatar
Member Avatar
+0 forum 4

What's wrong with the following code? public void fillByteArray(InputStream s, byte[] b, int offset, Integer numReads, int readAmount){ while (numReads > 0){ s.read(b, offset, readAmount); offset += readAmount; numReads--; } }

Member Avatar
Member Avatar
-1 forum 2

i have to create a calculator (i'm a 12 year old) for the science fair. on textwrangler when i try to compile it :Expected end of line, etc. but found identifier. here is my code: import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*; public class JavaCalculator extends JFrame { private JButton jbtNum1; private JButton jbtNum2; private JButton jbtNum3; private JButton jbtNum4; private JButton jbtNum5; private JButton jbtNum6; private JButton jbtNum7; private JButton jbtNum8; private JButton jbtNum9; private JButton jbtNum0; private JButton jbtEqual; private JButton jbtAdd; private JButton jbtSubtract; private JButton jbtMultiply; private JButton jbtDivide; private JButton jbtSolve; private JButton jbtClear; …

Member Avatar
Member Avatar
+0 forum 2

Simple game just give a funny answer of the question in above post and then ask another question [B]Question:[/B] What do you think when you look up in the sky?

Member Avatar
Member Avatar
+2 forum 186

i wont to know why we have to equal this variabel what is theri meaning $contact_name = $_POST['contact_name']; $contact_email = $_POST['contact_email']; $contact_text = $_POST['contact_text'];

Member Avatar
Member Avatar
+0 forum 3

I need a program that will ask 16 true or false questions. The game needs to keep going until the user either answers 8 questions correctly or 8 inncorectly. A message should inform the user wether they won or lost and ask if they would like to play again, at which point the game either loops back to the start or exits. Any and all help would be greatly apprecciated.

Member Avatar
Member Avatar
+0 forum 2

The End.