You may want to print this quiz out and use the space provided between each part to see how long a writen version will take you.
Define a structure called buzzcard containing
a person's first name, gt number, number of meals remaining, and balance
left on their buzz account. Include appropriate Data Definition and Analysis
comments.
Construct a buzzcard for Elvis Presley:
his gt number is gtuhhuh and he has eaten all of his meals, but he does
have $500 left in his account.
Write the template for processing this structure in a function.
You are an agent working at a real estate agency, and you are given the task
of making a structure to hold information about houses in your selling district.
Your
agency only cares about a few details regarding the houses: the number of acres,
the color of the house, if it has a garage or not, and the number of bedrooms.
Create a structure in scheme that will hold all this information.
[You do not need the data analysis and definition comments]
In an effort to evade the "freshman 15" John created the following structure used to store the number of grams of each energy nutrient in a food:
(define-struct food (carbohydrates protein fat))
Write the template to process this structure.
Write a function which will determine whether a number is even or odd without using the built in divide or remainder function. If the number is even, then function should return the symbol 'even, and if it is odd, return the symbol 'odd. Include the contract and purpose of this function. You may assume the number passed in is a non-negative integer.