They didn't tell you what methods were required or anything?
Your question is vague as fuck, have you tried implementing anything yet?
Based off of the pics:
1) Just a simple int input, check if the input is > 0, if not print out a statement saying "value is less than 0" loop until they enter a value > 0 (while value <= 0)
2) Just a simple char input, check if the input is C or R or M, if it is not, loop until one of those values is entered (while value != C || value != M || value != R) If the character isn't one of those throw a print statement saying invalid value or whatever
3) Easy just print out the values from 1 and 2
4) Prompt the user for a character value 'y' or 'n', if not use a while loop until they do put in the correct value
Use an if/else statement inside the while loop (while not y or not n) and if y do 1 and 2 (can just copy and paste code, or make it a separate method and call that method)
If n, break
5) You can append the string outputs together, or if you know how to use arrays everytime you do 1 and 2, add the values to the array to store for later use
Iterate through the array to print out the values you need.
To be honest don't know how much you know so..there are much better ways to implement this code with more advanced features, but this is a basic way.
This post was edited by lopelurag on Oct 3 2012 08:01pm