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
Other

UBC CPSC 110 problem set 01 solution 100% graded

Rating
-
Sold
-
Pages
4
Uploaded on
03-06-2023
Written in
2022/2023

This is the solution for problem set 01(PSET 01) which has been graded 100% after submission, This solution is the easy and simple to understand. Best solution for PSET01. 100/100 grade.

Institution
Course

Content preview

;; The first three lines of this file were inserted by DrRacket. They record
metadata
;; about the language level of this file in a form that our tools can easily
process.
#reader(lib "htdp-beginner-reader.ss" "lang")((modname |pset-01-starter (2)|)
(read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-
decimal #f #t none #f () #t)))
;; DO NOT PUT ANYTHING PERSONALLY IDENTIFYING BEYOND YOUR CWL IN THIS FILE.
;; YOUR CWLs WILL BE SUFFICIENT TO IDENTIFY YOU AND, IF YOU HAVE ONE, YOUR
;; PARTNER
;;
(require 2htdp/image)
(require spd/tags)

(@assignment psets/pset-01);Do not edit or remove this tag

;; If you are:
;; - A 110 or 107 student replace the first set of '???'s with your cwl.
;; For problem sets, If you have a partner, please replace the second
;; set of '???'s with their cwl. Remember this, it is what you will
;; do with these @cwl annotations for the whole course.
;; - A UBC Extended Learning student, replace the first set of ??? with
;; your email address as confirmed in the email you received from
;; extended learning. The handin password is also in that email.
;; Remember this, it is what you will do with these @cwl annotations
;; for the whole course.
;;
(@cwl gurkerat)

;; *****************************************************************************
;; NOTE:
;; For lecture starters we want you to submit to handin several times during
;; the lecture. Submit your file even if pressing the "Check Syntax" button
;; produces an error. For lecture we want to see the progression of your
;; work.
;;
;; But for problem sets and labs you should not submit your file if Check
;; Syntax produces an error. Fix the error first, then submit.
;; *****************************************************************************


(@problem 1)
;;
;; Write the BSL expression that most clearly represents the following
;; arithmetic expression:
;;
;; 3^2 + 6 * (6 - 10) / 3
;;
;; which equals 1
;;
;; There is a single BSL expression that both produces the correct result,
;; and most closely matches the structure of the equation given above.
;; Although 1 is an expression that evaluates to 1, that is not the
;; correct answer, because it doesn't show the structure of the expression
;; above.
;;
(+ (sqr 3) (/ (* 6 (- 6 10)) 3))

Written for

Institution
Study
Course

Document information

Uploaded on
June 3, 2023
Number of pages
4
Written in
2022/2023
Type
OTHER
Person
Unknown

Subjects

$11.39
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

Get to know the seller
Seller avatar
gurkeeratsingh

Get to know the seller

Seller avatar
gurkeeratsingh
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 year
Number of followers
0
Documents
1
Last sold
-

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