Questions: 5 831

Answers by our Experts: 5 728

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

6 nails, 4 glass pieces and 2 brass handles are required for one window. There are 'N' no. Of windows in a room and 'M' such room in my house , Write a program to calculate total no. Of nails,glasspieces and brass handles will be required


Write a program that uses a while loop to calculate and print the multiples of 3 from 3 to 21. Your program should print each number on a separate line.

Please enter the next word: cat
#1: You entered cat
Please enter the next word: iguana
#2: You entered iguana
Please enter the next word: zebra
#3: You entered zebra
Please enter the next word: dolphin
#4: You entered dolphin
Please enter the next word: STOP
All done. 4 words entered.

Write a menu driven program to calculate.

Draw a flowchart for the color of light to be displayed at a traffic

signal, by reading as input the current time t, the signal

switching time s and transition time u . Assume that● The color at t = 0 is red

(remains red from t = 0 to s − 1 )● After s seconds (i.e. at t = s ) color changes to yellow

(remains yellow from t = s to s + u − 1 )● After another u seconds (i.e. at t = s + u ) the color

changes to green(remains green from t = s + u to 2s + u − 1 )● After another s seconds (i.e. at t = 2s + u ) the color changes to yellow(remains yellow from t = 2s + u to 2s + 2u − 1 )● After another u seconds (i.e. at t = 2s + 2u ) the colorchanges back to red , which is displayed for s seconds andthe cycle continues(remains red from t = 2s + 2u to 3s + 2u − 1 )Note that red and green are displayed for s seconds, and yellow for u seconds.Assume all input variables t,s, u are positive integers .Print the color to be displayed at the end.



Your output should be based on this template:

Let's play Silly Sentences!

[name] was planning a dream vacation to [place].
[name] was especially looking forward to trying the local
cuisine, including [adjective 1] [food 1] and [food 2].
 
[name] will have to practice the language [adverb] to
make it easier to [verb] with people.
 
[name] has a long list of sights to see, including the
[noun] museum and the [adjective 2] park.

Benchmarks

As you work on Assignment 1, you may find it helpful to track your progress against the benchmarks listed below. Follow the steps in order to ensure that you are writing clear, concise code that will meet all criteria. Remember that the formatting of your output must be exact - be careful about the spacing and line breaks.

  1. Using the print() function, output, "Let's play Silly Sentences!"  
  2. Using the input() function, prompt the user to, "Enter a name: ", then assign and store their response to a variable.
  3. Repeat benchmark 2 for the other 8 inputs that we need from the user: adjective, adjective, adverb, food, food, noun, place, and verb.
  4. Using a print() function, output, "[name] was planning a dream vacation to [place]." Replace [name] and [place] with the proper variables.
  5. Repeat step 4 with the other 6 lines of output.
  6. Double-check to make sure the output is formatted correctly - including spaces before and after variables and line spacing.
  7. Run and test your program with the values from the Sample Run.
  8. Debug and repeat step 7 as needed.

Overview Make sure you have completed all work for this assignment in Part 1 and Part 2 of this lesson. Follow the instructions below to review and submit your work to your instructor. Review Your Work Review the items in the grading rubric below to make sure your variables.py assignment is complete. Check Your Work: variables.py Points Possible Points Earned Make sure your variables.py program prints the following items, in this order: Hello world! 1.0 Spam .5 Eggs .5 SpamEggs .5 Spam Eggs 1.0 Spam Eggs 1.0 7 9 .5 20 1.0 13 .5 5 .5 13 1.0 10.8 .5 2.7 1.0 Total 9.5 Upload Instructions (continued) Copyright © Edgenuity Inc. Submit Your Work Complete these steps to compress (zip) your files and submit them to your instructor. 1. Click the Start menu, and then click Documents. 2. Right-click your variables.py file, then click Send to, and then click Compressed (zipped) folder. 3. A compressed (zipped) version of the variables.py file will appear in the same location as the original file. It will have the same name as the original, but with a zip folder icon. 4. Right-click the compressed variables.zip folder, then click Rename. Type variables_Assignment_ and your full name, and then press the ENTER key. TIP: For example, if your name is Kelly Marshall, the folder name will look like this: variables_Assignment_KellyMarshall.zip 5. If you do not type the name correctly on the first try, right-click the folder, click Rename, type the name, and then press the ENTER key. 6. Submit your compressed variables_Assignment folder to your instructor. TIP: Ask your instructor if you need help.


print((5<10)and(10<5))


Write a program that accepts a whole number as input, multiplies that number by 12, and then outputs the product.


Describe how you might deal with each error if you were writing a large production program. These descriptions should be general ideas in English, not actual Python code.

LATEST TUTORIALS
APPROVED BY CLIENTS