91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

代寫(xiě)IRP 1 Coursework 01編程、代做Python程序

時(shí)間:2024-01-24  來(lái)源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)




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.
請(qǐng)加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

掃一掃在手機(jī)打開(kāi)當(dāng)前頁(yè)
  • 上一篇:CSC420編程代寫(xiě)、c/c++,Java程序代做
  • 下一篇:一克拉培育鉆石什么價(jià),培育鉆石售價(jià)一覽表
  • 無(wú)相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷(xiāo)助手小象助手多多出評(píng)軟件
    2025年10月份更新拼多多改銷(xiāo)助手小象助手多
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)/客戶(hù)要求/設(shè)計(jì)優(yōu)化
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    出評(píng) 開(kāi)團(tuán)工具
    出評(píng) 開(kāi)團(tuán)工具
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
    海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
    合肥機(jī)場(chǎng)巴士4號(hào)線(xiàn)
    合肥機(jī)場(chǎng)巴士4號(hào)線(xiàn)
    合肥機(jī)場(chǎng)巴士3號(hào)線(xiàn)
    合肥機(jī)場(chǎng)巴士3號(hào)線(xiàn)
  • 短信驗(yàn)證碼 目錄網(wǎng) 排行網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045

    91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区
    日韩欧美国产麻豆| 亚洲精品ww久久久久久p站| 巨乳诱惑日韩免费av| 99精品国产在热久久| 亚洲精品自在在线观看| 影音先锋中文字幕一区二区| 狠狠久久婷婷| aa级大片欧美三级| 香蕉久久夜色| 欧美最猛性xxxxx直播| 欧日韩精品视频| 91精品国产综合久久久久| 欧美猛男gaygay网站| 欧美一区二区三区不卡| 欧美一区二区三区婷婷月色 | 欧美一区二区三区系列电影| 91精品国产综合久久精品性色| 欧美精品tushy高清| 精品久久国产老人久久综合| 久久久久高清精品| 最新国产精品久久精品| 亚洲午夜电影网| 美国欧美日韩国产在线播放| 国产一区欧美二区| 99视频一区二区三区| 欧美日韩一区二区三区在线视频| 亚洲激情女人| 玖玖在线精品| 精品国产乱码久久久久久夜甘婷婷| 久久久久久久久久美女| 亚洲免费毛片网站| 美女脱光内衣内裤视频久久网站| 国产电影精品久久禁18| 国产一区激情| 欧美一级二区| 欧美电影免费观看高清完整版在 | 亚洲超碰精品一区二区| 精品午夜一区二区三区在线观看| 大白屁股一区二区视频| 亚洲高清免费| 欧美中文字幕一区二区三区亚洲| 337p粉嫩大胆色噜噜噜噜亚洲| 一区视频在线播放| 久久91精品久久久久久秒播| 91在线播放网址| 久久综合久久综合这里只有精品| 日韩一卡二卡三卡四卡| 亚洲三级在线观看| 国产成人欧美日韩在线电影| 亚洲大胆女人| 91精品国产综合久久久久久久久久| 中文成人综合网| 精品综合免费视频观看| 国产综合自拍| 91精品在线免费| 一区二区欧美视频| 99久久综合99久久综合网站| 老**午夜毛片一区二区三区| 国产欧美精品区一区二区三区| 免费在线看成人av| 极品日韩av| 欧美xxx久久| 日本三级韩国三级欧美三级| 国产一区二区三区四区hd| 欧美一区二区三区在线视频| 亚洲国产精品天堂| 欧美精品三级| 6080yy午夜一二三区久久| 亚洲成a人片在线不卡一二三区 | 欧美视频一区二区三区四区 | 免费成人在线观看| 国内精品嫩模av私拍在线观看| 911国产精品| 午夜影视日本亚洲欧洲精品| 欧美一区二区三区在线播放| 欧美日韩高清在线播放| 亚洲国产va精品久久久不卡综合| 国产在线精品二区| 日韩免费视频线观看| 久久9热精品视频| 久久精品一二三区| 亚洲一线二线三线久久久| 亚洲欧美综合| 久久蜜桃av一区精品变态类天堂| 国产精选一区二区三区| 欧美综合久久久| 日本在线不卡一区| 亚洲欧美日韩精品久久久| 亚洲老司机在线| 亚洲人久久久| 亚洲视频每日更新| 一区久久精品| 最新久久zyz资源站| 欧美日韩国产高清视频| 欧美激情一区二区在线| 欧美一区视频| 中文字幕不卡一区| 欧美日韩一区自拍| 国产欧美日韩精品一区| 欧美呦呦网站| 国产精品免费看片| 国产一区二区无遮挡| 中文一区在线播放| 激情一区二区| 亚洲男人电影天堂| 在线亚洲观看| 亚洲地区一二三色| 另类专区欧美蜜桃臀第一页| 久久中文在线| 麻豆一区二区三| 91麻豆精品国产| 国产**成人网毛片九色| 26uuu另类欧美| 色综合一个色综合| 亚洲免费在线视频一区 二区| 国产在线成人| 亚洲aaa精品| 欧美日韩国产123区| 白白色亚洲国产精品| 亚洲国产成人一区二区三区| 亚洲国产一区二区三区高清| 亚洲一级二级在线| 欧美精品在线观看播放| 高清在线成人网| 欧美国产日产图区| 免费欧美日韩| 国产一区高清在线| 国产亲近乱来精品视频| 亚洲激情一区二区三区| 秋霞电影一区二区| 精品国产区一区| 国产一在线精品一区在线观看| 亚洲小说欧美激情另类| 欧美亚洲综合久久| 91免费视频观看| 亚洲国产精品一区二区www| 欧美日本国产一区| 欧美日韩影院| 毛片不卡一区二区| 久久久久久亚洲综合影院红桃| 亚洲色诱最新| 国产经典欧美精品| 一区二区三区四区不卡视频 | 成人欧美一区二区三区视频网页| 亚洲免费影视| 国产不卡视频一区| 中文字幕亚洲在| 欧美色偷偷大香| 国产精品多人| 捆绑紧缚一区二区三区视频| 国产欧美日产一区| 欧洲日韩一区二区三区| 午夜久久一区| 久久av中文字幕片| 自拍偷拍亚洲欧美日韩| 91精品久久久久久蜜臀| 在线视频日韩| yourporn久久国产精品| 天天爽夜夜爽夜夜爽精品视频| 久久无码av三级| 欧美网站一区二区| 亚洲福利av| 不卡影院免费观看| 日韩成人伦理电影在线观看| 中文久久乱码一区二区| 制服丝袜日韩国产| 噜噜噜躁狠狠躁狠狠精品视频 | 94色蜜桃网一区二区三区| 天天综合色天天综合色h| 亚洲国产高清aⅴ视频| 91精品国产91久久综合桃花| 久久久精品国产一区二区三区| 欧美xxx在线观看| 国产电影一区在线| 免费人成精品欧美精品| 亚洲黄色小视频| 国产日韩欧美不卡| 中文字幕亚洲欧美在线不卡| 日韩一区二区三区电影在线观看| 久久99这里只有精品| 亚洲成人黄色影院| 免费看日韩a级影片| 国产风韵犹存在线视精品| 狠狠色综合一区二区| 久热国产精品| 欧美zozo另类异族| 亚洲丝袜自拍清纯另类| 激情综合网最新| 伊人精品在线| 日韩视频永久免费| 欧美96一区二区免费视频| 捆绑调教一区二区三区| 在线观看日韩一区| 国产自产在线视频一区| 狠狠v欧美v日韩v亚洲ⅴ| 日韩精品国产欧美| 五月婷婷欧美视频| 亚洲不卡一区二区三区| 亚洲一区免费视频| 亚洲黄色尤物视频|