Click to Launch
Class,
As you learned this week, human beings do not have the most sensitive or acute sensory systems in the animal world. Some bats can hear frequencies that exceed 100,000 Hertz, dolphins receive auditory messages from great distances, and cats can probably localize sounds better than we do because they can rotate their ears. Rats see better at night than we can, eagles have more acute distance vision, and horses have a wider visual field. Rabbits have more taste buds than we do, and many animals have a keener sense of smell.
This exercise asks you to consider how you would perceive the world if your senses were more acute or sensitive than they actually are. Please answer the following questions and post it to the discussion board. List a few things you would see, that you cannot see now, if your sense of vision were "better."
List a few things you would hear, that you cannot hear now, if you could hear "better." If your chemical senses-taste and smell-were more sensitive, how might you be affected?
Why are our senses no more and no less acute or sensitive than they are?
If human beings continue to be urban creatures for the next few million years, in what ways might our sensory systems evolve or change?
Lastly, you must read other students' posts and respond to at least one other studenti Prof. Karina
In: Nursing
Python Programming, Could you also show the right indents in Python Shell. Below are the skeleton of the program, and the input and output.
# Initialize list
mylist = [ ]
# Set up loop to put menu on screen
num = 1
while num != 0:
print(" ")
print(" ")
print(" Menu ")
print ("0 - Quit")
print ("1 - Add item to list")
print ("2 - Pop item off list and print it")
print ("3 - Print list")
print ("4 - Sort list")
print ("5 - Reverse list")
snum = input("Enter choice from menu ")
num = int(snum)
print (" ")
Put your if or if-else or if-elif statements here
(They will be inside the while
loop)
You should start this lab by entering the above program and saving it as Week5LabA in your Python Programs folder. Then run it to see how it displays the menu. Note that you can enter 0, 1, 2, 3, 4, or 5 in response to the menu choices. Your entry will be assigned to the variable num. Entering a 0 will end the program.
Your other entries (1, 2, 3, 4, or 5 ) should cause something to be done with the list that is called mylist. You will note that mylist has been initialized to the empty list with the mylist = [ ] statement.) For example, if you enter a 1 (value of num is 1), the program should ask you to enter a value to be placed on the list and then append it onto the list. As another example, if you enter a 3 (value of num is 3), the program should print the list using the statement, print(mylist).
The video below shows what the original program (the one I gave you above) should do and how you can enter the if statement for a value of 1 for num.
View video to get started=> https://youtu.be/PxTwMpBFFas
The following is a sample execution of the program. The following integers were placed on the list: (Values entered by the user are in red.)
Menu
0 - Quit
1 - Add item to list
2 - Pop item off list and print it
3 - Print list
4 - Sort list
5 - Reverse list
Enter choice from menu 1
Enter value to put on list 3
Menu
0 - Quit
1 - Add item to list
2 - Pop item off list and print it
3 - Print list
4 - Sort list
5 - Reverse list
Enter choice from menu 1
Enter value to put on list 7
Menu
0 - Quit
1 - Add item to list
2 - Pop item off list and print it
3 - Print list
4 - Sort list
5 - Reverse list
Enter choice from menu 1
Enter value to put on list 9
The following operations were performed on the list:
Menu
0 - Quit
1 - Add item to list
2 - Pop item off list and print it
3 - Print list
4 - Sort list
5 - Reverse list
Enter choice from menu 3
[3, 7, 9]
Menu
0 - Quit
1 - Add item to list
2 - Pop item off list and print it
3 - Print list
4 - Sort list
5 - Reverse list
Enter choice from menu 4
Menu
0 - Quit
1 - Add item to list
2 - Pop item off list and print it
3 - Print list
4 - Sort list
5 - Reverse list
Enter choice from menu 5
Menu
0 - Quit
1 - Add item to list
2 - Pop item off list and print it
3 - Print list
4 - Sort list
5 - Reverse list
Enter choice from menu 3
[9, 7, 3]
Menu
0 - Quit
1 - Add item to list
2 - Pop item off list and print it
3 - Print list
4 - Sort list
5 - Reverse list
Enter choice from menu 2
Value popped = 3
Menu
0 - Quit
1 - Add item to list
2 - Pop item off list and print it
3 - Print list
4 - Sort list
5 - Reverse list
Enter choice from menu 3
[9, 7]
In: Computer Science
Transforming a List
One typical kind of list processing is to transform the elements of a list, producing a copy of the list but with the elements transformed.
Write a function definition of add_sizes using a for loop that takes a list of strings, say strings, and returns a list of pairs consisting of the elements of strings together with their lengths.
def add_sizes(strings):
"""
Return the list of pairs consisting of the elements of strings
together
with their sizes.
Parameters:
list<str>: a list a strings
Return:
list<tuple<str, int>>: a list of strings and their
corresponding
lengths
"""
# add your code here
In: Computer Science
Please can you assist with the below,
If the instantaneous value of a voltage in an AC circuit of the communication system (at any time t seconds) is given by V= 136sin(14πt-0.125π) volts, determine:
a. The amplitude,
b. Periodic time (in ms)
c. Frequency
d. Phase angle in degrees
e. Voltage at t=0
f. Voltage at t=10ms
g.Time when voltage reaches 100volts
h. Time when voltage is maximum
i. Sketch one cycle of the waveform
j. Given that the voltage waveform can also be represented as V=Rsin(ωt+θ), use compound angle identities to resolve the resultant voltage waveform into its two component waveforms: asinωt and bcosωt.
k. In another circuit the voltage, V is made up of two components v1 = (A/3)Sin(t) and v2 = (A/2)Cos(t). Sketch the two component waveforms and the resulting waveform V= (A/3)Sin(t) + (A/2)Cos(t) on the same axes and estimate from your graph the equation of the combined waveform. Also analytically calculate, showing all your working, the parameters (R&θ) of the equation of the combined waveform if represented as V=Rsin(Ѡt+θ), giving θ in radians.
c) At a certain point in flight the aerodynamic forces acting on a UAV could be simulated to be three coplanar and concurrent forces F1=2A (Newtons) acting at an angle of 30 ̊ to the free stream (with the horizontal, anticlockwise direction), F2 = A (Newtons) at an angle of 90 ̊ and F3= 1.3A (Newtons) acting at an angle of 210 ̊Calculate the magnitude of the resultant force and sketch all four forces. 2) Find the resultant of: F1 - F2 - F3
In: Math
Simulate a problem with undo. You will need to be connected as user
SYSTEM or some other user to whom you have granted the DBA role.
.
Create an undo tablespace with a single datafile of only 200 KB. Do not set the file to autoextend.
.
Set the database to use this small undo tablespace. Confirm that an undo
segment has been created in this tablespace and that it is online by querying
the views DBA_ROLLBACK_SEGS and V$ROLLSTAT.
Why do you think that only one undo segment was created?
.
Create an empty table based on the ALL OBJECTS view with this statement:
create table undotest as select * from all_objects where 1=2;
.
Populate this table with the contents of the ALL OBJECTS view:
insert into undotest select * from all_objects ;
.
The statement will fail with an error "ORA-30036: unable to extend segment by 8 in undo tablespace."
Query the new table, and you will find that it is still empty. Why is this?
.
Adjust the undo tablespace's datafile to autoextend, and attempt to insert the contents of the ALL_OBJECTS view into the new table. This time, the insertion will succeed. Find out how many blocks of undo are needed to support the transaction so far by querying V$TRANSACTION as well as how big the new datafile is by querying V$DATAFILE.
.
Delete every row in the new table and then repeat the queries against V$TRANSACTION and V$DATAFILE.
You will see that the deletion generated many more blocks of undo and required a much larger extension of the undo
datafile than the insertion. Why is this?
.
Tidy up by switching back to the original undo tablespace and then dropping the test table and tablespace
.
(3) Include in the assignments all queries and their results that you execute in this part. Also include your answers to the questions written in italic thought the exercise.
In: Computer Science
In: Statistics and Probability
A researcher is interested in finding a 98% confidence interval for the mean number of times per day that college students text. The study included 96 students who averaged 41.6 texts per day. The standard deviation was 13.3 texts.
In: Statistics and Probability
A sample of 36 MBA students at a certain university produces a mean age of 26.5 years with a standard deviation of 10.24 years. Which of the following is the 90% confidence interval for the mean age of all MBA students at this university based on this sample.
In: Statistics and Probability
The probability of receiving a A in Prob & Stats is 20%. Random picking students in a class. What is the probability that you have to select more than 3 students to get one student with A.
Group of answer choices
48.8%
20%
38.4%
87.2%
In: Statistics and Probability
In: Finance