sub-raid's forum posts

Avatar image for sub-raid
sub-raid

1613

Forum Posts

0

Wiki Points

71

Followers

Reviews: 4

User Lists: 0

#1 sub-raid
Member since 2006 • 1613 Posts

I have this assignment that I can't get it's logic.

An old weighing balance has the following mass blocks:
1kg, 500g, 200g, 100g, 50g, 20g, 10g, 5g, 1g
The program should ask the user to enter the mass (in grams) of a certain object.
P.S: The mass should be an integer number.
Then, it should split this mass into the number of each mass blocks that constitute this mass.
For example:
449g will be split into:
2 blocks of 200g
2 blocks of 20g
1 block of 5g
4 blocks of 1g
Notes:
The masses that are not used should not appear in the output, for example we should not
see in the output a sentence like 0 blocks of 100g.
Whenever many masses of the same value are used, use the plural form blocks instead
of block.
Now assume that each gram costs 0.01$, display the price of the item, knowing that if its mass
is above 1Kg, a discount of 10% has to be done.

I can't use anything more advanced than modulus and if statment. chapter 1 only

Also how can i understand C++ logic ??

Avatar image for sub-raid
sub-raid

1613

Forum Posts

0

Wiki Points

71

Followers

Reviews: 4

User Lists: 0

#2 sub-raid
Member since 2006 • 1613 Posts

it's a kids book i remember something about a king and 3 brothers. the 3 brothers were fighting maybe or something like that and the wise king gave them an example about being united with a few sticks, he told them when you put them together you can't brake them but you can brake each one by itself.
it may be for Shakespeare I don't remember, they gave me the book when i was a kid in school and now I can't seem to find it.

Avatar image for sub-raid
sub-raid

1613

Forum Posts

0

Wiki Points

71

Followers

Reviews: 4

User Lists: 0

#3 sub-raid
Member since 2006 • 1613 Posts
Anyone ?
Avatar image for sub-raid
sub-raid

1613

Forum Posts

0

Wiki Points

71

Followers

Reviews: 4

User Lists: 0

#4 sub-raid
Member since 2006 • 1613 Posts

Hello, I am having trouble trying to connect my Blackberry curve 9300 to my wifi home.

I am trying two things :
1st: I put wifi on, I go to set up Wi-FI connection, then I pick my wifi home But I get either Failed to connect to the network, or unable to connect or failed to authenticate against the network...

2nd thing I try: I click on other ways to connect then choose Press button on router. It says press wi-fi protected set-up button on your wireless router or it's administration screen then click "start" to set up a secure connection. I tried to click on the buttonrouterand then on start. But it's not working it keep on searching. I also tried to holf the button while searching and clicked on it severale times when searching but still couldn't work. I need to figure this out I need wifi on it.


One more question: BB app world doesn't work in my country, from where can I download bb apps and games ???

Avatar image for sub-raid
sub-raid

1613

Forum Posts

0

Wiki Points

71

Followers

Reviews: 4

User Lists: 0

#5 sub-raid
Member since 2006 • 1613 Posts

Hello, I am haveing trouble trying to connect my Blackberry curve 9300 to my wifi home.

I am trying two things :
1st: I put wifi on, I go to set up Wi-FI connection, then I pick my wifi home But I get either Failed to connect to the network, or unable to connect or failed to authenticate against the network...

2nd thing I try: I click on other ways to connect then choose Press button on router. It says press wi-fi protected set-up button on your wireless router or it's administration screen then click "start" to set up a secure connection. I tried to click on the button routerand then on start. But it's not working it keep on searching. I also tried to holf the button while searching and clicked on it severale times when searching but still couldn't work. I need to figure this out I need wifi on it.

One more question: BB app world doesn't work in my country, from where can I download bb apps and games ???

Avatar image for sub-raid
sub-raid

1613

Forum Posts

0

Wiki Points

71

Followers

Reviews: 4

User Lists: 0

#6 sub-raid
Member since 2006 • 1613 Posts
If it has only started recently, could be something a little more serious than being unfit. However, it could just be a change in diet, not getting enough sleep, extra stress etc. I knew someone who played basketball at a very high level until they unfortunately got chronic fatigue when they were about 15/16. I suggest seeing your GP if this persists.chaoscougar1
It didn't start recently,but I always said that it's nothing. But today I figured it's nothing normal, none of my friends have this issue.
Avatar image for sub-raid
sub-raid

1613

Forum Posts

0

Wiki Points

71

Followers

Reviews: 4

User Lists: 0

#7 sub-raid
Member since 2006 • 1613 Posts
[QUOTE="chaoscougar1"]If it has only started recently, could be something a little more serious than being unfit. However, it could just be a change in diet, not getting enough sleep, extra stress etc. I knew someone who played basketball at a very high level until they unfortunately got chronic fatigue when they were about 15/16. I suggest seeing your GP if this persists.ice_radon
What kind of sports? I longboard, wakeboard and snowboard. I also bike regularly, and also play pick up games of basketball with friends... but that is way different than playing a game of soccer, full field. It is a different way of breathing, and you also have to pace yourself. Like you have to almost relearn how to breath and pace yourself for each sport... if that makes any sense at all??? I would suggest first seeing if a bit of training improves your stamina. If not, and it has gotten really bad; I would go ahead and see a doctor.

I don't think it's a stamina problem. The thing is I was playing basketball with my friends about an hour ago, a lot of my friends exercise maybe once a month, but i was the only one coughing, my coughing stopped when I got back home after 10 or 15 min.
Avatar image for sub-raid
sub-raid

1613

Forum Posts

0

Wiki Points

71

Followers

Reviews: 4

User Lists: 0

#8 sub-raid
Member since 2006 • 1613 Posts

So it's been a while when I noticed that It's hard for me to breath after a couple of minutes when playing sports. It takes 5 - 10 minutes to get winded while playing football, and about 3 minutes or less when playing basketball.

I know you'll say I am not in shape and then you'll ask if it's been a while that I've done any exercise but the thing is I'm always working out and playing sport

Avatar image for sub-raid
sub-raid

1613

Forum Posts

0

Wiki Points

71

Followers

Reviews: 4

User Lists: 0

#9 sub-raid
Member since 2006 • 1613 Posts
[QUOTE="Nibroc420"][QUOTE="sub-raid"]

Just a quick question, what is more efficient, lifting 5kg hand weights 30 times or 12kg hand weights 15 or 20 times ?

meaning which is better the lifting weight or how much time I lift it ? and explain the difference

Btw I'm 16 year old.

Roushrsh
Depends if you want endurance or strength. More reps, less weight = endurance, gives you bigger mucles low reps, lots of weight = strength, wont get you as big, but you'll be stronger. It's good to switch between the two every 6 or so weeks. Some Hypertrophy (60% max weight, 12-15 reps,) then Strength (75-80% max weight, 6-8 reps)

What he said, except from what I know doing my reps of little won't get you big, but doing less sets of alot will. It's how I'm getting big, how my friend's got big and those who've been doing endurance that I know have stayed small. All the girls I know at the gym keep their weights low and do more reps in order to tighten but not get big too. :S I may be wrong and it may just be a coincidence for everyone I know

Yup that's what I thought too. that doing little weights won't give me big muscles.
Avatar image for sub-raid
sub-raid

1613

Forum Posts

0

Wiki Points

71

Followers

Reviews: 4

User Lists: 0

#10 sub-raid
Member since 2006 • 1613 Posts

Just a quick question, what is more efficient, lifting 5kg hand weights 30 times or 12kg hand weights 15 or 20 times ?

meaning which is better the lifting weight or how much time I lift it ? and explain the difference

Btw I'm 16 year old.