TPRG2131 - Programming For Technology - Computer Science Assignment Help

Download Solution Order New Solution
Assignment Task

 

You are required to develop two programs and commit your completed programs to your test2 Mercurial repository on the Kallithea server hg.set.durhamcollege.org.

There are three categories: state machines, threading, and networking with sockets and JSON formatting. Choose any two categories, and complete one challenge from each category that you choose. In other words, completing only two challenges counts as the complete test

 

1) Low power: Add a check in IdleState.update() that if the 'L' key is entered, the microwave oven will cook at low power. Add a LowPowerState to cycle the on-off at 50% duty cycle (off half of the cooking time). The magnetron that generates microwave radiation in the oven's cooking chamber is strictly an on-off device and cannot be "dialed down". To achieve low power, the oven controller cycles the magnetron off-on during the cooking time. The duty cycle determines the reduction in heat energy delivered. You can simulate the on-off 50% duty cycle with dots and dashes on the output. Instead of printing a line of “…..”, the output would look like “.-.-.-.”.

 

2) Restart: Add a check in the CookingState.update() that if the 'R' key is pressed, the controller "restarts" the cooking at the full original machine.cook_time.

 

3) Timer only: Add a check in IdleState.update() that if the 'T' key is entered instead of 'S' for Start, the microwave oven will work as a timer, without turning on the magnetron. The timing begins immediately after the 'T' is entered.

 

4) Simmer: Add a check in the IdleState that if 'P' is entered, a second cooking time becomes active. The user would enter the first cooking time (e.g. to quickly heat the soup), then enter 'P', then the second cooking time at lower power (e.g. to simmer until done). Finally the user would enter 'S' to start. Add a new cooking state SimmeringState for the second time. For this challenge, you do not need to power cycle the magnetron as in challenge 1 (above) – just print something like "Low power" for the second cooking time interval.

 

 

This (TPRG2131) Computer Science Assignment has been solved by our Computer Science experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.