首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
RBE104TC代做、C/C++编程设计代写
项目预算:
开发周期:
发布时间:
要求地区:
RBE104TC C/C++ Programming Language
Assignment 1
Contribution to the Overall Marks 30%
Issue Date
Submission Deadline 13th October 2024
Assignment Overview:
This assignment is geared towards assessing fundamental coding concepts in C/C++ and
initiating the process of code development using the software development process (SDP)
discussed in relevant lectures.
In composing the SDP report [in English], we request you to fulfil the following criteria:
• Design: Clearly explain your understanding of the given problem and specify a sequence of
steps necessary to accomplish the task (illustrated through flowcharts).
• Coding Progress: Attach 3-5 screenshots that show the code and running results as evidence,
particularly highlighting any errors or situations you believe are valuable to document. The
corresponding 3-5 versions of the C code should also be saved. All files must clearly
demonstrate the progression of your programming task from the initial stage to the final version.
• Analysis: Describe the files submitted in the Coding Progress section. Discuss the expected
results, any encountered or unexpected errors, and your solutions to those issues.
• Implementation: The C code must be submitted in a separate file. Please specify the file
name and provide instructions for user operation.
• Testing: Describe how you tested and validated your code for required functionalities, as
well as its robustness.
Exercise 1 (50%):
Write ONE C Program to accomplish the following task: Convert a double number to its
hexadecimal form.
Constraints:
1). The double number x is located between 0 and 1000 (0 <= x < =1000), e.g. 678.345;
2). The double number with the hexadecimal form contains 6 significant digits. e.g. The
hexadecimal form of “678.345” is “2A6.5851EB”;
3). The double number with the hexadecimal form is represented by a string (or a character
array), e.g. “2A6.5851EB”.
4). If illegal user input is detected, the software should be capable of informing the user and
enabling re-input to meet the software robustness requirement;
Advice:
It is strongly suggested that you should read the relevant lecture notes on the Learning Mall
before you write down your own codes. The note will help you design a correct program,
especially the design of loop structures and the usage of the arrays.
The possible steps are as follows:
1). Split a double number into the integer part and the fractional part;
2). Convert the integer part into its hexadecimal form;
3). Convert the fractional part into its hexadecimal form;
4). Combine both parts into a string;
Exercise 2 (50%):
Write a C program that can perform the following operations:
• Read the following from the keyboard and store them in appropriate variables:
• A full name (e.g. John Smith);
• A telephone number (e.g. 12345678900) assume all phone numbers are with 11 digits;
• A 2-digit decimal number as the Patient ID (e.g. 45);
• A temperature in degrees Celsius (e.g. 36.5°C), which should be within the range of 34.0°
C to 44.0°C.
• A height in centimeters (e.g. 177cm), which should be within the range of 140cm to
230cm, with an accuracy of 1cm.
• A weight in kilograms (e.g. 85.0kg), which should be within the range of 40.0kg to
140.0kg.
• Print the patient's ID on the screen in decimal, octal, and hexadecimal formats (e.g., 45,
55, 2D);
• Convert the temperature from degrees Celsius to degrees Fahrenheit and degrees Kelvin,
store the values in appropriate variables rounded to the nearest whole number, and print
them on the screen (e.g., 10°C, 50°F, 283K);
• Determine if the patient is sick based on their temperature (temperatures higher than
37.2°C or lower than 36.0°C will be considered sick);
• Calculate the patient's BMI (Body Mass Index) and determine if they are severely
overweight, overweight, normal, underweight, or severely underweight;
• Print a conclusion, for example: "The patient's name is John Smith, his phone number is 12345678900, his patient ID is 45. His current temperature is 36.5°C, not sick. His height
is 177mm, weight is 85.0kg. He is overweight."
If illegal user input is detected, the software should be capable of informing the user and
enabling re-input to meet the software robustness requirement;
Hint:
The BMI formula is:
The BMI Categorization is:
Less than 16 Severely Underweight
Between 16 and 18.5 Underweight
Between 18.5 and 25 Normal
Between 25 and 30 Overweight
Large than 30 Severely Overweight
What should be submitted?
• You should submit the followings two:
1. A concise report (with text spanning a few pages) accompanied by C source codes. This
report should delve into the specifics for each question:
- Detail SDP steps 1 to 3 within the report (Design + Coding Progress + Analysis),
accounting for 30% of the evaluation.
- Encompass SDP step 4 (Implementation + Robustness) with your source code. Your code
should correspond with the final screenshot provided in the Coding Progress section and
include appropriate comments. Implementation contributes 35% while Robustness adds
5%.
- Elaborate on SDP step 5 (Testing), elucidating how you validated the correctness,
robustness, and thoroughness of your codes. Employ screenshots and ample explanations
as verification, encompassing 20% of the evaluation.
- The overall quality of the report accounts for 10% of the evaluation.
2. All C/C++ source code files, including files from different stages corresponding to the
screenshots.
• For a comprehensive grading scheme, please consult the Marking Guidelines available on
the Learning Mall system.
• The report must be saved in PDF format. Place the report in the same folder with source code
files and compress the folder into a single zipped file. Your final submission should include:
- Zipped file containing:
- The report
- The source codes
• The naming convention for the submitted Report and source code files should adhere to the
subsequent format:
- StudentID_LastName_FirstName_AssignmentID.pdf
- StudentID_AssignmentNumber_ExerciseID_SSScreenShotNumber.c/cpp
- StudentID_LastName_FirstName_AssignmentID.zip
As an illustration:
The report and C source files would be placed in the same folder as follows:
The folder would be compressed to the ultimate zipped submission file, and it would be named: • 1234567_Albert_Einstein_1.zip
How the work should be submitted?
Submission should take place electronically through the Learning Mall system, enabling us to
execute your software during the assessment. Additionally, feedback will be provided via the
same Learning Mall system.
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代做 program、代写 c++设计程...
2024-12-23
comp2012j 代写、代做 java 设...
2024-12-23
代做 data 编程、代写 python/...
2024-12-23
代做en.553.413-613 applied s...
2024-12-23
代做steady-state analvsis代做...
2024-12-23
代写photo essay of a deciduo...
2024-12-23
代写gpa analyzer调试c/c++语言
2024-12-23
代做comp 330 (fall 2024): as...
2024-12-23
代写pstat 160a fall 2024 - a...
2024-12-23
代做pstat 160a: stochastic p...
2024-12-23
代做7ssgn110 environmental d...
2024-12-23
代做compsci 4039 programming...
2024-12-23
代做lab exercise 8: dictiona...
2024-12-23
热点标签
mktg2509
csci 2600
38170
lng302
csse3010
phas3226
77938
arch1162
engn4536/engn6536
acx5903
comp151101
phl245
cse12
comp9312
stat3016/6016
phas0038
comp2140
6qqmb312
xjco3011
rest0005
ematm0051
5qqmn219
lubs5062m
eee8155
cege0100
eap033
artd1109
mat246
etc3430
ecmm462
mis102
inft6800
ddes9903
comp6521
comp9517
comp3331/9331
comp4337
comp6008
comp9414
bu.231.790.81
man00150m
csb352h
math1041
eengm4100
isys1002
08
6057cem
mktg3504
mthm036
mtrx1701
mth3241
eeee3086
cmp-7038b
cmp-7000a
ints4010
econ2151
infs5710
fins5516
fin3309
fins5510
gsoe9340
math2007
math2036
soee5010
mark3088
infs3605
elec9714
comp2271
ma214
comp2211
infs3604
600426
sit254
acct3091
bbt405
msin0116
com107/com113
mark5826
sit120
comp9021
eco2101
eeen40700
cs253
ece3114
ecmm447
chns3000
math377
itd102
comp9444
comp(2041|9044)
econ0060
econ7230
mgt001371
ecs-323
cs6250
mgdi60012
mdia2012
comm221001
comm5000
ma1008
engl642
econ241
com333
math367
mis201
nbs-7041x
meek16104
econ2003
comm1190
mbas902
comp-1027
dpst1091
comp7315
eppd1033
m06
ee3025
msci231
bb113/bbs1063
fc709
comp3425
comp9417
econ42915
cb9101
math1102e
chme0017
fc307
mkt60104
5522usst
litr1-uc6201.200
ee1102
cosc2803
math39512
omp9727
int2067/int5051
bsb151
mgt253
fc021
babs2202
mis2002s
phya21
18-213
cege0012
mdia1002
math38032
mech5125
07
cisc102
mgx3110
cs240
11175
fin3020s
eco3420
ictten622
comp9727
cpt111
de114102d
mgm320h5s
bafi1019
math21112
efim20036
mn-3503
fins5568
110.807
bcpm000028
info6030
bma0092
bcpm0054
math20212
ce335
cs365
cenv6141
ftec5580
math2010
ec3450
comm1170
ecmt1010
csci-ua.0480-003
econ12-200
ib3960
ectb60h3f
cs247—assignment
tk3163
ics3u
ib3j80
comp20008
comp9334
eppd1063
acct2343
cct109
isys1055/3412
math350-real
math2014
eec180
stat141b
econ2101
msinm014/msing014/msing014b
fit2004
comp643
bu1002
cm2030
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!