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...
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);
}](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F9a48f55f-d319-4fa0-a1c3-0d0c662e6918%2F78558762-e923-4b36-8eaa-85c139187e38%2Fuqlt8up_processed.jpeg&w=3840&q=75)
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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 2 images

Recommended textbooks for you

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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

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
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY