Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Assignment #7 SE475 Software Construction Spring, 2021 Objectives: Learn more about exceptions and assertions Apply exceptions and assertions to the productions and development code Learn how to implement simple GUI (either swing or FX) in Java Instructions: Use NetBeans IDE You only need to submit the application Create Jar file Submit a single zipped folder

Assignment #7 SE475 Software Construction Spring, 2021 Objectives: Learn more about exceptions and assertions Apply exceptions and assertions to the productions and development code Learn how to implement simple GUI (either swing or FX) in Java Instructions: Use NetBeans IDE You only need to submit the application Create Jar file Submit a single zipped folder

Computer Science

Assignment #7

SE475 Software Construction

Spring, 2021

Objectives:

  • Learn more about exceptions and assertions
  • Apply exceptions and assertions to the productions and development code
  • Learn how to implement simple GUI (either swing or FX) in Java

Instructions:

  • Use NetBeans IDE
  • You only need to submit the application
  • Create Jar file
  • Submit a single zipped folder. Your folder should be named: Fname_Lname_Assignment_7

Problem Statement:

You are simulating a toll Pass system. You have to write a computer program that will deduct and deposit money into an account and keep record of it with a text file. Begin the program with asking the user to enter their name and address. Print this info to a file using the PrintWriter concept in Java. Ask the user to deposit money into the account. Store it and print it to the same file as before. Close writing to the file.

When writing to the file, make sure to use exceptions to capture any problems.
Create an Exception called LowBalance. This Exception will trigger if the balance has a value of 20 or lower.

Create a loop that will simulate a car traveling on a highway and goes through 5
tolls. Each time testing if it has a low balance. Each toll booth will be charge 5 dollars when the car passes. Every time a low balance exception is triggered a low balance print statement should be printed to the file. Remember to close the file when complete.

Make sure to use assertions to debug your program. Comment all assertions before you submit.

 

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE