• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 38 pages
Exam (elaborations)

AQA A LEVEL Computer Science PAPER 2

Document preview thumbnail
Preview 4 out of 38 pages

AQA A LEVEL Computer Science PAPER 2 (a) Write the function getText (b) The procedure, fullStop, needs to: • ask for a file name as input • read the data from the file using the function getText • replace the first letter after each full stop with a capital letter if it is currently lower case (if the next character is a space, it must check each successive character until it finds a letter) • write the edited data back to the text file. You can assume the text file only contains upper and lower case letters, spaces and full stops. Part of the ASCII table has been provided: ASCII Value Character 65 "A" 90 "Z" 97 "a" 122 "z" 32 " " (space) 46 "." (full stop) The following functions may be used in your answer: asc(character) returns the ASCII value for a single character, e.g. asc("A") would return 65. upper(character) returns the single character in upper case, e.g. upper("a") would return “A”. Write the procedure fullStop.


Document information

Uploaded on
July 3, 2023
Number of pages
38
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers
$18.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.
PrincessKinsley
4.5
(120)
Sold
237
Followers
115
Items
4307
Last sold
3 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

Whoops! We can’t load your doc right now. Try again or contact support.