代做Computing for Engineers – Assessed Lab 1调试R程序

Computing for Engineers – Assessed Lab 1 (2 hours)

11-12 November 2024 (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 maybe 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 12 November, 24:00 (midnight, end of Tuesday) UK Time

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 may only use Canvas, your own notes and your own programs as sources of help.

You should only use techniques which have been discussed during Lectures, Labs or Tutorials.

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

• Self-published books and course notes from other Universities or online courses

Exercise A:

A small delivery company requires a programme to track the distance, fuel usage and fuel efficiency of its fleet of 3 vehicles. They need to be able to enter distances travelled, whether the trips are on open road or in town driving and the fuel used in the trip in litres. As an output they need a table listing each vehicle, it’s total distance driving in town, it’s total distance on the open road, the total combined distance and then the fuel efficiency of each in miles per gallon (mpg).

You are given the following: 1 UK gallon = 4.54609 L

You can calculate fuel efficiency using the equation: fuel efficiency = distance in miles / fuel used in gallons.

You may not use an array to store the data. You do not need to produce a list of all the trips, only the summary for each vehicle.

The programme should continue collecting information until a vehicle number of -1 is entered. Data should only be collected for vehicles numbered 1, 2 or 3.

Your output should produce a summary table that looks like this: (assuming 9 trip ’s were entered).

Hint: use the following variable declarations:

float vehicle 1 distance_town=0.0, vehicle 1 distance_openroad=0.0; //distance info for vehicle 1 float vehicle 1 fuel_town=0.0, vehicle 1 fuel_openroad=0.0; //stores the fuel used for vehicle 1 float vehicle 2 distance_town=0.0, vehicle 2 distance_openroad=0.0; //distance info for vehicle 2 float vehicle 2 fuel_town=0.0, vehicle 2 fuel_openroad=0.0; //stores the fuel used for vehicle 1 float vehicle 3 distance_town=0.0, vehicle 3 distance_openroad=0.0; //distance info for vehicle 3 float vehicle 3 fuel_town=0.0, vehicle 3 fuel_openroad=0.0; //stores the fuel used for vehicle 3 int INP_vehicle=0; //gets the vehicle number being input

int INP_distance=0.0,INP_fuel=0,INP_triptype=0.0; //Gets input data for the current trip

Exercise B:

Create a C console programme that will allow users to generate mathematical quizzes testing multiplication and division. Each quiz run shall:

-     have between 2 and 10 questions (in increments of 2)

-     be based on a selection of a times table entered by the user (between the 1 and 12 times table)

-    test both multiplication and division (decided randomly for each question)

-     use random selections of numbers and ensure that any division question will work.

The programme must not use arrays and must not use functions and should provide helpful responses to the answers entered.

Once the questions for the particular times table are completed, the user should be asked if they want to do another times table.

The programme shall score the total accuracy of the responses at the end.

Hint: ensure to use #inlcude and to have the code: srand(time(NULL));

at the start of the main.c .

Hint: the programme will only need to use integer data types for all numbers.


热门主题

课程名

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
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图