Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write code 9. Rishita Program Name: Rishita.java Input File: rishita.dat Rishita's classmate Sunny solved a programming problem from the Invitational A contest about dual-credit

Please write code image text in transcribed
9. Rishita Program Name: Rishita.java Input File: rishita.dat Rishita's classmate Sunny solved a programming problem from the Invitational A contest about dual-credit courses. She found the resulting list of courses from Sunny's contest problem very useful and has accepted a challenge to expand the list by including more data and a different sort. Rishita is as excited as Sunny about taking UIL programming and developing her skills! The previous data from the Texas Common Course Numbering System (TCCNS) included only course codes and titles but now contains the names of the schools that offer the courses. Courses may be offered by more than one school. Can you help Rishita implement a multi-level sort? Input: An unknown number of lines, greater than 1 and less than 100. Each line contains a course title followed by a course code and the name of the school offering the course. Items are separated by commas and there are no other punctuation or special characters except for the dash in the course codes. Output: A sorted list, first by school as the major sort then by course number as the minor sort, both alphabetical (A . Z). List will be formatted as shown in the sample output with the school listed once and the list of courses indented by 3 spaces containing the course code first followed by the course title, separated by 3 spaces. Sample input: UNIVERSITY PHYSICS I LAB, PHYS-2125, TEXAS REPUBLIC COLLEGE ELEMENTARY STATISTICAL METHODS, MATH-1342, TEXAS REPUBLIC COLLEGE CONPUTER ORGANIZATION, COSC-2325, BEXAR COMMUNITY COLLEGE PROGRAMUING FUNDAMENIALS I, COSC-1336, TEXAS REPUBLIC COLLEGE UNIVERSITY PHYSICS I, PHYS-2325, TEXAS REPUBLIC COLLEGE INTRODUCTION TO COMPUTER PROGRAMMING, COSC-1315, BEXAR COMMUNITY COLLEGE C PROGRAMMING, COSC-1320, TEXAS VIRTUAL COLLEGE. CALCULUS I, MATH-2313, TEXAS VIRTUAL COLIEGE, PROGRAMMING EUNDAMENTALS II, COSC-1337, TEXAS REPUBLIC COLLEGE INTRODUCTION TO COMPUTER PROGRAMMING, COSC-1315, TEXAS REPUBLIC COLLEGE PROGRAMMING FUNDAMENTALS I, COSC-1336, TEXAS VIRTUAL COLLEGE PROGRAMMING EUNDAMENTALS III, COSC-2336, TEXAS VIRTUAL COLLEGE Sample output: BEXAR COMMUNITY COLLEGE COSC-1315 INTRODUCTION TO COMPUTER PROGRAMMING COSC-2325 COMPUTER ORGANIZATION TEXAS REPUBLIC COLLEGE COSC-1315 INTRODUCTION TO COMPUTER PROGRAMMING COSC-1336 PROGRAMMING FUNDAMENTALS I COSC-1337 PROGRAMMING FUNDAMENTALS II MATH-1342 ELEMENTARY STATISTICAL METHODS PHYS-2125 UNIVERSITY PHYSICS I LAB PHYS-2325 UNIVERSITY PHYSICS I TEXAS VIRTUAL COLLEGE COSC-1320 C PROGRAMMING COSC-1336 PROGRAMMING EUNDAMENTALS I COSC-2336 PROGRAMMING FUNDAMENTALS III MATH-2313 CALCULUS

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

More Books

Students also viewed these Databases questions