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 how is a dsl interconnection distinct from the

q1.what are the basic principles that apply to all networks?q2.what is an ethernet card?q3.what does a network switch

  Write the declarations needed for this implementation

Write the declarations needed for this implementation.

  Critically analyze the transmission media

Critically analyze the transmission media you would recommend for each different building and department of the medical instrument company

  Print a message to tell the user

Write a Java program that asks the user to input a year number in the 21st century (such as 2016, 2023, or 2090). Print a message to tell the user that whether the year is a leap year, and how many days in February of this year.

  Write a c program that will generate every third integer

Write a C program that will generate every third integer

  Major activities of an operating system

What are the three major activities of an operating system in regard to secondary-storage management?

  What type of employees will you hire to work at help desk

You have been asked to create a help desk for the computer support division of your company

  Why does this occur and which resources are affected

When building a large Hopfield network consisting of many neurons, computer resources are being consumed very quickly. Why does this occur and which resources are affected?

  Are k1 and k2 independent events

Are K1 and K2 independent events?

  Write method "design" which takes integer size as parameters

Write the method "design" which takes an integer size as parameter, and prints a "design square" with the following characteristics:

  Determine the specific impulse of this engine

Determine the specific impulse of this engine when the compressor pressure ratio is 9 and the temperature at the turbine inlet is 700°F.

  Calculates a persons bmi the program

Draw a hierarchy chart and then plan the logic for a program that calculates a persons bmi the program uses 3 modules the 1st prompts for user height in inches the second accepts user weight in pounds and converts the users height to meters and we..

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