Write code to demonstrate your function on various inputs

Assignment Help Computer Engineering
Reference no: EM132198869

Write the following function using the Scheme programming language:

A function (addBinary binaryList) that takes a list of binary numbers and returns their decimal sum. (addBinary '(1101 111 10 101)) returns 27.

The function must be written in a functional style and must use only the basic Scheme functions car, cdr, cons, null, atom, the equality functions, the arithmetic functions, append, and the conditional functions if and cond.

Be sure to write some code to demonstrate your function on various inputs.

Reference no: EM132198869

Questions Cloud

Income distribution in the last two decades : Look back at Exhibit 1 in this chapter. How would you explain the shift of the U.S. income distribution in the last two decades?
Find all pairs of students taking the same courses : Find the major in which the most students have more than one class with a given professor. Find all pairs of students taking the same courses.
Propose a form of command and control intervention : Propose a form of command and control intervention to correct this externalityor explain one that already exists.
A function that removes all occurrences of the integer : A function (myRemove num list) that removes all occurrences of the integer num from a simple list of integers, returning list with num removed.
Write code to demonstrate your function on various inputs : A function (addBinary binaryList) that takes a list of binary numbers and returns their decimal sum. (addBinary '(1101 111 10 101)) returns 27.
Which department is associated with the lowest revenue : Find out other warehouses whose average quantity on hand is not smaller than That of Atlanta warehouse.
Plot the year-over-year growth rate : In a seperate graph, plot the Year-Over-Year growth rate of M2, M2++ and the Year-Over-Year Growth Rate of CPI. for the period of 2008 to 2018.
Definition of the keynesian multiplier : According to the definition of the Keynesian multiplier, an economy with $10 in investment
A constructor that has an const unsigned int parameter : A constructor that has an const unsigned int parameter. This constructor needs to dynamically allocate an array of the size passed into the parameter.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Create an automobile class for a dealership

Create an Automobile class for a dealership. Include fields for an ID number, make, model, color, year, vin number, miles per gallon, and speed.

  Create a php page that shows at least three guitars

Create a PHP page that shows at least 3 guitars. Each guitar image should have its width set as well as it height to be all the same.

  What are the advantages if any in using udp rather than tcp

q1 what are the merits if any in using udp instead of tcp when transferring large objects across the network?q2 where

  Develop a system that scales the temperture

Develop a system that scales the temperture into 0 - 5V for input to an 8-bit ADC and a computer control system

  List the advantages of using a stream processor

List the advantages of using a stream processor as against using ASIC(s) and FPGA(s) for a given application.

  What are your thoughts on erd

What are your thoughts on ERD and how does this fit into your design process? Read and discuss various relationships associated with ERD.

  Develop procedure for implementing marker attribute function

Write a program to align text as specified by input values for the alignment parameters. Develop procedures for implementing the marker attribute functions.

  Write down a paper comprising of 500-1000 words

write a paper consisting of 500-1000 words double-spaced on the security effects of cryptographic tunneling based on an

  Program that uses class to create many fields

write a program that uses class to create many fields.

  What is a universal shift register

What is a universal shift register? Draw the schematic and block diagram of a 4-bit universal shift register.

  The combat identification server cids technology

the combat identification server cids technology demonstrator project tdp has been delivered on time with quality and

  Overloading the post-increment operator functions

Extend the definition of the class clockType by overloading the post-increment operator functions as a member of the class clockType.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd