Create a file that contains your favorite movie quote

Assignment Help Computer Engineering
Reference no: EM131839518

Assignment

Program #1

Write an application named UseInsurance that uses an abstract Insurance class and Health and Life subclasses to display different types of insurance policies and the cost per month. The Insurance class contains a String representing the type of insurance and a double that holds the monthly price. The Insurance class constructor requires a String argument indicating the type of insurance, but the Life and Health class constructors require no arguments. The Insurance class contains a get method for each field; it also contains two abstract methods named setCost() and display(). The Life class setCost() method sets the monthly fee to $36, and the Heal th class sets the monthly fee to $196. Write an application named useinsurance that prompts the user for the type of insurance to be displayed, and then create the appropriate object. Save the files as Life.java, Health.java, Insurance.java, and Uselnsurance.java.

Program # 2

Create an abstract class called Student. The Student class includes a name and a Boolean value representing full-time status. Include an abstract method to determine the tuition, with hill-time students paying a flat fee of $2,000 and part-time students paying $200 per credit hour. Create two subclasses called FullTime and PartTime. Create an application that demonstrates how to create objects of both subclasses. Save the files as Student.java, FuilTimejava, PartTime.java, and UseStudentjava.

Program # 3

Write an application that prompts the user to enter a number to use as an array size, and then attempt to declare an array using the entered size. If the array is created successfully, display an appropriate message. Java generates a NegativeArraySizeException if you attempt to create an array with a negative size, and it creates a NumberFonnatException if you attempt to create an array using a nonnumeric value for the size. Use a catch block that executes if the array size is nonnumeric or negative, displaying a message that indicates the array was not created. Save the file as NegativeArray.java.

Program # 4

Write an application that displays a series of at least five student ID numbers (that you have stored in an array) and asks the user to enter a numeric test score for the student. Create a ScoreExcepti on class, and throw a ScoreException for the class if the user does not enter a valid score (less than or equal to 100). Catch the ScoreExcepti on, and then display an appropriate message. In addition, store a 0 for the student's score. At the end of the application, display all the student IDs and scores. Save the files as ScoreException.java and TestScore.java.

Program # 5

Create a file that contains your favorite movie quote. Use a text editor such as Notepad and save the file as quote.txt. Copy the file contents and paste them into a word-processing program such as Word. Save the file as quote.docx. Write an application that displays the sizes of the two files, as well as the ratio of the two file sizes to each other. Save the file as FileStatistics2.java.

Program # 6

a. Create a program that accepts a series of employee ID numbers, first names, and last names from the keyboard and saves the data to a file. Save the program as WriteEmployeeList.java. When you execute the program, be sure to enter multiple records that have the same first name because you will search for repeated first names in part d of this exercise.

b. Write an application that reads the file created by the WriteEmployeeList application and displays the records. Save the file as DisplaySavedEmployeeList.java.

c. Write an application that allows you to enter any ID number and displays the first and last name for the record stored in the employee file with the given ID number. Display an appropriate message if the ID number cannot be found in the input file. Save the file as DisplaySelectedIDNumbers.java.

d. Write an application that allows you to enter any first name and displays all the ID numbers and last names for any records stored in the employee file with the given first name. Display an appropriate message if the first name cannot be found in the input file. Save the file as DisplaySelectedFirstNames.java.

Reference no: EM131839518

Questions Cloud

Do you believe a particular line of work : Do you believe a particular line of work should receive more health and safety consideration than another profession? Why and why not?
Identify an environmental or occupational toxicant : Identify an environmental or occupational toxicant that effects either the respiratory, immune, or hepatic system.
Has terrorism changed the face of america : Has terrorism changed the face of America? Explain in detail. How has terrorism changed U.S. culture and economy? Why or why not? Explain in detail.
Six aims of crossing the quality chasm : Describe ways that HIS and technology can potentially help the Six Aims of Crossing the Quality Chasm be achieved.
Create a file that contains your favorite movie quote : Create a file that contains your favorite movie quote. Use a text editor such as Notepad and save the file as quote.txt.
Explain of the importance of medical informatics : Define and explain of the importance of medical informatics. What impact does medical informatics have on the quality of care of patients?
Identify and describe general effects of the disease : Can someone please explain basic pathophysiology of type 2 diabetes? Particularly.
Reduce asbestos in the environment : Describe recent concerns about asbestos (within the last two years) and any actions taken to reduce asbestos in the environment or reduce
What is managed care and fee-for-service health plans : (1) What is managed care and fee-for-service health plans. (2) Discuss the similarities and differences between these plans.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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