[SOLVED] COP3330 Homework 1

30.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

5/5 - (2 votes)

– Input/output using the Scanner class
– Output formating
– Basic arithmetic
– String class basics, and the split method

UCF-COP 3330-HW1

After inputting all the necessary data (see sample run below), a fee invoice as shown below should be printed to the screen.

ORLANDO FL 10101
*************************
Fee Invoice Prepared for:

1 Credit Hour = $120.25

CRN CREDIT HOURS
4587 4 $481.00
4599 3 $360.75

Health & id fees $35.00

—————————————-
Total Payments $876.75

Sample Run (The user’s entry is marked in bold)

Enter the Student’s Id: V5656
Enter the Student’s full name: Ericka J. Jones
Enter crn/credit hours for the first class(like 5665/3: 4587/4
Enter crn/credit hours for the second class(like 5665/3): 4599/3

Thank you!
Fee invoice prepared for: Ericka J. Jones

ORLANDO FL 10101
*************************
Fee Invoice Prepared for:
[Ericka J. Jones][V5656]

1 Credit Hour = $120.25

CRN CREDIT HOURS
4588 4 $481.00
4599 3 $360.75

Health & id fees $35.00

—————————————-
Total Payments $876.75

String data =”UCF-COP-3330″;
String [] array;

String str1 , str2 , str3; int number;

array = data.split(“-“);

str1 = array[0]; str2 = array[1]; str3 = array[2];

number = Integer.parseInt(str3);

System.out.println(str1);
System.out.println(str2);
System.out.println(number);
System.out.println(data);

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.