A Learning Function is an empirical formula which is responsible for regulating the training of an agent with respect to Machine Learning and Artificial Intelligence (AI). In this regard, given below is our prototype Learning Function, Z, which tunes and regulates the training as well as learning in our AI agents. This is defined such that: Z = y ∗ Ω Given that Ω = 0.567143 and y is a dynamic variable, which is defined with respect to the day of the week and the time of the day

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Q2 – Simple Machine-Learning Function Java Program

A Learning Function is an empirical formula which is responsible for regulating the training of an agent
with respect to Machine Learning and Artificial Intelligence (AI). In this regard, given below is our
prototype Learning Function, Z, which tunes and regulates the training as well as learning in our AI
agents. This is defined such that: Z = y ∗ Ω Given that Ω = 0.567143 and y is a dynamic variable, which is defined with respect to the day of the week and the time of the day, as illustrated in the table below:

Weekday/Time  Day-Light Night-Time
Monday  2.53 3.25
Tuesday 3.15 2.99
Wednesday 3.00 3.99
Thursday 2.41 2.68
Friday 1.99 3.73
Saturday 3.59 2.86
Sunday 2.00 2.59

Therefore, write a Java program correctly such that your source code will accomplish the following:

1. Display a prompt message for the user to enter the Weekday and the Time as a single input separated via the space character. Thus, valid inputs for Weekday and Time variables are: Monday – Sunday and Day-Light as well as Night-Time, respectively. Also, these inputs MUST be case-insensitive.

2. Validate the user’s inputs to ensure that only valid values were entered for Weekday and Time inputs. If an invalid input was received; display the respective error message, and end the program with a note to the user to retry again.

3.If the user has entered a valid input with respect to Weekday and Time, process the user’s inputs to determine the corresponding value for variable, y.

4. Thereafter, compute the resultant value for our prototype learning function, Z, using the aforementioned empiric formula.

5.  You MUST use the switch() statement to implement all your decision/selection logic withrespect to the value for variable ? in the Weekday/Time table given herein. In this regardusing an if() statement instead of switch() statement will be assumed as a logical failure.

6. After processing, display a confirmation message to the user in the form below: Value of the prototype Learning FunctionZ, is: X.XX

7. Finally, display a complimentary-close message as follows: Thank you for contributing to this Machine Learning project!

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY