plt all the terminal in code. Output requirements.

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

Cmplt all the terminal in code. Output requirements. 

 

Check.java
package Checks;
import java.time. LocalDate;
public class Check {
private double amount;
private String payee;
private LocalDate date;
//
}
/*
* Constructor
*/
public Check(double amount, String payee, LocalDate date) {
// Your code here
}
}
public Check(Check original) {
// Your code here
}
/*
* Returns a String representing the check
*/
public String toString() {
String result = "\t\t\t\tDate:\t";
result += date.get MonthValue() + "/";
result += date.getDayOfMonth() + "/";
result += date.getYear() + "\n\n";
}
private String amount Text() {
String result = "";
// Your code here
return result;
}
/*
* Mutators
*/
public void setAmount (double amount) {
// Your code here
}
public void setPayee(String payee) {
// Your code hree
}
public void setDate(LocalDate date) {
// Your code here
}
result += "Pay to the Order of: " + payee + "\t\t";
result += "$" + amount + "\n\n";
result += amount Text() + "\n";
return result;
return amount Text();
/*
* Accessors
*/
public double get Amount() {
// Your code here
}
public String get Payee() {
// Your code here
}
public LocalDate getDate() {
// Your code here
}
CheckDemo.java
package Checks;
import java.time.LocalDate;
public class Check Demo {
public static void main(String[] args) {
Check check = new Check(1915.85, "Walmart", LocalDate.of(2021, 11, 24));
System.out.println(check);
}
check = new Check(15.25, "McDonald", LocalDate.of(2021, 11, 24));
System.out.println(check);
check = new Check(999.00, "Rent", LocalDate.of(2021, 11, 24));
System.out.println(check);
check = new Check(6000.01, "Trip", LocalDate.of(2021, 11, 24));
System.out.println(check);
check = new Check(16518.01, "Car", LocalDate.of(2021, 11, 24));
System.out.println(check);
// System.out.println(check);
//
check = new Check(25000.99, "Tuition", LocalDate.of(2021, 11, 24));
System.out.println(check);
for (int dollar = 0; dollar < 10000; dollar++) {
check.set Amount (dollar + (Math.random()*100)/100.0);
}
Transcribed Image Text:Check.java package Checks; import java.time. LocalDate; public class Check { private double amount; private String payee; private LocalDate date; // } /* * Constructor */ public Check(double amount, String payee, LocalDate date) { // Your code here } } public Check(Check original) { // Your code here } /* * Returns a String representing the check */ public String toString() { String result = "\t\t\t\tDate:\t"; result += date.get MonthValue() + "/"; result += date.getDayOfMonth() + "/"; result += date.getYear() + "\n\n"; } private String amount Text() { String result = ""; // Your code here return result; } /* * Mutators */ public void setAmount (double amount) { // Your code here } public void setPayee(String payee) { // Your code hree } public void setDate(LocalDate date) { // Your code here } result += "Pay to the Order of: " + payee + "\t\t"; result += "$" + amount + "\n\n"; result += amount Text() + "\n"; return result; return amount Text(); /* * Accessors */ public double get Amount() { // Your code here } public String get Payee() { // Your code here } public LocalDate getDate() { // Your code here } CheckDemo.java package Checks; import java.time.LocalDate; public class Check Demo { public static void main(String[] args) { Check check = new Check(1915.85, "Walmart", LocalDate.of(2021, 11, 24)); System.out.println(check); } check = new Check(15.25, "McDonald", LocalDate.of(2021, 11, 24)); System.out.println(check); check = new Check(999.00, "Rent", LocalDate.of(2021, 11, 24)); System.out.println(check); check = new Check(6000.01, "Trip", LocalDate.of(2021, 11, 24)); System.out.println(check); check = new Check(16518.01, "Car", LocalDate.of(2021, 11, 24)); System.out.println(check); // System.out.println(check); // check = new Check(25000.99, "Tuition", LocalDate.of(2021, 11, 24)); System.out.println(check); for (int dollar = 0; dollar < 10000; dollar++) { check.set Amount (dollar + (Math.random()*100)/100.0); }
Expert Solution
steps

Step by step

Solved in 3 steps with 2 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