ZSP VŠPJ 1st Homework Assignment
|
🎓 University: VŠPJ
📚 Subject: Fundamentals of Structural Programming (ZSP)
📅Academic Year: 2023/24
u1_1
) Description:
Upon entering the number of pieces and the unit price (excluding VAT) via keyboard, the program will compute:
Sample Output:
Účtenka
Cena bez DPH/ks 200 Kč<tab>Cena s DPH/ks 240 Kč
Počet kusů: 5<tab>Cena bez DPH 1000 Kč<tab>Cena s DPH (20 %) 1400 Kč
Translated Sample Output:
Receipt
Price without VAT/pc 200 CZK<tab>Price with VAT/pc 240 CZK
Number of pieces: 5<tab>Price without VAT 1000 CZK<tab>Price with VAT (20%) 1400 CZK
u1_2
) Description:
Upon entering 5 grades via keyboard, the program will determine the average of the grades and categorize the grade as either: pass with distinction, pass, or fail.
Note:
Implement a suitable constant variable and define its value within the program.
Sample Output:
Známky: z1<tab>z2<z3><tab>z4<tab>z5
[Průměrná hodnota zaokrouhlená na dvě desetinná místa]
Prospěl s vyznamenáním: {1:Ano/0:Ne}
Prospěl: {1:Ano/0:Ne}
Neprospěl: {1:Ano/0:Ne}
Translated Sample Output:
Marks: z1<tab>z2<z3><tab>z4<tab>z5
[Average value rounded to two decimal places]
Pass with distinction: {1:Yes/0:No}
Passed: {1:Yes/0:No}
Fail: {1:Yes/0:No}
u1_3
) Description:
Users will input a currency code (e.g., EUR, GBL, etc.) and the equivalent value of that currency in CZK. Subsequently, the number of currency units to be exchanged will be input. The program will then calculate and display the total cost in CZK for the foreign currency exchanged.
Sample Output:
1 GBP = 24.9 Kč
Nákup: 5 GBP
Celkem: 5 x 24.9 = 124.5 Kč Zaokrouhleno: 125 Kč
Translated Sample Output:
1 GBP = 24.9 CZK
Purchase: 5 GBP
Total: 5 x 24.9 = 124.5 CZK Rounded: 125 CZK
Note | Status | |
---|---|---|
U1_1 OK | ||
U1_2 OK | ||
U1_3 OK | ||
User-unfriendly, lacks instructions on what the user should do. (-1 point) | Specs lacked explicit requirements. Evaluator credited +1 point back. (+1 point) | |
Total Points: | 12/12 | |
🟢🟢🟢🟢🟢 |