Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Exercise-Use of the Function Split - Slides | CSE 1001, Study notes of Software Engineering

Material Type: Notes; Class: Fund of Software Dev 1; Subject: Computer Sciences; University: Florida Institute of Technology; Term: Unknown 2000;

Typology: Study notes

2009/2010

Uploaded on 02/25/2010

koofers-user-jtk-1
koofers-user-jtk-1 🇺🇸

5

(1)

10 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Exercise Use of the Function Split()
Write a Java program that reads an array of
string entries, parses each string read in the
array and prints out the contents in a
formatted manner.
Each string entry contains a student-name, major,
total credits earned, and GPA
These are separated by commas
pf3

Partial preview of the text

Download Exercise-Use of the Function Split - Slides | CSE 1001 and more Study notes Software Engineering in PDF only on Docsity!

Exercise – Use of the Function Split()

  • Write a Java program that reads an array of

string entries, parses each string read in the

array and prints out the contents in a

formatted manner.

  • Each string entry contains a student-name, major,

total credits earned, and GPA

  • These are separated by commas

Sample Input Dialog (User responses underlined)

Enter number of entries: 5
Entry 1: Matthew, Software Engineering, 12, 3.
Entry 2: Charlotte, Computer Science, 9, 3.
Entry 3: Adam, Applied Mathematics, 15, 4.
Entry 4: Philip, Aerospace Engineering, 18, 3.
Entry 5: Sarah, Physics, 6, 3.