Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Please help with these two codings, I don't know if there are connected to each other or if they are separated, but everytime that I

Please help with these two codings, I don't know if there are connected to each other or if they are separated, but everytime that I try to run MonthDriver.java it automatically opens Month and it says that it has 38 errors, which I dont see either, so neither of them run. PLEASE CORRECT CODING AND ADD SCREENSHOTS, thanks!!

The picture that is taken from the screen is MonthDriver.java and the picture taken from the papers is Month Class, which thats the one that I dont know if it should be broken down or all together.

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

import java.util.Scanner; public class MonthDriver public static void main(String[] args) ation be to "); System.out.println(both class and Devel Scanner input - new Scanner(System.in); Month nl - new Month(); for(int i = 2; 1 = 1 && this.monthNum this.monthNum - monthNum; - A constructor that accepts the name of the month, such as "January" or "February" as an argument. It should set the monthNumber field to the correct corresponding value. //constructor with args - sets monthName to corresponding monthlum public Month(String monthName) for (int i = 1; i 1 66 monthnum = 1 && this.monthnum 1 && monthNum monthl.monthNum) return isGreat; else return not Great; - A less Than method that accepts a Month object as an argument. If the calling object's monthNumber field is less than the argument's monthNumber field, this method should return true. Otherwise it should return false. //less Than method public String lessThan (Month monthl) String isless - getMonthName() + " is less than " + monthi.getMonthName() + String notLess - getMonthName() + " is NOT less than " + monthi.getMonthName() + "."; if (monthNum

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions