Write a java program which reads a text file

Assignment Help Basic Computer Science
Reference no: EM131280225

1. Write a Java program which reads a text file called mydata.txt containing the following numbers: 34 56 76 98 12 33 58 42 98 93 and computes the minimum, maximum sum and average of the numbers and puts the output in a file called myresults.txt.

2. Write a Java Program that prints out Division by Zero and Array Out of Bounds Exceptions when a User attempts to find all integers f rom 1 to 200 whose last digit is 7, but which are not divisible by 3.

3. Implement the following a Customer Address Book using the Array List data structure. The Customer Address Book should do the following: Add Name, Address and Phone Number to Customer Address Book, Edit Name and Phone Number, Delete an Entry, Display all Names and Phone numbers in the Address Book.

4. Write a Java Program which prints out all solutions of the 8-Queen Problem, but modify the program to display only those solutions which are not on the 3th row or 7th column of the 8x8 matrix.

5. Write a Java Program which implements a Stack of Integers. An Integer should only be pushed into the stack if it is odd or contains the number 3.Now pop all integers that contain 5 or 9. Do this for the first 100 numbers. Print out the numbers remaining in the stack after the Pop operation.

Reference no: EM131280225

Questions Cloud

Program that calculates the average of n integers : Write a program that calculates the average of N integers. The program should prompt the user to enter the value for N and then afterward must enter all N numbers. Use an array to save the N integers.
Vendor relationships and marketing it value : Many organizations use information technology vendors to develop company solutions. Determine at least three (3) challenges associated with using vendors. Analyze the relationship between competitive advantage and vendor relationship management ov..
Write a verilog gate-level description of the circuit : The exclusive-OR circuit of Fig. 3.32(a) has gates with a delay of 4 ns for an inverter, a 8 ns delay for an AND gate. and a 10 ns delay for an OR gate. The input of the circuit goes from xy= 00 to xy = 01.
Write a verilog user-defined primitive : A majority logic function is a Boolean function that is equal to 1 if the majority of the variables are equal to I. equal to 0 otherwise. Write a Verilog user-defined primitive for a four-bit majori-ty function.
Write a java program which reads a text file : 1. Write a Java program which reads a text file called mydata.txt containing the following numbers: 34 56 76 98 12 33 58 42 98 93 and computes the minimum, maximum sum and average of the numbers and puts the output in a file called myresults.txt.
Design ip scheme for network based on specific : Design an IP scheme for a network based on specific requirements; Assign IP addresses both manually and dynamically to network devices and hosts; Implement a single-area OSPF network;
Discuss about the health information technologies : Discuss about the Health Information Technologies(HIT).
How much money should be deposited in the fund : Neglecting any charges connected with administration of the fund, how much money should be deposited in the fund at the beginning of the program in order to have enough money accumulated to replace a complete $50,000 loss after 10 years?
Temperature and c is the celsius temperature : The formula for converting a temperature from Celsius to Fahrenheit is F = 9/5 * C + 32 where F is the Fahrenheit temperature and C is the Celsius temperature. Your program must use a loop to display the table.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Explain which is used in object-oriented programming

Explain the term data hiding, which is used in object-oriented programming. Is data hiding a valuable security consideration? Why or why not

  Determine the equivalent lattice-ladder structure

Determine the equivalent lattice-ladder structure.

  Application that would have a very low cache

Can you think of an application that would have a very low cache and main memory hit rate and give an example of a very simple program whose data references demonstrate locality of reference?

  Represents a comprehensive network design

Complete an 8- to 10-slide PowerPoint®presentation that represents a comprehensive network design.The presentation should represent an organization's network, including WAN, LAN, and Home User designs. You will combine your topology for the Home U..

  Write code statements to create a decimal format object

Then write a statement that uses that object to print the value of the result, properly formatted.

  Write a function that performs a block read from the 24lc08b

Write a function that performs a block read from the 24LC08B.

  Improving information systems

Explain how you would go about improving it. Who should be involved with you? What are some of the questions you should ask about the current process? How will you know if the process was actually improved?

  Construct truth table

Their is supposed to be a line over the yz in the middle part and a line over xyz at the end but i could not figure out how to do it.

  Give the number of candidate pairs on the second pass

Give, as a function of s ranging from 0 to 1, the number of frequent items on Pass 1 of the A-Priori Algorithm. Also, give the number of candidate pairs on the second pass.

  Write an assembly language program that computes the product

Write an assembly language program that computes the product of two nonnegative integers a x b using IJVM instructions and 8088 MIC-1 MMV simulation environment.

  Describe an fsm that compares two binary numbers

Describe an FSM that compares two binary numbers supplied as concurrent streams of bits in descending order of importance and enters a rejecting state if the first string is smaller than the second and an accepting state otherwise.

  Explaining relationship of strategic and tactical plans

Descriibe in scholarly detail relationship of strategic, tactical, and operational plans,

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