Montgomery College Rockville Campus Implement a Scheme Program Worksheet

Homework 4 – UMBC – CMSC 331 – Summer 2023Due on June 30, 2023 11:59 PM
In this homework we want to implement a Scheme program. The program reads students
academic records and returns a student’s GPA. You need to submit two copies of your
implementation in the form of rkt files to GL account and Blackboard. We need to be able to run
your program in GL.
You can find a sample record for testing at the top of provided template file.
The equation to be used for calculation is the following:
𝐺𝑃𝐴 =
TGC
TC
TGC represents the  (grade ∗ crdit), i.e. the summation of every grade multiplied by its number
of credits.
TC represents the  (credit), i.e. the summation of number of credits for all courses.
Assignment


Implement a recursive function that receives the student’s record as an argument and
returns the TGC value.
Implement a recursive function that receives the student’s record as an argument and
returns the sum of all credits, i.e. the T value.
Implement the mains function that receives the student’s record as an argument and
returns the student’s GPA. This function is called “calc” and it is using the other functions
for the calculation purposes. You are not allowed to change the main function name.
There is a call to this function at the bottom of the template file which you are not
allowed to modify or remove it.
Implement any other helper function if your need.
Requirements

The output must be formatted with exactly 4 decimal points.
The output must be a number not a string.
The output is a returned value not a printout to the standard output.
All the courses in a record that do not provide numerical values in the grade and credits
fields are to be ignored in calculations.
You are not allowed to use list-ref built-in function.
You are not allowed to modify or remove the call to the main function at the bottom of
the file.
Submission
Please note, you submit the file hw4.rkt on Blackboard and also to your gl account using
the following commands. We will run your code on the gl machine. If you forget to
submit to gl server, you’ll lose the points for that part.
Submission mechanism: Submission to gl server for this assignment happens through
submit utility in gl servers of UMBC. You need to be in the directory that contains your
files.
To submit your modified hw4.rkt file use this command:
submit cmsc331_donyaee proj4 hw4.rkt
To resubmit (overwrite) a file:
submit cmsc331_donyaee proj4 hw4.rkt
To list files that you have submitted:
submitls cmsc331_donyaee proj4
To delete the files you have submitted:
submitrm cmsc331_donyaee proj4 hw4.rkt
There is a help file on using the submit utility at the following URL:
https://wiki.umbc.edu/pages/viewpage.action?pageId=105284083

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper
Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER