加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代寫IRP 1 Coursework 01編程、代做Python程序

時間:2024-01-24  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯




Description
This is an individual coursework worth 10% of the entire grade.  Each student will fork the project from the gitlab and complete the code themselves by the end of Friday 3rd November.
https://gitlab-student.macs.hw.ac.uk/ouc_3rd_year_assignments/assignements/coursework_01

This is a simple coursework to demonstrate using functions, lists, loops and variables.
This project simulates a simplified washing machine.
You need to create a menu system to control the options for a washing machine, then simulate the wash cycle by displaying appropriate messages.
Your program will use an infinite loop to execute the code, whether the washing cycle completes successfully or is interrupted by the user, your program must always return to the main menu.
Your program must use functions to display and manage the menu options.
Your program must use functions to retrieve user input, you should have different input functions for different types of input (int, float, string etc.).
Your input functions must be stored in the separate file called user_input.py and imported into your washing machine main file.
You may use extra python files to organize your code.
Your code should have sensible names for functions and variables, you should also add comments where appropriate.
All files need to be uploaded to gitlab before the deadline.

For simplicity it can be assumed that the laundry detergent has been added to the water tank already, and that the first batch of water will be soapy.  The following washes will be normal water.
The water in the water tank starts at a temperature of 20 degrees.  Your program will need to sleep for a period everytime it executes a loop, you should look use the sleep function of the time library.
Running the program
The program will display the main menu, which will allow the user to select the type of wash, wash options and select when to run.  When the user selects the “run cycle” option, the program will provide constant status updates about what it is doing and how much progress has been made.
If the user presses any key during the run cycle process, the cycle will stop running and display a message saying “Wash cancelled” before returning to the main menu.
When the machine has completed the wash cycle it will display a “Wash completed” message before returning to the main menu.
Your program should continue looping until it is forcefully closed.

Main menu
The main menu system will list the various types of wash the washing machine can do.  After a type has been selected the menu will allow the user to customize the current wash by altering any of the options.
Invalid options should be identified and an error message displayed, and the user should try again.
Menu level 1
This will list the various types of wash available.  You can choose to use numbers or letters to select the wash type.  When one has been chosen, Menu level 2 should be displayed.
Menu level 2
This will list the various options for the wash cycle, as well as their current value.   You can choose to use numbers or letters to select the option type.  When one has been chosen, Menu level 3 should be displayed.  There are 2 different actions: “back” and “run cycle”. “Back” returns to Menu level 1, “run cycle” starts the wash cycle using the current options.
Menu level 3
This lists the available values for the selected option, it also has a “back” and “save” command.  Both actions return to Menu level 3, but the “save” command will update the options with the new value.

Washing machine functions
Your program should use the following Python functions with appropriate parameter types to simulate the washing machine.  You may also add your own functions.
heat_water(temperature)
This function will increase the temperature of the water in the water tank, it should loop until the water reaches the desired temperature.  Each iteration will increase the temperature by 1 degree, print a message of the current water temperature, and sleep for 100ms (0.1s).
add_water(amount)
This function will transfer the heated water into the washing machine drum, the amount says how much to transfer in total.  It should use a loop until the water has been added.  The maximum is 10 litres of water, the function should use a loop to add 0.5 litres and sleep for 100ms each iteration.
open_drain()
This function opens the drain of the washing machine so that water can leave the machine drum. It prints a message saying that the drain is open.
close_drain()
This function closes the drain of the washing machine, so that water cannot leave the drum. It prints a message saying that the drain is closed.
spin(speed, duration)
This function loops, saying that the drum is spinning at the specified speed.  The duration is in minutes, but for our simulation we are using 0.1s for each minute.  So a loop iteration will display the speed, current spin count and remaining spin counts. 
alternating_spin(duration, repeat)
The drum will slowly spin clockwise for (duration) times, then stop and spin counterclockwise for (duration) times.  This will be repeated (repeat) times.  The function will loop (repeat) times, it will have at least one inner loop, which will print a status message and sleep for 0.1s per spin.  
For example:
alternating_spin(5, 3) will execute 3 outer loops, each iteration will spin clockwise 5 times, then spin counterclockwise 5 times, each spin will display a message and sleep for 0.1s, so it will take around 3 seconds to finish the whole function.

Options
The options which can be controlled by the user are:
water_temp 
Available options are: 20, 30, 40, 50, 60
water_amount 
Available options are: 2.5, 5.0, 7.5, 10.0
rotation_speed
Available options are: 400, 500, 600, 700, 800
spin_duration 
Available options are: 5, 7, 10, 15
alternating_duration 
Available options are: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
alternating_spin_repeat 
Available options are: 5, 6, 8, 10, 15, 20

Wash types
Most wash types will execute the same wash cycle, it is just that different types of wash will execute it a different number of times.
Wash cycle
Close drain, Heat water, Add water, Alternating spin, Spin, open drain, spin
Quick wash
2 cycles
Standard wash
3 cycles
Thorough wash 
4 cycles
Rinse and spin
Close drain, Heat water, Add water, Spin, open drain, spin
Spin
open drain, spin

Default option values
water_temp = 20
water_amount = 10.0
rotation_speed = 600
spin_duration = 15
alternating_duration = 3
alternating_spin_repeat = 5 

Grading scheme (20 points)
2 points – suitable variable and function names
2 points – input methods for int, float, boolean and string (with exception checking) in the user_input file.
2 points – menu system works (including spelling, various sub options and input validation)
6 points – each wash type works successfully.
6 points – can change each wash option within the available values, changed options effect the wash cycle.
2 points – useful comments and clear, readable code.
請加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

掃一掃在手機打開當前頁
  • 上一篇:CSC420編程代寫、c/c++,Java程序代做
  • 下一篇:一克拉培育鉆石什么價,培育鉆石售價一覽表
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    91天天综合| 欧美日韩三级| 六月丁香综合在线视频| 99成人免费视频| 日本午夜精品| 91久久久久久白丝白浆欲热蜜臀| 在线精品小视频| 日韩二区在线观看| 欧美一区二区三区久久精品茉莉花 | 亚洲视频在线免费| 色综合咪咪久久网| 国产伊人精品| 激情视频亚洲| 亚洲一区二区三区无吗| 日韩国产一区| 最新国产乱人伦偷精品免费网站| 日本亚州欧洲精品不卡| 日本午夜精品一区二区三区电影| 欧美国产一级| 午夜日韩激情| 果冻天美麻豆一区二区国产| 欧美激情日韩| 粉嫩av一区二区三区四区五区| 国产一区二区高清| 久久久久中文| 日本一不卡视频| 青青国产91久久久久久 | 欧美gv在线| 国产亚洲福利| 久久要要av| 成人精品毛片| 欧美精品第一区| 欧美激情一级片一区二区| 亚洲精品乱码日韩| 久久爱91午夜羞羞| 免费成人在线观看视频| 女人香蕉久久**毛片精品| 玖玖玖免费嫩草在线影院一区| 欧美视频三区| 欧美激情在线| 欧美日韩亚洲一区三区| 日日嗨av一区二区三区四区| 人人精品久久| 日韩欧美视频在线播放| 日韩一区精品视频| 国产精品女主播一区二区三区| 亚洲国产老妈| 欧美1区视频| 激情综合自拍| 自拍欧美一区| 激情国产一区| 91精品福利| 亚洲一级网站| 激情综合网站| 在线一区免费| 亚洲精品1区| 亚洲一区二区三区高清不卡| 999亚洲国产精| 亚洲主播在线| 中文久久精品| 美女精品网站| 视频一区二区三区中文字幕| 老司机精品导航| 爽成人777777婷婷| 九色porny自拍视频在线观看| 亚洲天堂导航| 日本肉肉一区| 99精品热6080yy久久| 一区二区久久| 亚洲精一区二区三区| 日本视频免费一区| 在线精品观看| 亚洲国产国产| 国产精品99久久免费观看| 久久人人精品| 午夜影院欧美| 蜜臀久久99精品久久久久久9 | sdde在线播放一区二区| 国产一区日韩欧美| 99在线观看免费视频精品观看| 99热这里只有成人精品国产| 日本精品黄色| 精品日本视频| 日本欧美一区二区| 五月天亚洲色图| 精品中国亚洲| 欧洲杯什么时候开赛| 久久福利毛片| 成人日韩在线观看| 国产精品a久久久久| 日韩成人一级| 欧美色就是色| 午夜一区不卡| 日本欧美一区| 99精品美女视频在线观看热舞| 日韩vs国产vs欧美| 成人精品亚洲| 蜜桃av综合| 欧美v亚洲v综合v国产v仙踪林| 91精品国产一区二区在线观看 | 日韩精品欧美大片| 99久久亚洲精品| 久久亚洲图片| 久久精品99国产国产精| 亚洲综合图色| 欧美伦理影院| 男人的天堂免费在线视频| 亚洲色图二区| 欧美a一欧美| 蜜桃视频在线观看一区| 欧美一级网站| 国产精品毛片久久久| 夜夜嗨av一区二区三区网站四季av| 蜜臀国产一区| 中文在线日韩| 久久免费黄色| 色偷偷色偷偷色偷偷在线视频| 日韩国产欧美三级| 中文字幕日韩高清在线| 天天射—综合中文网| 日韩大片免费观看| 成人在线日韩| 欧美日韩在线网站| 午夜精品久久久久久久久久蜜桃| 日本不卡一区二区三区| 激情亚洲另类图片区小说区| 蜜桃视频一区二区三区| 亚洲毛片视频| 极品中文字幕一区| 91在线亚洲| 国产日韩一区二区三免费高清| 国产一区91| 亚洲毛片网站| 欧美 日韩 国产 一区| 日韩深夜视频| 日韩经典中文字幕一区| 亚洲综合丁香| 中文字幕免费精品| 亚洲国产一区二区三区在线播放 | 日韩午夜电影| 麻豆久久久久| 欧美日韩导航| a一区二区三区| 日本午夜精品| 色婷婷热久久| 日韩成人一级大片| 丝袜美腿成人在线| 国产亚洲字幕| 欧美bbbbb| 久久av免费看| 色喇叭免费久久综合网| 欧美猛男同性videos| 老司机午夜免费精品视频| 国产精品1区在线| 另类av一区二区| 欧美美乳视频| 欧美wwwww| 精品国产亚洲日本| 日韩欧美午夜| 国内露脸中年夫妇交换精品| 日韩欧美1区| 久久精品一区二区不卡| 欧美成人毛片| 天天射成人网| 97久久中文字幕| 日韩中文字幕区一区有砖一区| 国产欧美日韩精品高清二区综合区| 性欧美暴力猛交另类hd| 国产精品亚洲四区在线观看| 免费在线观看成人| 欧美2区3区4区| 国产麻豆久久| 亚洲午夜久久久久久尤物| 欧美日本国产| 蜜臀91精品一区二区三区| 日韩区欧美区| 欧美一区二区三区久久精品| 91精品1区| 日韩精品导航| 国产福利一区二区三区在线播放| 久久精品九九| 综合久久亚洲| 涩涩视频在线播放| 久久免费黄色| 99久久这里有精品| 色狮一区二区三区四区视频| 成人中文视频| 老司机午夜精品| 蜜桃久久av| 99re8这里有精品热视频8在线| 国产伦子伦对白在线播放观看| 操欧美女人视频| 日本午夜精品视频在线观看| 免费一区二区视频| 福利一区视频| 91嫩草精品| 日韩精品色哟哟| 99re国产精品| 精品国产一区二区三区香蕉沈先生| 久久精品人人|