Re: Need help for a project.
When posting code, please use the code tags. Unformatted code is really hard to read.
What exactly is the problem? Where are you stuck? Are you getting an Exceptions? Unexpected behavior? Something else? You have to be more specific than saying you're stuck on the "int seconds and minutes part", otherwise we're just guessing at your actual question.
Re: Need help for a project.
calculation is wrongly.
1 minute = 60 seconds then if want to get into a time (number of cutlet * 20 seconds)/60 seconds.
you will get the time based on the time you need to get the seconds & minutes.
Re: Need help for a project.
time = cuts * 20 seconds
time/60
time%60
Figure out what that % symbol is and how it is different from / and abolish your if else system, you don't need it.
If you want to not learn anything, here is the answer in white
final int HEATING_TIME = 20;
System.out.println ("It takes 20 seconds to heat one fish cutlet.");
System.out.println ("How many cutlets would you like to heat? ");
int num = scan.nextInt();
System.out.println ("You need to heat the cutlet for " + ((num*HEATING_TIME)/60) + " minutes and " + ((num*HEATING_TIME)%60) + " seconds.");
Re: Need help for a project.
Sigh. Spoon-feeding is NOT helping.