This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
s1 = '10:00:00' | |
s2 = '11:00:00' | |
FMT = '%H:%M:%S' | |
tdelta = datetime.strptime(s2, FMT) - datetime.strptime(s1, FMT) | |
# Rate per hour | |
hourlyRate = 10.15 | |
# Converts data type of hourly rate > string | |
strHourlyRate = str(hourlyRate) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package packageOne; | |
import java.util.*; | |
public class TestScoreStatistics { | |
public static void main(String[] args) { | |
Scanner input = new Scanner(System.in); | |
System.out.println("Enter a score or \"999\" to end the program."); | |
int score; | |
do { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package packageOne; | |
public class ShowStudent { | |
String name,school; | |
int age,studentID,studentGPTS,studentCH; | |
float studentGPA = studentGPTS/studentCH; | |
} |