Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Instructions complete part I and II thank you! This project has TWO parts. To receive complete grade you must complete both parts by following the

Instructions complete part I and II thank you!
This project has TWO parts. To receive complete grade you must complete both parts by following the instructions.
Part I: (150 points).
This assignment focuses on Object Oriented design using Classes and Objects in Java. Utilizing an array write a class structure with accessors
and mutators that accept 20 numbers from a file called number.txt (you have to create this file in notepad and input numbers that ranges from -100
to 100) and outputs the following:
the sorted numbers in ascending order
the product of the numbers (Multiplication)
the minimum value inputted
the maximum value inputted
Test your program in main and submit the pertaining files based on the rubric.
Failure to write a class structure will result in a grade of zero. Do not write your whole program in main or after main in a modular
programming format.
Your actual class file does NOT have .class extension. Please DO NOT send me your .class file.
To review how to write classes in Java please refer to the following link:
Introduction to Classes and Objects in Java
To review how to read from a file and write to a file in Java, please refer to the following link:
CSO Gaddis Java Chapter4.ppt
Note: If the data file has string or character, your program should handle it through input validation.
Part II: (50 Points) Write a program that will show the output of the following sequence of queue operations:
enqueue(5), enqueue(3), dequeue(), enqueue(2), enqueue(8), dequeue(),
dequeue(), enqueue(9), enqueue(1), dequeue(), enqueue(7), enqueue(6),
dequeue(), dequeue(), enqueue(4), dequeue(), dequeue(),
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Database Systems For Integration Of Media And User Environments 98

Authors: Yahiko Kambayashi, Akifumi Makinouchi, Shunsuke Uemura, Katsumi Tanaka, Yoshifumi Masunaga

1st Edition

9810234368, 978-9810234362

More Books

Students also viewed these Databases questions