Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write scripts that accomplish the following tasks. Each script should be individually written and not combined with other questions. MAKE SURE YOUR SPACING IS CORRECT

Write scripts that accomplish the following tasks. Each script should be individually written and not combined with other questions. MAKE SURE YOUR SPACING IS CORRECT IF YOU COPY IT FROM THE COMPLIER. Uses Python.

  1. Write a script that will ask the user to input a number between 1 and 10. The script will return true if the number input is greater than or equal to 5 and false if it is smaller.
  2. Write a script that will ask the user to input their name. The script will then check if their name is "Bob". If the name entered is "Bob" then the program will print out saying "User correct", otherwise it will print out "User incorrect".
  3. Write a script which will ask you to enter 3 numbers (you can save them as separate variables). The script will the add these numbers together to see if they are greater than 21. If they are greater than 21, it must print out the amount it is over by. If it is less than or equal to, print out Good Job.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle PL/SQL Programming Database Management Systems

Authors: Steven Feuerstein

1st Edition

978-1565921429

More Books

Students also viewed these Databases questions

Question

using signal flow graph

Answered: 1 week ago