Answer:
A variable declaration is a name given to a memory location. It is the basic unit of storage in a program.
Answer:
months_info = ['January', 'February','March','April', 'May','June', 'July','August', 'September', 'October', 'November', 'December']
date = input('Enter a date using the mm/dd/yyyy format ')
m, d, y = date.split('/')
m = int(m) - 1
name_of_month = months_info[m]
print('{} {}, {}'.format(name_of_month, d, y))
Explanation:
- Create a list of all months and store them in the months_info variable.
- Get the date as an input from user and then split the date.
- Finally display the date by following the specific layout using the built-in format method.
Perhaps instead of cubicles, desks are organized in an open workspace which promotes collaboration (and makes it easier).
Answer:
For question a, it simplifies. If you re-express it in boolean algebra, you get:
(a + b) + (!a + b)
= a + !a + b
= b
So you can simplify that circuit to just:
x = 1 if b = 1
(edit: or rather, x = b)
For question b, let's try it:
(!a!b)(!b + c)
= !a!b + !a!bc
= !a!b(1 + c)
= !a!b
So that one can be simplified to
a = 0 and b = 0
I have no good means of drawing them here, but hopefully the simplification helped!