This repository has been archived on 2026-05-22. You can view files and clone it, but cannot push or open issues or pull requests.
2018-10-12 20:46:39 -04:00
2018-10-12 20:45:18 -04:00
2018-10-12 20:45:18 -04:00
2018-10-12 20:45:18 -04:00
2018-10-11 20:45:40 -04:00
2018-10-11 20:45:40 -04:00
2018-10-12 20:46:39 -04:00

Term Project Part I

Three Programs

Create a program (or programs) which show how the language you picked (Kotlin) works with the following:

  1. I/O
  2. Data Structures
  3. Control Structures

Report Card Generator

Accepts a file sample.grades where each line is an assignment in the format: <course name>: <grade>. The program iterates through the file and computes the average and letter grades for all courses listed in sample.grades.

sample.grades
three_feature.kt

Language features

Language structures used include:

  • Iterable unpacking
  • Implicit type arguments
  • Null safety and propagation (as in courses[course]!!.add(grade))
  • Iteration
  • Actions (as in file.forEachLine)
  • Pattern matching (simple example using when expression)
  • String interpolation
  • Classes, methods
  • Extension methods

Kotlin library features used include:

  • File I/O
  • Standard I/O
  • String conversions
  • Mutable maps and lists
Description
Programming Languages. Befunge editor and emulator.
Readme 37 KiB
Languages
Kotlin 100%