Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) What are the inputs and outputs for each of the tasks below a) Determining if a customer is old enough to order an alcoholic

image text in transcribed
image text in transcribed
1) What are the inputs and outputs for each of the tasks below a) Determining if a customer is old enough to order an alcoholic drink at the restaurant where you work b) Choosing your schedule of classes for next term c) Attending a party at a place in a nearby town that you have never been to. d) Having some friends over to watch several episodes of a television series. 2) What is an algorithm? What is it used for? 3) Convert the numbers to the indicated base: a) 101101101, -10 b) 2351,- 4) The largest number that can be stored in one byte of memory is a) 9 b) 0 c)16 d) 128 e) 255 5) Evaluate (determine the value of) the following expressions a) 2+2" 5- (17//12) b) 4+8//2+8%2 6) How are the operators and // the same? How are they different? Give an example that shows how they differ 7) Write a set of Python statements that will use the string variables Title, FirstName, and LastName to produce a string named formalName. formalName will contain the contents of the three other strings, in the order printed, with spaces in between their contents 8) The slope of a line containing the points (xi y1) and (x2,y2) is given by the formula m = slope of the line containing the points (2, 3) and (3, 6) Y2-yi X2-X1 , write a segment of Python code that will calculate the 9) Multiple choice (MC): The names of variables a) should be short, one or two letters b) should reflect the purpose of the variable c) must begin with a digit d) must contain a digit e) may not contain a digit

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

Hands-On Database

Authors: Steve Conger

2nd Edition

0133024415, 978-0133024418

More Books

Students also viewed these Databases questions

Question

Question Can I collect benefits if I become disabled?

Answered: 1 week ago

Question

Question May I set up a Keogh plan in addition to an IRA?

Answered: 1 week ago