This file contains 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 hngi9 | |
class Circle { | |
var radius: Double | |
var color: String | |
internal constructor() { | |
radius = 1.0 | |
color = "red" | |
} |
This file contains 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
void main() { | |
double classAveragePoint, studentPercentage, studentPoint; | |
print('Enter percentage attained by student:'); // individual student's percentage | |
print('Enter points scored by student:'); // individual student's scored point(s) | |
print('Enter students\' average score:'); // (collective) average score of whole class | |
/*'double.parse(stdin.readLineSync())' from package 'dart:io' | |
* would be used if online consoles supported user input | |
*/ |