mirror of
https://github.com/kucherenko/jscpd.git
synced 2026-09-19 08:11:03 +08:00
64e471e2b0
Adds 92 new tests (178 → 270 total) with zero source-file modifications: - packages/finder: 13 new test files covering all reporters, subscribers, validators, hooks, utils, options, cloneFound, getFilesToDetect, and InFilesDetector; shared buildClone() factory helper - apps/jscpd: 3 new test files (options-unit, print, store) plus extensions to formats, modes, and options integration tests - vitest.config.ts added to both packages to restrict coverage.include to src/** only, eliminating bin/ and prism.js noise - Fixes 3 tokenizer bugs (trailing space in format lookup, tokenization edge cases) uncovered by the new format fixture suite - Adds fixture files for 40+ language formats to support formats.test.ts
25 lines
769 B
QBasic
25 lines
769 B
QBasic
10 REM Basic Program for grade calculation
|
|
20 DIM scores(10)
|
|
30 DIM names$(10)
|
|
40 count = 0
|
|
50 FOR i = 1 TO 10
|
|
60 INPUT "Enter student name: ", names$(i)
|
|
70 INPUT "Enter score (0-100): ", scores(i)
|
|
80 count = count + 1
|
|
90 NEXT i
|
|
100 total = 0
|
|
110 FOR i = 1 TO count
|
|
120 total = total + scores(i)
|
|
130 NEXT i
|
|
140 average = total / count
|
|
150 PRINT "Class Statistics:"
|
|
160 PRINT "Total students: "; count
|
|
170 PRINT "Average score: "; average
|
|
180 FOR i = 1 TO count
|
|
190 IF scores(i) >= 90 THEN PRINT names$(i); " - Grade: A"
|
|
200 IF scores(i) >= 80 AND scores(i) < 90 THEN PRINT names$(i); " - Grade: B"
|
|
210 IF scores(i) >= 70 AND scores(i) < 80 THEN PRINT names$(i); " - Grade: C"
|
|
220 IF scores(i) < 70 THEN PRINT names$(i); " - Grade: F"
|
|
230 NEXT i
|
|
240 END
|