Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 408 results for
99bottles
- Page 1
Re: Help. in 99 bottles of beer. please.
Programming
Software Development
12 Years Ago
by Jake.20
"Pass it around. 74 bottles of beer on the wall. 74 bottles of beer. Take one down. Pass it around. 73 bottles of beer on the wall. 73 bottles of beer. Take one down. Pass it around. 72 bottles of beer on the wall. 72 bottles of beer. Take one down. Pass it around. 71 bottles of beer on the wall. 71 bottles of beer. Take one down. Pass it …
Help. in 99 bottles of beer. please.
Programming
Software Development
12 Years Ago
by Jake.20
I've been doing this for almost 6 hours and i can't figure out what is in my codes. please if there is someone out there can tell me what is the problem here. [CODE]public class thirdAct { public static void main (String write[]) { int beerNum = 99; String word = "bottles"; while ( beerNum > 0 ) { if ( …
10 green bottles- uni student needs help
Programming
Web Development
10 Years Ago
by Estevan_Musgo
Hi guys, Im a uni student who's just getting started on PHP + i've hit a brick wall already. One of my tasks is to use PHP to show the song lyrics of "10 green bottles" (standing on a wall) using loops and if statements. I was thinking of having 1 paragraph echo at a time with a time delay of 10 seconds or so - which i could do easily …
Re: Help. in 99 bottles of beer. please.
Programming
Software Development
12 Years Ago
by JamesCherrill
That kinda works, text is a bit untidy, but that's all. What EXACTLY is the problem you are trying to fix?
Re: Help. in 99 bottles of beer. please.
Programming
Software Development
12 Years Ago
by hfx642
No problem... There IS no problem here. It works fine. Why do you ask? (Maybe... You just don't know how the song goes!)
Re: Help. in 99 bottles of beer. please.
Programming
Software Development
12 Years Ago
by JamesCherrill
It does start from 99, it's just that your output window is of limited size and has dropped the earliest part of your output.
Re: Help. in 99 bottles of beer. please.
Programming
Software Development
12 Years Ago
by Jake.20
O.O really? Thank you :D! haha, i thought my code is wrong. thank you all! Godbless.
Re: 10 green bottles- uni student needs help
Programming
Web Development
10 Years Ago
by diafol
http://uk3.php.net/manual/en/control-structures.for.php A simple for loop will do it for you, using `$x = 10; $x>=0; $x--` That should get you started.
Re: 10 green bottles- uni student needs help
Programming
Web Development
10 Years Ago
by Estevan_Musgo
Cheers dude- will try it out when i can get back online (travelling with no lappy is just painful)
Help!
Programming
Software Development
14 Years Ago
by s4rddy
[B]Hi, Please could someone help with the following, I am a beginner at Java :) Thanks[/B] There is a rhyme (a bit like 'Ten Green Bottles' ) called 'Bottles of Beer' which runs thus: 4 bottles of beer on the wall, 4 bottles of beer, Take one down, pass it around (hic), 3 bottles of beer on the wall. 3 bottles of beer on the wall, 3…
Re: Help!
Programming
Software Development
14 Years Ago
by Grn Xtrm
The verses can be done very easily using a for loop. [code=java] int bottles; //have user enter number of bottles and store it in the //bottles variable for(int i=bottles; i>=1; i--) { //print the verses using i for the current amount of bottles // and use i-1 for the remaining bottles } …
warning C4700: uninitialized local variable 'BottlesLeft' used
Programming
Software Development
12 Years Ago
by cheeseboy
Hi there pleasse help. I get the warning C4700: uninitialized local variable 'BottlesLeft' used. [B]Here is what the CalcNrCases is supposed to do:[/B] A value-returning function called CalcNrCases( BottleType, NrBottles, BottlesLeft ) that will calculate and return the number of full cases (NrCases) as an integer. It will also calculate and pass …
php checkbox
Programming
Web Development
11 Years Ago
by nnehadixit
hi friends, here is my problem i'm designing a page with no. of checkboxes but not able to insert its value in mysql... here is my php code: **<?php $host="host"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="packtest"; // Database name…
Broken Sword 3 Wine Bottle Bug
Hardware and Software
Microsoft Windows
19 Years Ago
by Paddy
I'm currently stuck at a particular part of this game. The problem is, I know exactly what I have to do to solve the puzzle, but there's a bug in the game which prevents me from doing it! Here's where I am stuck: I'm in a wine cellar, and there are five bottles in a wine rack which need to be pulled in a particular sequence in order for the …
Javascript and Iframe Help
Programming
Web Development
14 Years Ago
by A___F
Hi, I'm a newbie and trying to use javascript to hide or display different divs within a single IFRAME. I can't seem to get the syntax right... the Iframe, ID "frame", has 5 div's which I want to show depending on what link someone clicks. here's the js : [CODE]<script type="text/javascript"> <!-- var …
Too many Conditional Statements... How to Optimize the code?
Programming
Web Development
12 Years Ago
by BilalAKhan
Hi, I have two DropdownLists. One is for Category and another is for Product. The concept is that with each Category and Product selected, the website will display the result on another page and show all the results present in the database. With more than 25 Categories with me and approx 370 products in each category, I am putting conditional…
Re: Broken Sword 3 Wine Bottle Bug
Hardware and Software
Microsoft Windows
19 Years Ago
by Paddy
I solved my problem hahaha. I was trying to figure out a way around this bug minutes after posting my question here, and in a fit of rage I started frantically slamming all of the buttons on the keyboard, namely the Page Up and Page Down buttons and their neighbouring buttons. While doing this I noticed that I was able to select the bottles I …
Re: Excellent Puzzles !!!
Community Center
Geeks' Lounge
16 Years Ago
by Rooju
For the wine bottle puzzle.. I think I can do it with 9 tasters. Lets say the bottles are labeled B1 through B32 and the 9 tasters are T1 through T9. Let T1 taste from bottles B1 and B2, T2 from B3 and B4, T3 from B5 and B6, and so on. Let T9 taste from the odd numbered bottles i.e. B1, B3, ...., B31. One, and only one, of tasters T1 …
Re: Numbers Only, No Letters Validation
Programming
Software Development
15 Years Ago
by Narue
>I want to put an if statement to make sure that >no letters are entered and only numbers are? You can't control what the user types without delving pretty far into non-standard stuff. You'd essentially need to write your own shell code for handling raw input and the restrict echoing (and storage as well) based on the scan code. …
Help with website not working with Windows Vista.
Digital Media
UI / UX Design
14 Years Ago
by jreddick82
Hello, I have a website that I designed. All the coding is checked with W3C for both HTML and CSS. I have also changed the DOCTYPE around to try different types and nothing seems to work. When you pull the website up on windows Vista whether it is IE or Firefox, the page is all out of alignment and nothing is work properly. Can someone please …
flaw in the code
Programming
Software Development
11 Years Ago
by rishabh.sahay.5
public class NewClass { public static void main(String[]args){ int beerNUM = 99; String word = "bottles"; while (beerNum>0){ if (beerNum == 1){ word = "bottles"; } System.out.println(beerNum + " " + …
Help with computer science assignment?
Programming
Software Development
9 Years Ago
by Maggie_1
Hi, I'm working on this project right now which probably shouldn't be that difficult but I'm really confused and lost. The assignment's instructions are: "Write a program that uses the Monte Carlo sampling method to estimate the average number of bottles of e-Boost someone would have to drink to win a prize. There is a 1 in 5 chance that a …
Re: Help with computer science assignment?
Programming
Software Development
9 Years Ago
by stultuske
the infinite results is because of this: while(randNum != 5) { counter2++; System.out.println("Total bottles needed to find a winner:" + counter2); } you tell the application: as long as radNum is not 5, add 1 to counter2, and print this line. that is when it goes back to the check of the condition: is radNum …
Class Inheritance - matching arguments
Programming
Software Development
16 Years Ago
by superjacent
I'm self studying from the book, C++ Primer Plus Fifth Edition, by Stephen Prata. The following relates to Chapter 13, Page 699, Programming Exercise #4. One task is to write the derived class method definitions based upon the given prototypes. The following are the said prototypes. [CODE="cpp"]class Port { private:…
Undefined reference to 'vtable for ...'
Programming
Software Development
16 Years Ago
by superjacent
I'm self studying from the book, C++ Primer Plus Fifth Edition, by Stephen Prata. The following relates to Chapter 13, Page 699, Programming Exercise #4. One task is to write the derived class method definitions based upon the given prototypes. The following are the said prototypes. [CODE="cpp"]class Port { private:…
I need help!!
Programming
Web Development
15 Years Ago
by Tootlol
Hi! I am a newbie, and recently I have installed php, apache, and mysql on my computer. However, after type some codes the browers left ÈpartÈ of the php code on the brower. It almost seem like the browser doesnèt recognize the code or something. below is what my browser shows Bob's Auto Parts Order Results Order processed at '; echo…
Numbers Only, No Letters Validation
Programming
Software Development
15 Years Ago
by ribena500
Hi, I have some basic code: cout << "HOW MANY BOTTLES IN THE BASKET? "; cin >>bottles; I want to put an if statement to make sure that no letters are entered and only numbers are? How would i do this? Thanks guys!
Anyone very good with small parts?
Hardware and Software
Hardware
14 Years Ago
by IAmCalledDave
A few weeks ago I had a lady bring in her new HP and her old, dead, giant desktop. She was obviously a heavy smoker, as EVERYTHING was covered in not just dust...but solid dirt. Like it was carpeted. I switched her data to the new computer, she left me the dead thing, so I decided to take it upon myself to figure out what I can do to get it …
i need a PSU specialist :p
Hardware and Software
Hardware
14 Years Ago
by IAmCalledDave
A few weeks ago I had a lady bring in her new HP and her old, dead, giant desktop. She was obviously a heavy smoker, as EVERYTHING was covered in not just dust...but solid dirt. Like it was carpeted. I switched her data to the new computer, she left me the dead thing, so I decided to take it upon myself to figure out what I can do to get it …
Re: Undefined reference to 'vtable for ...'
Programming
Software Development
14 Years Ago
by dimbard
[QUOTE=superjacent;562661]I'm self studying from the book, C++ Primer Plus Fifth Edition, by Stephen Prata. The following relates to Chapter 13, Page 699, Programming Exercise #4. One task is to write the derived class method definitions based upon the given prototypes. The following are the said prototypes. [CODE="cpp"]class …
1
2
3
7
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC