Program Specification: (Visual Studio C++)
1. Read data for names and weights for 15 people from the console
where there is a name on a line followed by a weight on the next
line.
2. Your program will build a list for the data maintained in
ascending order based on both name and weight via a doubly linked
list.
3. This dll will use one pointer to keep weights in sorted order,
and use the other link to keep names on sorted order.
4. You need to build the list as you go maintaining this ordering,
so at any time a print method was called it would print the related
field in order. (This means nodes are added to the list in sorted
order, elements are not added to the list followed by a sort called
on the list.)
For example after 3 elements are added for (Name –
Weight):
Michael – 275, Tom – 150, Abe – 200.
Output:
Names & weights sorted(ascending) by name. : Abe – 200, Michael
– 275, Tom - 150
Names & weights sorted(ascending) by weight. : Tom – 150, Abe –
200, Michael - 275
Jim
150
Tom
212
Michael
174
Abe
199
Richard
200
April
117
Claire
124
Bobby
109
Bob
156
Kevin
145
Jason
182
Brian
150
Chris
175
Steven
164
Annabelle
99
In: Computer Science
Hello. Please answer the following two-part question in Scheme. Not Python, not any form of C, but in the language Scheme. If you do not know Scheme, please do not answer the question. I've had to upload it multiple times now. Thank you.
3.1 Write a recursive function called split
that takes a list and returns a list containing two lists, each of
which has roughly half the items in the original list. The easiest
way to do this is to alternate items between the two lists, so that
(split '(1 2 3 4 5)) would return '((1 3 5) (2 4)). I recommend
using two base cases: one for an empty list and the other for a
list containing one item.
> (split '())
(() ())
> (split '(3))
((3) ())
> (split '(4 8))
((4) (8))
> (split '(8 6 7 5 3 0 9))
((8 7 3 9) (6 5 0))
3.2 Write a recursive function called merge that
takes two sorted lists of numbers and merges them together into one
sorted list containing all of the number in both lists including
duplicates.
> (merge '() '())
()
> (merge '() '(1 2 3))
(1 2 3)
> (merge '(1 2 3) '())
(1 2 3)
> (merge '(2 4 7) '(1 3 5))
(1 2 3 4 5 7)
In: Computer Science
HTML WEBSITE WITH CSS LAYOUT
1. Create a studentregistration form with the following
fields:
> Email Address (Email)
> Desired Username (Text box)
> Password (Password)
> Family name (Text box)
> Middle Name/Initial (Text box)
> First name (Text box)
> Gender (Radio Button - Male or Female only!)
> ID Number (Text box)
> Mobile Number (Text box)
> Landline Number (Text box)
> Permanent Home Address (Text box)
> Degree/Course (Text box)
> Year Level (Drop down - year 1 to 5)
> Campus (Radio Button - Main Campus, Banilad Campus, LM Campus,
Mambaling Campus)
> Name of Father (Text box)
> Name of Mother (Text box)
> Name of Guardian (Text box)
> Hobbies (Checkbox, a user can select multiple hobbies, at
least 10 hoobies listed)
> Interests (Checkbox, a user can select multiple interest, at
least 10 interest listed)
> Civil Status (Dropdown - Single, Married, Separated,
Widow)
> Favorite Color (Color Picker)
> Date of Birth (Month, Day, Year - three textboxes)
> Describe yourself (Text area)
> Rate your satisfaction inside UC (Range input - ranging from 1
- 10)
> Submit button (Display "Registered" in a separate page when
the user click this button - this is only for display, no backend
scripts required to save the data)
> Clear button (Clear all the fields when user clicks)
2. Create a login form.
> Username
> Password
> Login Button
> Reset Button
* Arrange all your fields in a table format. You can also use the
fieldset element to arrange your fields.
* Make your design clean as possible.
* Make all your fonts readable.
* If you want to use/apply colors, use only 3 colors.
* Include the Registration and Login Links in the menu area.
* Maintain the layout of your page.
In: Computer Science
The Director of Acquisition marketing for L.L. Bean is testing a series of new email lists and comparing it to a cross section of her usual lists to serve as a control. To do this she set up a spread sheet and computed the test statistic and pvalue of all of the test lists as compared to the control. The test statistics are representative to a two tailed hypothesis test where Ho: u1= u2 vs Ha: u1 ≠ u2.The results are shown below:
|
n |
opens |
open rate |
Test Statistic for Open Rate |
Pvalue |
clicks |
click rate |
Test Statistic for Click Rate |
Pvalue |
|
|
control |
15,000 |
4,733 |
31.6% |
3,219 |
68.0% |
||||
|
Ionic email list 3 month recent |
15,000 |
5,355 |
35.7% |
-4.41 |
<.0001 |
2,566 |
47.9% |
15.65 |
<.0001 |
|
Lucid email list new moms |
15,000 |
5,721 |
38.1% |
-7.07 |
<.0001 |
3,901 |
68.2% |
-0.16 |
0.8728 |
|
Collegiate student list |
15,000 |
7,332 |
48.9% |
-19.41 |
<.0001 |
5,007 |
68.3% |
-0.26 |
0.7948 |
|
Experian select Women 24-35 |
15,000 |
6,021 |
40.1% |
-9.28 |
<.0001 |
4,022 |
66.8% |
1.09 |
0.2758 |
|
Apparel shoppers opt in list |
15,000 |
4,899 |
32.7% |
-1.16 |
3,390 |
69.2% |
-1.04 |
||
a. Compute the pvalue for the Apparel shoppers opt in list. Note that the pvalue for the open rate and the click rate are both missing.
b. All comparisons are made relative to the control. Answer what is the best test list for click rate. Is it the best directionally or with statistical significance?
c. All comparisons are made relative to the control. Answer what is the worst test list for open rate. Is it the worst directionally or with statistical significance?
In: Statistics and Probability
The Director of Acquisition marketing for L.L. Bean is testing a series of new email lists and comparing it to a cross section of her usual lists to serve as a control. To do this she set up a spread sheet and computed the test statistic and pvalue of all of the test lists as compared to the control. The test statistics are representative to a two tailed hypothesis test where Ho: u1= u2 vs Ha: u1 ≠ u2.The results are shown below:
|
n |
opens |
open rate |
Test Statistic for Open Rate |
Pvalue |
clicks |
click rate |
Test Statistic for Click Rate |
Pvalue |
|
|
control |
15,000 |
4,733 |
31.6% |
3,219 |
68.0% |
||||
|
Ionic email list 3 month recent |
15,000 |
5,355 |
35.7% |
-4.41 |
<.0001 |
2,566 |
47.9% |
15.65 |
<.0001 |
|
Lucid email list new moms |
15,000 |
5,721 |
38.1% |
-7.07 |
<.0001 |
3,901 |
68.2% |
-0.16 |
0.8728 |
|
Collegiate student list |
15,000 |
7,332 |
48.9% |
-19.41 |
<.0001 |
5,007 |
68.3% |
-0.26 |
0.7948 |
|
Experian select Women 24-35 |
15,000 |
6,021 |
40.1% |
-9.28 |
<.0001 |
4,022 |
66.8% |
1.09 |
0.2758 |
|
Apparel shoppers opt in list |
15,000 |
4,899 |
32.7% |
-1.16 |
3,390 |
69.2% |
-1.04 |
||
a. Compute the pvalue for the Apparel shoppers opt in list. Note that the pvalue for the open rate and the click rate are both missing.
b. All comparisons are made relative to the control. Answer what is the best test list for click rate. Is it the best directionally or with statistical significance?
c. All comparisons are made relative to the control. Answer what is the worst test list for open rate. Is it the worst directionally or with statistical significance?
In: Statistics and Probability
Do it in python please! also please use this template please I have provided and below is the activity
def main():
# import the module random
try:
# asking the user to enter a number between 1 and 100
#loop time
while
if
elif
#for loop # generates that number of random integers and stores
them in a list
for x in
# computations
# displays the results on the screen
# call try_Again to give the user the opportunity to try again or to end the program
#bit of error catching
except:
# Defining a function tryAgain()
def try_Again():
while
if
elif
# defining a function endProgram that will be called any time
the user wants to end the program
def endProgram():
# heading
# Calling the main function
if __name__ =='__main__':
main()
# This will keep the console open at the end of the program
# until the end user hits the Enter key.
This activity is worth 10 total points
This lesson's Group Activities are:
We're going to take the Group Activity from last week and tweak it. Instead of storing the random numbers in a list, we're going to store them in a file. Write a program using functions and mainline logic which prompts the user to enter a number, then generates that number of random integers and stores them in a file. It should then display the following data to back to the user:
Helpful hint: don't forget about input validation loops and try/catch exceptional handling. Both are very useful when used in conjunction with functions.
In: Computer Science
Write the following Python script:
Imagine you live in a world without modules in Python! No numpy! No scipy! Write a Python script that defines a function called mat_mult() that takes two lists of lists as parameters and, when possible, returns a list of lists representing the matrix product of the two inputs. Your function should make sure the lists are of the appropriate size first - if not, your program should print “Invalid sizes” and return None. Note: it is actually tricky to make a useful list of zeros. For instance, if you need to start with a 5 row, 6 column double list of 0, you might be tempted to try:
'''
thing = [ [ 0 ] ∗ 6 ] ∗ 5
'''
and if you look at it in the console window, it would appear to be a 5 by 6 list of lists containing all zeros! However - try the following and see what happens:
'''
thing [ 2 ] [ 5 ]
thing
'''
Notice that the item in index 5 of every row has changed, not just the row with index 2! Given the difficulty, I will give you the line of code that will create a list of lists that is num_rows by num_cols:
'''
ans = [ [ 0 for col in range ( num_cols ) ] for row in range ( num_rows ) ]
'''
In: Computer Science
Using Python:
The Fibonacci sequence is a famous series of numbers with the following rules:
The first number in the sequence is 0 -
The second number in the sequence is 1 -
The other numbers in the sequence are composed by adding up the two previous numbers in the sequence. We therefore have the following sequence: 1 st number: 0 2nd number: 1 3 rd number: 0 + 1 = 1 4 th number: 1+1 =2 5 th number: 2+1 = 3 6 th number: 3 + 2 = 5 7 th number: 5 + 3 = 8 and so on….
a. Write a program that takes a value n from the user and , using recursive function, display the first n Fibonacci numbers. (3pts)
b. Then, using List Comprehension, indicate which of the first n Fibonacci numbers are (2pts) : - odd numbers - multiples of 5
Example: How many Fibonacci numbers do you want ? 2 The first Fibonacci numbers are : [0, 1] From this list, the odd numbers are : [1] There is no multiples of 5 in this list How many Fibonacci numbers do you want ? 5 The first Fibonacci numbers are : [0, 1, 1, 2, 3] From this list, the odd numbers are : [1, 1, 3] There is no multiples of 5 in this list How many Fibonacci numbers do you want ? 11 The first Fibonacci numbers are: [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55] From this list, the odd numbers are : [1, 1, 3, 5, 13, 21, 55] From this list, the multiples of 5 are : [5, 55] Note that 0 is neither an odd number nor multiple of 5
In: Computer Science
In: Finance
List three condition/disease (for each) that affect the Eyes and ENT and describe drugs used to treat the condition/disease.
Also, research what surgical procedures are commonly done for Ophthalmology and Ear, Nose and Throat patients - list and describe three each.
In: Nursing