Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I just need answer the following question, i'm not looking for the comptlete answer( i already have a running java code ). just need help

I just need answer the following question, i'm not looking for the comptlete answer( i already have a running java code ). just need help on the following report.

UML diagrams ars allowed.

a 3-5 pagewritten report (double-spaced, standard font) that describes the problem, as well as the importantaspects of your solution specifically, a brief description of the problem (including any other generalor famous computer science problems that relate to it); the data structure you used to represent theproblem; a plain English description of your algorithm approach; and finally, pseudocode that describesyour algorithm. Your report should also include a sample input, a diagram explaining your algorithmprocedure, and an appendix including the contents of at least one input file, plus corresponding consoleoutput from running your program with that input file. This must use an input file provided to you notthe input file reported in the problem statement.Your report should be a technical report. Your report must cite at least two non-electronic,peer-reviewed, edited, published resources. If your report cites electronic resources, or includescopied-and-pasted URLs, you will automatically receive a score deduction of 10%.Please, please, PLEASE use at least one computer science book from the library!

1.Outline of your report (describing the data structure you are going to implement, and your pseudocode)

2.Rough draft of your Java code, or pseudocode of your solution technique

Java

image text in transcribedimage text in transcribed

Classy In his memoir So, Anyway..., comedian John Cleese writes of the class difference between his father (who was "middle-middle-middle-lower-middle class") and his mother (who was "upper-upper- lower-middle class"). These fine distinctions between classes tend to confuse American readers, so you are to write a program to sort a group of people by their classes to show the true distinctions There are three main classes: upper, middle, and lower. Obviously, upper class is the highest, and lower class is the lowest. But there can be distinctions within a class, so upper-upper is a higher class than middle-upper, which is higher than lower-upper. However, all of the upper classes (upper-upper, middle-upper, and lower-upper) are higher than any of the middle classes. Within a class like middle-upper, there can be further distinctions as well, leading to classes like lower-middle-upper-middle-upper. When comparing classes, once you've reached the lowest level of detail, you should assume that all further classes are the equivalent to the middle level of the previous level of detail. So upper class and middle-upper class are equivalent, as are middle- middle-lower-middle and lower-middle Input The first line of input contains n (1 S n S 1,000), the number of names to follow. Each of the following n lines contains the name of a person (a sequence of 1 or more lowercase letters z' 'z') a colon, a space, and then the class of the person. The class of the person will include one or more modifiers and then the word class. The colon, modifiers, and the word class will be separated from each other by single spaces. All modifiers are one of upper, middle, or lower. It is guaranteed that the input is well-formed. Additionally, no two people have the same name. Input lines are no longer than 256 characters. Output Print the n names, each on a single line, from highest to lowest class. If two people have equivalent classes, they should be listed in alphabetical order by name

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

OpenStack Trove

Authors: Amrith Kumar, Douglas Shelley

1st Edition

1484212215, 9781484212219

More Books

Students also viewed these Databases questions