Create the Python code for a program that will simulate a basic car radio with 3 presets and 5 stations to tune in. You will create methods (class functions) for the following: __init__ AND __str__ seekNext longPressPreset1 through 3 shortPressPreset1 through 3 displayLCD You will create program functions for the following: main displayMenuGetOption Additional notes: You MUST use the program template. Your messages and prompts should look EXACTLY like those in the sample. Duplicating all blank lines and spacing. You can extrapolate WHAT MUST BE DONE for each method using the attached sample run. You may use either Public or Private instance variables, but be consistent in your use. Assume that the radio is in an “ON” state upon instantiation of your radio instance. The five available stations are: "STATIC", "97.2", "99.6", "101.7", "105.3", "108.5" with the radio’s initial state having all presets set to “STATIC” and the currently tuned in station as “STATIC”. Ignore the user selection if a user types in a value that does not exist in the menu. You do not need to document your variables for this program. Pay attention to spelling and all other things visual -- you will be graded on this. Staple multi-page outputs. Use appropriate white-space and line-continuations in your source code. Upload ONLY your Python program to Canvas in the designated area SAMPLE RUN: Currently Tuned: STATIC 1 = Display tuned in station 2 = Program preset station 1 3 = Program preset station 2 4 = Program preset station 3 5 = Seek next station 6 = Tune preset station 1 7 = Tune preset station 2 8 = Tune preset station 3 9 = Dump Programming 10 = Turn off radio Enter option: 9 Preset 1: STATIC Preset 2: STATIC Preset 3: STATIC Currently tuned: STATIC 1 = Display tuned in station 2 = Program preset station 1 3 = Program preset station 2 4 = Program preset station 3 5 = Seek next station 6 = Tune preset station 1 7 = Tune preset station 2 8 = Tune preset station 3 9 = Dump Programming 10 = Turn off radio Enter option: 5 Currently Tuned: 97.2 Preset 1: 99.6 Preset 2: STATIC Preset 3: 101.7 Currently tuned: 99.6 1 = Display tuned in station 2 = Program preset station 1 3 = Program preset station 2 4 = Program preset station 3 5 = Seek next station 6 = Tune preset station 1 7 = Tune preset station 2 8 = Tune preset station 3 9 = Dump Programming 10 = Turn off radio Enter option: 10 Run complete. Press the Enter key to exit. >>>


Are there any questions left?
New questions in the section Engineering
Sign up for the IQClass
Answers from experts with no ads!
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Made with love
This website uses cookies to make IQClass work for you. By using this site, you agree to our cookie policy

Pleased to see you again

IQClass unlocks the learning potential of every child
  • Master useful skills
  • Improve learning outcomes
  • Share your knowledge
Create an account
Sign in
Recover lost password
Or log in with

Create an account

IQClass unlocks the learning potential of every child
  • Master useful skills
  • Improve learning outcomes
  • Share your knowledge
Create an account
Sign Up
Or sign up with
By signing up, you agree to the Terms of use and Privacy policy.
Looking for an answer to a question you need help with?
you have баллов