Text file containing the data

Assignment Help JAVA Programming
Reference no: EM13760286

In Java: This program should begin by asking the user for the name of a text file containing the data. Then...

This program should begin by asking the user for the name of a text file containing the data. Then read the data which will be a line containing the dimensions of a 2 dimensional array followed by a 2 dimensional array of ints. Then perform various operations (see the sample interaction below). Then replace the text file with the modified 2 dimensional array (with the file formatted the same way).

Sample input.txt file:

3 5
2 3 4 5 10
4 5 2 3 7 -
3 -1 0 1 5
Sample interaction 1:
Next command >
help
Legal commands:
show array
which rows sorted
which cols sorted
increase row i by n i
increase col j by n
quit Next command >
show array 2 3 4 5 10
4 5 2 3 7 -
3 -1 0 1 5
Next command > which rows sorted
Sorted rows: 0, 2
Next command >
which cols sorted
Sorted columns:
Next command > i
ncrease row 2 by 8
Next command >
increase col 4 by 1
Next command >
show array
2 3 4 5 11
4 5 2 3 8
5 7 8 9 14
Next command >
which cols sorted
Sorted columns: 0, 1

Next command >quit

Reference no: EM13760286

Questions Cloud

Create class named horse : in Java Create a class named Horse that contains data fields for the name, color, and birth year. Include get and set methods for these field. Next, create a subclass named RaceHorse, which contains and addtional field that holds the number of rea..
B-tree might be an elegant solution for the sorting : As you are working on finalizing the code for your solution, you are thinking that a B-Tree might be an elegant solution for the sorting and search algorithms. In order though to implement the solution in the most elegant fashion the use of recurs..
Develop the myclone class : You will also create another class of your choice. Your programmer-defined class should have at a minimum two instance variables and one method - You will create a Virtual World application as your final project. This Virtual World will have sever..
What might be some feasible solutions to the funding problem : Several million people visit these parks each year-an important part of the state's tourism. What might be some feasible solutions to the funding problems of the park system?
Text file containing the data : This program should begin by asking the user for the name of a text file containing the data. Then read the data which will be a line containing the dimensions of a 2 dimensional array followed by a 2 dimensional array of ints. Then perform variou..
Write an application that uses an array : Write an application that uses an Array to store 10 messages of type String. You can load this data structure with 10 messages of your choosing.
Computer and technology : Assume a program has 510 bytes and will be loaded into page frames of256 bytes each, and the instruction to be used is at byte 377. Answer the following questions:
Construct an appropriate chart : Construct an appropriate chart/graph that displays the relevant information for these two variables -  Write the null and alternative hypotheses used to test the question above (e.g., whether participation in the course affects writing scores).
Find an article in the library that relates to developing : Find an article in the library that relates to developing a project (program) charter and then summarize and discuss the article as well as describe based upon what you have learned how you would develop a program charter and merge the topic with the..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd