hi. i am doing some exercise problems on this charlotte website.
http://chortle.ccsu.edu/java5/cs151java.html#13
Very good website for a newbie who wants to learn java. and hopefully i am confident That after working all the exercise problems and reading the chapters i will be good in java as a matter of fact i am doing very good. anyways i dont understand what the author is trying to ask in the question.
Q) In a new role-playing fantasy game players must design their character by picking a point value for each of three characteristics:
Strength, from 1 to 10
Health, from 1 to 10
Luck, from 1 to 10
Write a program that asks for a name for the character and asks for the point value of for each of the three characteristics. However, the total points must be less than 15. If the total exceeds 15, then 5 points are assigned to each characteristic
output :
Welcome to Yertle's Quest
Enter the name of your character:
Chortle
Enter strength (1-10):
8
Enter health (1-10):
4
Enter luck (1-10):
6
You have give your character too many points! Default values have been assigned:
Chortle, strength: 5, health: 5, luck: 5
p.s: (This user interface could get much more complicated. You might want to implement some of your own ideas.)
i know i need to use if and else statement. i need a variable by the name of total and set a condition that if total is greater than 15 then just print the output as you see above. but he dont say anything about the total < 15. do i need to just print the total for charlotte or what ?
i had my interview today for a software developer position. The employer ask me all kind of statements for loops methods and all that stuff which i was able to answer but then she ask me definition about (ENcapsulation, inheritance, java sql and java applet). i just had Java programming in my resume. Y the employer thought that i knew about java sql or java applet or java swing. That is totally wrong i was so pissed off. i did'nt knew what to say and i can assume that i will fail my interview but this ridiculous.