Class File Name: NumberFile.java - Method to Create a Text File - IT Assignment Help

Download Solution Order New Solution
Assignment Task:

Task:

1. Class file name: NumberFile.java
 

A) Write a method to create a text file named numbers.txt that is to contain the whole numbers 101 to 10000 (use a for loop to write the output to the file). Write a second method that will read the data from numbers.txt and display the content to the screen (one value per line of output). Write a third method that can be used to add (sum) all of the numbers from the file and display their total on the screen – do not use an array.

 

B) Modify your program (and possibly the methods) so that

I) the user can choose the starting and ending values to be stored in the text file
II) the user can enter the name of the file that is created by the first method
III) the user can enter the name of the file that is to be read by the second method

 

2. Class file name: Expenses.java and ExpensesArrayDemo.java

One of the accountant’s at Dunder Mifflin, Kevin Malone, investigates the option of obtaining a bank loan to help pay off his gambling debt
(https://www.youtube.com/watch?v=J1LvfXX9Uhs ). He tells the bank that he intends to use the loan to start an ice-cream business, called Malone’s Cones, which will sell delicious ice- cream such as Fudge the Magic Dragon. Kevin needs a simple program that keeps track of his monthly expenditure for the business so that he doesn’t accidently spend too much of the money – the balance at the end of the month should be either 0 or a positive value if he sells at least as much as he spends.

 


This IT Assignment has been solved by our IT  Experts at onlineassignmentbank. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics.Our Experts are well trained to follow all marking rubrics & referencing style.

Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

 

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.