since Jul 25, 2016

Cows and Likes

Cows

Total received

3

In last 30 days

0

Total given

0

Likes

Total received

10

Received in last 30 days

2

Total given

4

Given in last 30 days

0

Forums and Threads

Scavenger Hunt

Ranch Hand Scavenger Hunt

Greenhorn Scavenger Hunt

hi jeanne

yes i realise that i dont need every value stored in a variable

i have just created a total

and total = total + numberAdded

or total += numberAdded

trying to work out how to get the highest value in the numbers now

yes i realise that i dont need every value stored in a variable

i have just created a total

and total = total + numberAdded

or total += numberAdded

trying to work out how to get the highest value in the numbers now

1 week ago

really battling with the logic in this for loop exercise

Prompt the user for the number of numbers they want to enter. Read in each of the number. When all the number have been entered display: the average, the highest number, the number that were divisible by 3, and the total

what i cant work out is how to store each user input in a variable within the loop and not allowed to use lists

any push in the right direction would greatly be appreciated

Prompt the user for the number of numbers they want to enter. Read in each of the number. When all the number have been entered display: the average, the highest number, the number that were divisible by 3, and the total

what i cant work out is how to store each user input in a variable within the loop and not allowed to use lists

any push in the right direction would greatly be appreciated

1 week ago

are there exercises on this site?

looking for some to do with if else if else

i had some good ones about drivers ages and years driving and whether they qualified for insurance

looking for some online but havent found anything good

looking for some to do with if else if else

i had some good ones about drivers ages and years driving and whether they qualified for insurance

looking for some online but havent found anything good

2 weeks ago

thanks jeanne

yes changed or to and ...its working perfect now

so the and checks it as 1 condition

but or is allowing different results in right?

whats up with all the <b> </br> etc never seen it before

yes changed or to and ...its working perfect now

so the and checks it as 1 condition

but or is allowing different results in right?

whats up with all the <b> </br> etc never seen it before

2 weeks ago

have this question to do

Design and implement a program that will accept a person’s age, number of year driving, and whether or not they drink. The program will determine whether they are eligible for car insurance or not. A person under 22 is not eligible. People 22 and up to 30 are eligible if they do not drink and are driving 3 years or more. People over 30 are eligible if they have at least 6 years driving experience. You need to display an appropriate message to the person who is applying for insurance.

its all working except for over 30 which seems to be running the first if for some reason can somebody please help me understand what is wrong

here is my code

also can somebody tell me how efficient this code is...and how would be the best way to write this...thanks

Design and implement a program that will accept a person’s age, number of year driving, and whether or not they drink. The program will determine whether they are eligible for car insurance or not. A person under 22 is not eligible. People 22 and up to 30 are eligible if they do not drink and are driving 3 years or more. People over 30 are eligible if they have at least 6 years driving experience. You need to display an appropriate message to the person who is applying for insurance.

its all working except for over 30 which seems to be running the first if for some reason can somebody please help me understand what is wrong

here is my code

also can somebody tell me how efficient this code is...and how would be the best way to write this...thanks

2 weeks ago

also is there a way to add a currency symbol like $ or € to the format so that it puts it before the float

3 weeks ago

i have a load of strings with floats and ints that need to be formatted to 2 decimal places and moved across the screen

i know that this line formats subTotal to 2 decimal places

is there a way you can use a variable like this

and apply it to multiple variables?

i tried a few things but just got errors

or does this line have to be applied to every line you want to format

like:

i know that this line formats subTotal to 2 decimal places

is there a way you can use a variable like this

and apply it to multiple variables?

i tried a few things but just got errors

or does this line have to be applied to every line you want to format

like:

3 weeks ago

ok think i have it now

tell me what you think...

tell me what you think...

3 weeks ago

no doesnt work...please help

3 weeks ago

actualFreeFlights = teachers - teachers + freeFlights

think this solved it...but please let me know if im right...or did i miss something

thanks

think this solved it...but please let me know if im right...or did i miss something

thanks

3 weeks ago

now this:

produces this:

how many students?100

how many teachers?100

95

end

its minuses 5 from teacher...and 5 free flights is what it is...i know im close

just cant see it.

produces this:

how many students?100

how many teachers?100

95

end

its minuses 5 from teacher...and 5 free flights is what it is...i know im close

just cant see it.

3 weeks ago

hi guys

if there are students and teachers flying to Kingston Jamaica for holiday and...

Flights are $297.67 per person travelling

There is one free teacher’s flight for every 20 students

There is no reduction if a free flight isn’t availed of

Any extra teachers pay full price

now the thing is that if there is no discount nothing must print out...so it only prints out the discount when a free flight is available and deducts it from the grand total at the end

so i was trying to work it out on paper first...

when dont you want reductions to print (ie when isnt there one)

a) when there is less than 20 students

b) when there are no teachers

any others?

here is the code i have written so far,but i just cant get my head around how this would work

if there are students and teachers flying to Kingston Jamaica for holiday and...

Flights are $297.67 per person travelling

There is one free teacher’s flight for every 20 students

There is no reduction if a free flight isn’t availed of

Any extra teachers pay full price

now the thing is that if there is no discount nothing must print out...so it only prints out the discount when a free flight is available and deducts it from the grand total at the end

so i was trying to work it out on paper first...

when dont you want reductions to print (ie when isnt there one)

a) when there is less than 20 students

b) when there are no teachers

any others?

here is the code i have written so far,but i just cant get my head around how this would work

3 weeks ago

Just to make sure we on the same page

A room has 4 beds...so if 5 students pitch up

There is a surcharge on 3 beds / night

7 is a surcharge of 1 X 8.42 dollars (what ever it was)

Per night

You with me?

A room has 4 beds...so if 5 students pitch up

There is a surcharge on 3 beds / night

7 is a surcharge of 1 X 8.42 dollars (what ever it was)

Per night

You with me?

3 weeks ago

hi guys trying to solve this

Student rooms have 4 beds

There is a surcharge of $8.42 per empty bed in a students’ room

straight mod wont work here will it?

im trying to get it working in an excel spreadsheet first but it isnt working

if i have 5%4 that leaves 1...but theres 3 beds that need to be added...so mod on its own doesnt help

in excel i tried

(4-MOD(number of students/4))

but this doesnt work as if the mod is 0 4-0 is 4...so its wrong

now i know i could write an IF statement for the working data in excel

the bottom line is...am i on the right path...or is there an easier way todo this?

any info/ideas apprecated

Student rooms have 4 beds

There is a surcharge of $8.42 per empty bed in a students’ room

straight mod wont work here will it?

im trying to get it working in an excel spreadsheet first but it isnt working

if i have 5%4 that leaves 1...but theres 3 beds that need to be added...so mod on its own doesnt help

in excel i tried

(4-MOD(number of students/4))

but this doesnt work as if the mod is 0 4-0 is 4...so its wrong

now i know i could write an IF statement for the working data in excel

the bottom line is...am i on the right path...or is there an easier way todo this?

any info/ideas apprecated

3 weeks ago

i dont know seems to be working now...but i was getting an error regarding ints and floats

4 weeks ago