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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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