Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
weight
- Page 1
Re: Hanayama Cast Puzzles - Mind bracing riddles
Community Center
Geeks' Lounge
1 Week Ago
by Emma_Rose
Absolutely, I love puzzles! đź§© The Cast Radix sounds like an awesome challenge—level 4 definitely isn’t a walk in the park. There’s something super satisfying about taking apart a well-crafted metal puzzle and figuring out the perfect movements to get it back together. And yes, that solid, high-quality feel makes a big difference—it’s like the …
Re: How would we poison AI web crawls?
Hardware and Software
Information Security
2 Months Ago
by Reverend Jim
…. I'm surprised it hasn't collapsed under the digital
weight
of the massive amounts of data uploaded daily just to…
Weight
Programming
Software Development
18 Years Ago
by nottoshabi
…"; if ( percentage == 50 ) cout << ( ( (
weight
- barr ) * percentage ) /2 ) << endl; else …if ( percentage == 60 ) cout << ( ( (
weight
- barr ) * percentage ) /2 ) << endl;…
Weight Conversion Storage
Programming
Computer Science
16 Years Ago
by markd220
… need a way to store the data so the total
weight
gets taken in the end (or at least gets close…
Re: finding the weight of an array element
Programming
Computer Science
13 Years Ago
by VernonDozier
"
Weight
", "Width", whatever. In the problem statement it'… "width", in the formula it's called "
Weight
". I can only go by what you provided and…
Re: Weight
Programming
Software Development
18 Years Ago
by Ancient Dragon
>>Also I dont know how to switch the percantage How would you do this with pencil and paper. If you buy a pencil for $1.00 and the taxes are 6 percent what it the total price? Hint: 1.00 plue 1.00 * 0.06. The same in your problem. If you enter 50, then the percentage is 50/100 or 0.5. The formula (untested) should be something like…
Re: Weight
Programming
Software Development
18 Years Ago
by nottoshabi
Damn did not think of that. I was over thinking a simple line. What about the Loop? And why is that Invalid Respons keep showing up?
Re: Weight
Programming
Software Development
18 Years Ago
by Ancient Dragon
apparently the value of response is something else -- maybe you typed "YES" (all upper-case). The best way to handle that is to convert response to all upper case letters so that you don't have so may variations of the same string. That way all you have to do is compare with "YES" or "NO".
Re: Weight
Programming
Software Development
18 Years Ago
by nottoshabi
Ok then why does it make the program flip when I type in anything else besides yes or no?
Re: Weight
Programming
Software Development
18 Years Ago
by WaltP
Is [I]flip[/I] some technical term in computers I've never run across? You need to use words that actually describe the symptoms.
Re: Weight
Programming
Software Development
18 Years Ago
by Ancient Dragon
maybe [i]flip[/i] is like giving someone the bird :mrgreen:
Re: Weight
Programming
Software Development
18 Years Ago
by nottoshabi
Ha haha you guys are helarious. Flip as in flip out. But I did not write the out. If I type in anything besides yes or no the program goes into an endless loop.
Re: Weight
Programming
Software Development
18 Years Ago
by Ancient Dragon
works ok for me -- here's the code I changed [code=c] #include <algorithm> <snip> cout<< "Do you want to enter a different percentage? Yes | No " ; cin >> response; // convert to all upper-case transform(response.begin(),response.end(),response.begin(),toupper);…
Re: Weight
Programming
Software Development
18 Years Ago
by nottoshabi
I get an error: `transform(__gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char*, std::…
Re: Weight
Programming
Software Development
18 Years Ago
by psycotic_furby
[code=cpp] if (response == "Yes" || response == "yes "|| response == "No" || response == "no" ) [/code] You added a space after the lowercase "yes", which I believe may be the cause of your original invalid response. Since your program was looking for "yes &…
Re: Weight
Programming
Software Development
18 Years Ago
by Ancient Dragon
[QUOTE=nottoshabi;343241]I get an error: [/QUOTE] did you include algorithm header file ? what compiler are you using ? some compilers may need the :: global scope operator in front of toupper function name [inlinecode] transform(response.begin(),response.end(),response.begin(), ::toupper); [/inlinecode] If that doesn't fix it then you…
Your weight times the planets weight in classes. C++
Programming
Software Development
13 Years Ago
by nekoleon64
…{ public: // Constructors Planet(); // Post: your
weight
and the Planet's
weight
set to Earth. Planet(string); // Takes in … planet name NewUserWt = SomePlanet.PlanetWt(UserWeight); // calculates users
weight
in chosen planet NewUserPN = SomePlanet.properName(); // stores properly…
opencart: auto calculation of weight
Programming
Web Development
8 Years Ago
by jawuy
…for modules and there are non you may recommend
weight
based shipping or formula based shipping but they do….50){ echo "price is 300 + vat"; }elseif($
weight
> 20.50){ for ($i>20; $i=30;…quot;price is $i" } }else{ echo "no
weight
defined"; } If the code doesnt make sense i kidnly…
Calulating Your weight with the planets weight (classes)
Programming
Software Development
13 Years Ago
by nekoleon64
…: // Constructors Planet(); // Post: your
weight
and the Planet's
weight
set to Earth. Planet(string); // Takes… NewUserWt = SomePlanet.PlanetWt(UserWeight); // calculates users
weight
in chosen planet NewUserPN = SomePlanet.properName(); // …
Re: Your weight times the planets weight in classes. C++
Programming
Software Development
13 Years Ago
by StuXYZ
… std::string Name; const float conv_mass; public: // other stuff float
weight
(const float EarthWeight) const { return conv_mass*EarthWeight; } }; Note what …::endl; std::cout<<"My dogs
weight
== "<<UR.
weight
(8.0)<<std::endl; } The …
Pumpkin Weight Help
Programming
Software Development
15 Years Ago
by topcat712
…range(numPumpkins): count = count + 1 pumpkinWeight = input("Enter the
weight
for pumpkin "+str(count)+": ") totalWeight = total + …return avgWeight def printResults(numPumpkins, avgWeight): print "The average
weight
for "+str(numPumpkins)+" is "+str(avgWeight)[/CODE…
Can WiFi help iPhone fatties lose weight?
Hardware and Software
Hardware
Mobile and Wearables
15 Years Ago
by newsguy
… technology outfit has launched a set of WiFi enabled
weight
scales which uses an iPhone app that enables users… range of secure online service to automatically record their body
weight
, lean & fat mass, and calculated body mass index…itself) rather than just get depressed watching how little
weight
you are losing by sitting looking at a web page…
Re: Using radio button with different weight problem
Programming
Software Development
15 Years Ago
by ebushyu
… standard normal, which means that based upon a packages
weight
being sent to the moon you would multiply it by… .6 to get its destination
weight
, which is what I believe to be your excercise. … Case Expression Case optMoon.Value = yes lblweight.Caption = "New
weight
: " & Val(txtweight) * Val(0.167) But I …
Ideal Weight Calculator with a Slider
Programming
Software Development
14 Years Ago
by bigmouthmonster
Write the ideal
weight
calculator so that height in inches is …H2 / 28 , for male where W is the ideal
weight
in pounds, H is the height in inches Set an…change listener for the slider using addChangeListener(). The ideal
weight
should be displayed in a text field when the… When the program starts up display the ideal
weight
for those settings.
Ideal Weight Calculator with a Slider..pls help!!
Programming
Web Development
14 Years Ago
by bigmouthmonster
Write the ideal
weight
calculator so that height in inches is …H2 / 28 , for male where W is the ideal
weight
in pounds, H is the height in inches Set an…change listener for the slider using addChangeListener(). The ideal
weight
should be displayed in a text field when the… When the program starts up display the ideal
weight
for those settings.
How to implement ReliefF algorithm to weight features in K-NN ?
Programming
Computer Science
14 Years Ago
by igata.isa
Hi every body, I have implemented simple k-NN (without features
weight
) machine learning method. Now I have to implement k-NN with features
weight
. I chosen ReliefF machine learning method to
weight
features. Are there someone tell me the way to implement ReliefF to
weight
features? I had a 1000 instance data set. Thanks so much!!!
Re: Pumpkin Weight Help
Programming
Software Development
15 Years Ago
by masterofpuppets
…range(numPumpkins): count = count + 1 pumpkinWeight = input("Enter the
weight
for pumpkin "+str(count)+": ") totalWeight = totalWeight + … ) return avgWeight def printResults( numPumpkins, avgWeight ): print "The average
weight
for %d is %.3f" % ( numPumpkins, avgWeight ) #three …
Re: CSS: font-weight problem
Digital Media
UI / UX Design
14 Years Ago
by MindSter
Fonts have 9 possible
weight
values: 100 - .. - 900 If a
weight
value doesn't exist, css follows the next rules : [… may be assigned to the next lighter
weight
, if any, or the next darker
weight
otherwise * 500 may be switched with… may be assigned to the next darker
weight
, if any, or the next lighter
weight
otherwise [/CODE] Again, it depends on…
Re: compute a weight and height BMI
Programming
Software Development
7 Years Ago
by Stefce
… { Scanner input = new Scanner (System.in); int
weight
; int height; int bMI; System.out.print ("…;Enter Your
Weight
in Pounds: ");
weight
= input.nextInt(); System.out.print …
source code for calculating molecular weight using csharp
Programming
Web Development
15 Years Ago
by nikweb
Hi everyone, Please, I need source code for calculating molecular
weight
(molecular
weight
calculator) in asp.net using C#. My application is to… formular into a textbox say textbox1 expecting the corresponding molecular
weight
in another textbox called textbox2. All of these should be…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
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
© 2025 DaniWeb® LLC