Hulp nodig bij een aantal vragen

Status
Niet open voor verdere reacties.

ninoridder

Gebruiker
Lid geworden
3 okt 2012
Berichten
82
1. Assume that name and age have been declared suitably for storing names (like "Abdullah", "Alexandra" and "Zoe") and ages respectively. Assume also that stdin is a variable that references a Scanner object associated with standard input. Write some code that reads in a name and an age and then prints the message "The age of NAME is AGE" on a line by itself, where NAME and AGE are replaced by the values read in for the variables name and age.
For example, if your code read in "Rohit" and 70 then it would print out "The age of Rohit is 70" on a line by itself. There should NOT be a period in the output.

2. Three business partners are forming a company whose name will be of the form "Name1, Name2 and Name3". However, they can't agree whose name should be first, second or last. Help them out by writing code that reads in their three names and prints each possible combination exactly once, on a line by itself (that is, each possible combination is terminated with a newline character). Assume that name1, name2 and name3 have already been declared and use them in your code. Assume also that stdin is a variable that references a Scanner object associated with standard input.
For example, if your code read in "Larry", "Curly" and "Moe" it would print out "Larry, Curly and Moe", "Curly, Larry and Moe", etc., each on a separate line.

3. The HTML attribute used to locate the applet is
 
Klein deel ervan.
Heb het namelijk ook nodig om uiteindelijk te programmeren
 
Weet je zeker dat je het Javascript forum moet hebben, en niet Java? Dit kan allemaal prima met Javascript hoor, daar niet van.. Een aantal termen klinken gewoon Java-achtig (stdin, Scanner, applet).
Verder: waar heb je hulp bij nodig? Snap je de vraag en wat je moet doen?
 
Ik snap de vraag wel maar elke keer als ik het antwoord wil gebruiken klopt het kennelijk niet.
En zou het inderdaad ook wel in het java forum kunnen zetten anders.
 
Misschien kun je je uitwerking (al klopt die dan nog niet) hier ook neerzetten. Dan kunnen wij waarschijnlijk wel uitleggen wat er verbeterd moet worden ;)
 
We zijn een Nederlands forum, dus graag je vragen ook in het Nederlands plaatsen. Daarbij met huiswerkvragen, dien je op zijn minst aan te geven wat je geprobeerd hebt. Anders gaat de topic onherroepelijk dicht.
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan