QUOTE(PsychoCoder @ 4 Mar, 2008 - 06:58 AM)

What "problem" is it giving you? When posting a question for help, please include:
- The code that is causing the problem
- The error message you are receiving (if you are receiving an error)
- If not receiving an error then provide a detailed explanation of what you are trying to do, what the code is doing, and what problem you are having
This. I just want someone to give me an idea on how to start it.
¨ for
¨ do while
Example program of what you should know for the test:
A user will be prompted for the gender of their beloved…M or F. You must use toupper to simplify the test for case. Either small or capital letters are acceptable. This will be error tested and a message will be printed if it is an incorrect letter and the user will reenter until it is a correct letter. If the beloved is male, the pronoun will be he. If the beloved is female, the pronoun will be she.
You will generate a random number of petals on a flower. This will be a number between 5 and 10.
To generate a random number declare the following…
Declare this once
Random myRandom = new Random();
The following line will store a random number between 5 and 10 in the variable numberOfPetals, which is declared previously as an integer.
numberOfPetals = myRandom.Next(5, 11);
You will generate a loop that will say…
He or She loves me…
He or She loves me not…
The message alternates for every petal on the flower. For each of the possible three rounds, a new random number of petals is generated. The loop will run three times or stop as soon as the person is loved twice…or NOT loved twice… The loop may or may not occur three times. At the end, the user should be given a message of condolence or congratulations depended on the love or lack there of love. The loop always starts with He or She loves me…