Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program to display information about schools in North Carolina that offer a BS in Computer Science. The data file NCuniversityData.dat contains the following

Write a program to display information about schools in North Carolina that offer a BS in Computer Science. The data file "NCuniversityData.dat" contains the following information on each line:

image text in transcribed

COMP163 School Ratings Write a program to display information about schools in North Carolina that offer a BS in Computer Science. The data file "NCuniversityData.dat" contains the following information on each line BS in CS Instate cost Out of state cost retention name int 0 no, 1 = yes, 2 online only int Expected annual cost for an in-state student int Expected annual cost for an out of state student double fraction of students who return after first year String name of the school You will probably want to read the school name using the nextLine ) method. You are to write a program that reads the file and displays the following information for those schools that offer a BS degree in Computer Science. Consider only those schools that offer a BS in Computer Science on campus Best and worst retention rates showing the school name and retention rate as a percentage Highest and lowest in-state cost showing the school name and cost Some of the cost and retention data is incomplete. Missing data is given as -9999. Do not consider any data with the value -9999 Sample data 1 1 2160 8304 0.5779 6059 18107 0.8758 1939 7029 0.6303 24180 24180 0.7149 2272 8416 0.5545 27622 27622 0.6357 16794 16794 0.5759 Alamance Community College Appalachian State University Asheville-Buncombe Technical Community College Barton College Beaufort County Community College Belmont Abbey College Bennett College for Women 1 1 and more Sample output Best retention rate is 97.19% at University of North Carolina at Chapel Hill worst retention rate is 39.27% at Shaw University Lowest in-state cost is $4150 at Elizabeth City State University Highest in-state cost is $43623 at Duke University

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 MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

Students also viewed these Databases questions

Question

Question What is the advantage of a voluntary DBO plan?

Answered: 1 week ago

Question

Question How is life insurance used in a DBO plan?

Answered: 1 week ago