+ 1
Can anyone who doesn't upgrade to Pro do the projects successfully?
I'm not a Pro and I have not been able to do any project successfully on this app. Even when my output tallied with the expected output, it still displayed error and try again. I just want to know if one needs to be a Pro to attempt the projects so that I'll stop troubling myself with doing projects.
5 Answers
+ 4
Yes. you can
No need pro for non-pro content projects..
You may have something wrong in code ... Post your try along with full details that you may get help to find what went wrong.
+ 1
package TimeConverter;
import java.util.Scanner;
//I'm to convert days (12days) to seconds.
public class Program {
public static void main(String[] args) {
int hoursInDay = 24;
Scanner input = new Scanner(System.in);
System.out.println("Enter number of days.");
numberOfDays = input.nextInt();
int hours = numberOfDays*hoursInDay;
int minutes = hours*60;
int seconds = minutes*60;
System.out.println(seconds);
}
}
+ 1
Ademola Adeniji
I copy pasted my last post in the project, it working perfectly with all test cases passed. Try again as it is.
If still not work then update app and try again..
If still not work then its may be a bug in app or may mobile support bug
mail to: info@sololearn.com with this issue details. They sure help you to correct the bug.
Hope it helps.
0
//package TimeConverter;
//Sololearn doesn't support user defined packages creation and usage so comment it..
import java.util.Scanner;
public class Program {
public static void main(String[] args) {
int hoursInDay = 24;
Scanner input = new Scanner(System.in);
//System.out.println("Enter number of days."); This may be extra output in your project. Only write output exactly as expected because output is checked as your output must equal to expected output . So this may be extra output in your project , remove it..
int numberOfDays = input.nextInt();
int hours = numberOfDays*hoursInDay;
int minutes = hours*60;
int seconds = minutes*60;
System.out.println(seconds);
}
}
//Ademola Adeniji Now check this code .. hope it helps....
0
Jayakrishna, I really appreciate your effort. However, I did as you advised but it still returned an error. The class name was not found, though class name is created by default as "program". I went ahead and edited it to "TimeConverter" to match the package name also given by.default but it still returned the same error.