Question: In this activity, you will be writing a Java application Program for the following problem: PE _ 4 _ 0 _ Day _ Number Specifications:

In this activity, you will be writing a Java application Program for the following problem:
PE_4_0_Day_Number Specifications:
Assume that we assign a number (1-365) to each day of the year. For instance January 1 is 1, February
14 is 45, and December 31 is 365.
Write a Java application program that asks a user for two integer numbers: the first for month (1-12)
and the second for a day in the month (1-31). Your program should calculate what the day number is
for the entered month and the day in the month.
Your program should prompt the user with appropriate/descriptive messages for both the month
and the day.
Your program's output should print the computed day number for the entered month and day.
Use the following comments at the Top of your program:
// Program Name: PE_4_0_Day_Number
/*
Program Description: A brief explanation about the program
Course & Class: CS V40- Beginning Java - CRN #####; Fall 2024
Programmer: Your full name (##)
Date:
*/
Follow the guidelines of "Good Programming Practices " such as descriptive variable names,
proper data types, appropriate use of the language elements, effective logic to solve the problem,
comments throughout your program, consistent formatting to make your code easily to read and
understand.
Your program sample runs, prompt and output messages should look like the following:
----jGRASP exec: java PE_6_0_Day_Number
Enter a month between 1-12: 1
Enter a day between 1-31: 1
The Day Number is: 1 for the month: 1 and the day 1
----jGRASP: operation complete.
In this activity, you will be writing a Java

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!