Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 1 out of 4 pages
Exam (elaborations)

Computer science pre release material QUESTIONS AND CORRECT DETAILED ANSWERS WITH RATIONALES 2025/2026 (VERIFIED ANSWERS) |ALREADY GRADED A+

Document preview thumbnail
Preview 1 out of 4 pages

Computer science pre release material QUESTIONS AND CORRECT DETAILED ANSWERS WITH RATIONALES 2025/2026 (VERIFIED ANSWERS) |ALREADY GRADED A+

Content preview

Computer science pre release material

Task 1 checking to be had parking dates and recording parking info (component 6) - ANS-IF
ArraySpace [Endingindex] = FALSE THEN
OUTPUT "No parking space to be had for chosen day"
ELSE
WHILE ArraySpace [Startingindex] = FALSE
Startingindex <- Startingindex + 1
ENDWHILE
ArraySpace[Startingindex] = FALSE
OUTPUT "Enter your name"
INPUT ArrayName[Startingindex]
OUTPUT "Enter your license variety"
INPUT ArrayLicense[Startingindex]
OUTPUT "Parking space booking details"
OUTPUT "Day of reserving", PDay
OUTPUT "Name:", ArrayName[Startingindex]
OUTPUT "License wide variety:" ArrayLicense[Startingindex]
OUTPUT "Parking area allotted:" Startingindex
ENDIF
Task 1 maintaining (part 1) - ANS-DECLARE ArrayName : ARRAY[1:280] OF STRING
DECLARE ArrayLicense : ARRAY[1:280] OF STRING
DECLARE ArraySpace : ARRAY[1:280] OF BOOLEAN
DECLARE ODay, PDay, Startingindex, Endingindex : INTEGER
CONSTANT MINODay <- 1
CONSTANT MAXODay <- 14
Task 1 initialising (element 2) - ANS-FOR index <- 1 TO 20
ArraySpace[index] = TRUE
NEXT index
Task 1 initialising starting index and ending index (element five) - ANS-Startingindex <- [(PDay -
1) x 20] + 1
Endingindex <- Startingindex + 19
Task 1 working day selection and validation (element 3) - ANS-REPEAT
OUTPUT "Enter running day (1-14)"
INPUT ODay
IF ODay <MINODay OR ODay >MAXODay THEN
OUTPUT "Invalid parking day. Try once more"
ENDIF
UNTIL Oday >=MINODay AND ODay <=MAXODay
Task 1 parking day selection and validation (part 4) - ANS-REPEAT
OUTPUT "Enter working day from" ODay "to fourteen"

Document information

Uploaded on
November 21, 2024
Number of pages
4
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$13.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Ashley96
4.0
(173)
Sold
643
Followers
200
Items
5365
Last sold
6 hours ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions