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
Exam (elaborations)

Task 2 CSPR questions with 100% solved answers

Rating
-
Sold
-
Pages
2
Grade
A+
Uploaded on
17-08-2024
Written in
2024/2025

Exam of 2 pages for the course CSPR at CSPR (Task 2 CSPR Exam)

Institution
CSPR
Course
CSPR

Content preview

Task 2 CSPR




declare values - answersnumDays *<-*20
highestLateness*<-* 0
latestBus *<-* " "
busALate*<-* 0
busATotalLate *<-* 0
busATotalTime*<-* 0

*the number of late arrivals for each bus route - answersFOR x *<-* 1 TO numDays DO
IF BusA[x] < 0 THEN
busALate *<-* busALate + 1
busATotalLate*<-* busATotalLate + (1 - BusA[x])
busATotalTime *<-* busATotalTime + BusA[x]
NEXT x

• the bus route with the highest number of days on which it was late
• - answersIF busALate > highestLateness THEN
highestLateness *<-* busALate
latestBus *<-*"Bus A"

the average number of minutes late for each bus route, using only data from days on
which it was late - answersbusAAveLate = busATotalLate / numDays

the average number of minutes late for each bus route - answersbusAAveTime =
busATotalTime / busALate

print the answers for the bullet points - answersPRINT "The number of late arrivals for
Bus A was", busALate
PRINT "The average number of minutes late for Bus A was", busAAveTime

Written for

Institution
CSPR
Course
CSPR

Document information

Uploaded on
August 17, 2024
Number of pages
2
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$15.99
Get access to the full document:

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


Also available in package deal

Get to know the seller

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.
DESTINYGRACE Harvard university
Follow You need to be logged in order to follow users or courses
Sold
16
Member since
2 year
Number of followers
5
Documents
2124
Last sold
6 days ago
TESTBANK,AQA AND ALLSTUDY MATERIALS

IM MY SHOP YOU WILL FIND DOCUMENTS ,PACKAGE DEELS AND ALLEXAMS BY DESINYGRACE

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

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