文件名称:Assignment_1

  • 所属分类:
  • 其他小程序
  • 资源属性:
  • [C/C++] [源码]
  • 上传时间:
  • 2012-11-26
  • 文件大小:
  • 243kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • 章**
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

Exercise 1: cryptarithm_array.c (2.5 marks).

A cryptarithm is a puzzle where digits have to be assigned to the letters of some words, di erent

letters being assigned di erent digits, and no word starting with 0, such that a number of conditions

are satis ed, that are naturally related to the meanings of the words when the words do have a

meaning. The program sample_cryptarithm_array.c that comes with this assignment provides

you with an example of a cryptarithm, solved using an array-based technique, where the task is to

assign digits to the letters in three, four and eight, in such a way that:

 none of the leading digits is 0

 three is prime

 four is a perfect square

 eight is a perfect cube

It has a unique solution, namely, 42611 for three, 7056 for four, and 13824 for eight (so t is assigned

the digit 4, h is assigned the digit 2, etc.-Aims: The purpose of the assignment is to

 let you design solutions to simple problems

 let you implement these solutions in the form of short C programs

 let you study existing code and take advantage of it to design solutions to your problems and

write your own code

 practice the use of arithmetic computations, tests and repetitions

 make use of arrays

 make use of the internal representation of data

 compare alternative approaches to a given problem.
(系统自动生成,下载前可以参看下载内容)

下载文件列表

Assignment_1

............\ass1.files

............\..........\3285287.outputs.txt

............\..........\3285287.results.txt

............\..........\commands_and_expected_outputs.txt

............\..........\cryptarithm_array.c

............\..........\cryptarithm_bits.c

............\..........\division.c

............\..........\multiplication.c

............\assignment1.pdf

............\assignment_checklist.pdf

............\myassigment

............\...........\cryptarithm_array.c

............\...........\cryptarithm_array.c~

............\...........\cryptarithm_array.exe

............\...........\cryptarithm_array.o

............\...........\cryptarithm_bits (2).c

............\...........\cryptarithm_bits.c

............\...........\cryptarithm_bits.c~

............\...........\cryptarithm_bits.c~RF5260f5.TMP

............\...........\cryptarithm_bits.exe

............\...........\cryptarithm_bits.o

............\...........\cryptarithm_bits2.c

............\...........\cryptarithm_bits2.exe

............\...........\cryptarithm_bits2.o

............\...........\division.c

............\...........\division.c~

............\...........\division.exe

............\...........\division.o

............\...........\MFCB14C.tmp

............\...........\multiplication.c

............\...........\multiplication.c~

............\...........\multiplication.exe

............\...........\multiplication.o

............\myassigment.rar

............\sample_cryptarithm_array.c

............\sample_cryptarithm_bits.c

............\sample_multiplication.c

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org