首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
代写data程序、代做Python/Java编程设计
项目预算:
开发周期:
发布时间:
要求地区:
School of Engineering
Computing for Engineers – Assessed Lab 1 (approx. 2 hour exercise)
06-07 November 2023 (Week 7 Semester 1)
This is an assessed lab exercise.
Statement of good academic conduct
By submitting this assignment, I understand that I am agreeing to the following statement of
good academic conduct.
I confirm that this assignment is my own work and I have not worked with others in
answering the exercises in this assignment.
I confirm that I have not asked, or paid, others to undertake any part of this work for me.
I confirm that I have read and understood the University regulations on plagiarism
https://intranet.birmingham.ac.uk/as/registry/policy/conduct/plagiarism/index.aspx
I understand that if concerns are raised about my work I may need to participate in a viva
(oral examination) of my work. I also understand that my progress and/or graduation may be
delayed whilst these concerns are investigated under the Code of Practice on Academic
Integrity or Code of Practice on Plagiarism.
Your C Source code for Exercise A and Exercise B must be uploaded to Canvas by
Tuesday 07 November 2023, 11:59 (midday)
Your code must be uploaded as a .c file (C Source file).
In most cases you will need to upload the two files called “main.c” (one for each exercise).
Do not upload .docx files, .pdf or any other format.
Do not email the code to the course lecturer or to any other member of staff or PGTA.
Only Canvas submissions will be marked.
If you have any problems uploading your code, consult the Module Lecturer well before the
above deadline. Once the deadline has expired, your mark for the Assessment will be
deducted 5 marks per day or part of a day.
The Module Lecturer cannot extend any deadlines for this assignment for any reason. If you
wish to be considered for an extension, you will need to apply for Extenuating Circumstances
via Engineering Welfare.
Do not discuss the exercise with any other person, inside or outside the University. Do not get
help from any other person. The submitted assessment must be your own work.
You should only use Canvas, your own notes and your own programs as sources of help.
Credit will only be given for techniques which have been discussed during Lectures, Labs or
Tutorials. Credit will not be given for techniques learnt or researched elsewhere.
Acceptable sources of help:
• Your own notes
• The Study Guide on Canvas for this module
• The Lecture / Lab and Tutorial videos for this module on Canvas / Panopto
• Any programs which you have written yourself during the labs this Semester
• You may use published Books, as long as you provide a full reference (Name and Author
of Book, Publisher Name, Year of Publication).
Sources which are not acceptable:
• Help from any other person, inside or outside the University
• Any website, forum, social media, video, audio, email or messaging, or any other
information source, other than the Canvas page for this module
• Direct or indirect usage of any chatbot or AI engine
• Self-published books and course notes from other Universities or online courses
Assessed lab exercises
A. A resistor network has the following layout:
RA
RB
RP
The equations for the above resistances are given by:
A number of identical resistor modules each of resistance RP can be placed together in series.
The resistance RQ of the whole network is equal to the sum of N resistor modules each of
which has resistance RP.
Write a program to enter R1, R2, R3, R4, R5, and the number of resistor modules N – these
should be entered in this order. Then work out and display RP and RQ. You may use your
own formula to work out RQ or you can use a loop, whichever you prefer.
An error message should be displayed if R1, R2 or N is zero or negative, the resistance should
not be displayed, and the program should exit.
Marks will be deducted:
• If you introduce any other user interface options not specified in this lab sheet
• If R1, R2, R3, R4, R5 and N are not entered in your program in the same order that they
are specified on this lab sheet.
• The program should not ask for another input if an illegal value of N is entered. If
such a value is entered then the program should display the error message and exit.
`
B. A digital clock is constructed from four seven-segment LED displays:
Each numbered segment is part of an electronic circuit, where if the voltage was set to high
then that segment will light up. For example, to light up “1111”, we would need to activate
the following segments:
Write a program which does the following:
• Reads in a four digit number, which is the 24-hour clock time
• Prints an error message if the time is illegal, and no segments should be activated
• Extracts each digit, and outputs a list of activated segments for each digit (shown here
for the right hand column of the clock):
Digit Segments to light up
1 22, 25
2 21, 22, 23, 26, 27
3 21, 22, 23, 25, 27
Your program should only output the segment values if the digits are “1”, “2”, or “3”. Any
other digits should be ignored.
Your program should:
• Loop repeatedly until the user enters “999”.
• Use a for loop to iterate across the four columns (1000, 100, 10, 1)
• For each column, the correct digit (1, 2, 3) should be displayed, and for each digit the
correct segments should be printed on the screen.
• Your program should make use of the fact that the segment numbers increase by 10
for each digit, going from right to left (see diagram of clock on previous page)
• A working program should follow the user interface in this specification exactly.
Otherwise marks will be deducted.
Hint
To extract a digit from a 24 hour clock time, you may find the following formula useful:
𝑑𝑖𝑔𝑖𝑡 =
𝑐 mod (10ℎ)
ℎ
c is the 24 hour clock time, “mod” is the modulus operator, h represents the digit position you
want to extract (1000, 100, 10 or 1).
Example output:
Enter 24-hour clock time:2487
Error - illegal time
Enter 24-hour clock time:0968
Error - illegal time
Enter 24-hour clock time:1122
The digits you need to connect are:
Digit 1 needs 52 55
Digit 1 needs 42 45
Digit 2 needs 31 32 33 36 37
Digit 2 needs 21 22 23 26 27
Enter 24-hour clock time:0132
The digits you need to connect are:
Digit 0 ignored
Digit 1 needs 42 45
Digit 3 needs 31 32 33 35 36
Digit 2 needs 21 22 23 26 27
Enter 24-hour clock time:2145
The digits you need to connect are:
Digit 2 needs 51 52 53 56 57
Digit 1 needs 42 45
Digit 4 ignored
Digit 5 ignored
Enter 24-hour clock time:999
End of the program
END OF THE ASSESSMENT
软件开发、广告设计客服
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
软件定制开发网!