Create a script that asks users to input names in a text field. Sort the names and
display them in a seperate text area.
2. If the user enters an empty name, show the text field in red color. Also display an
alert box. Change the color to white when a non empty name is eneterd.
3. Add shortcut keys to text area. When user presses Ctrl+Enter, change the font style
of text in text area to italic. When user presses Shift+Enter, change the font style of
text area to normal.
Write a function that takes as input an array of current values 𝑥 and an array of parameters 𝑝𝑎𝑟𝑎𝑚s params and returns the probability density for each value of 𝑥
x based on a probability distribution that is the weighted sum of as many normal distributions as there are current levels in the data. We were given an array of current values of a single ion channel
UMT Registration System
1. Press 1 to login
2. Press 2 to register students
3. Press 3 to see the list of fee defaulters
4. Press 4 to see the CGPA of student
5. Press 5 to see the pre requisite of a course.
6. Press 6 to exit the system
Registration Window
Enter student ID
The student should not be a fee defaulter if yes then do not register student
The pre requisite of course should be passed. if fail do not register for the course
If the students CGPA is a above 3.0 register all courses.
If the CGPA is above 2.0 register 3 courses.
If CGPA less than 2.0 then register 2 courses with a warning.
Student information Window
The data should be saved in a file.
The student record may be deleted.
The student record may be searched based on the ID provided.
The student record may be updated in case if its phone no or house address changes.
Write a function that TAKES a list of numbers and RETURNS the addition of all its element
Design a program that will prompt the user for marks for each of the tests and calculate the overall marks (out of 100).
Create a function that will take the array as an argument and return the average of the quizzes.
Registration System
1. Press 1 to login
2. Press 2 to register students
3. Press 3 to see the list of fee defaulters
4. Press 4 to see the CGPA of student
5. Press 5 to see the pre requisite of a course.
6. Press 6 to exit the system
Registration Window
Enter student ID
The student should not be a fee defaulter if yes then do not register student
The pre requisite of course should be passed. if fail do not register for the course
If the students CGPA is a above 3.0 register all courses.
If the CGPA is above 2.0 register 3 courses.
If CGPA less than 2.0 then register 2 courses with a warning.
Student information Window
The data should be saved in a file.
The student record may be deleted.
The student record may be searched based on the ID provided.
The student record may be updated in case if its phone no or house address changes.
Triplet sum
Given an array n integers, find and print all the unique triplets (a,b,c) in the array which give the sum K.(a+b+c=K)
Input
The first line of the input will be space separated integers, denoting the elements of the array. The second line of the input will be an integer denoting the required sum K.
Output
The output should be multiple lines, each line containing a unique triplet. The elements of the triple must be sorted in increasing order and all the triplets printed must be sorted in increasing order. Print"No matching triplets found" if there are no triplets with the given sum.
Sample input
0 12 17 8 9 21
29
Sample output
(0, 8, 21)
(0, 12, 17)
(8, 9, 12)
You have to write a menu-driven program that asks the user to select a favorite color from the given colors. Keep asking the user three times for selecting the color from the list of the available colors. Do this with the help of a suitable loop and switch statement. Finally, you have to display the three favorite colors of the user.
Rotate matrix rings
Given a matrix of order M*N and a value K, write a program to rotate each ring of the matrix clockwise by K elements. If in any ring has less than or equal to K elements, then don't rotate that ring.
Input:
The first line of input will be two space separated integers, denoting the M and N. The next M lines will contain N space separated integers. The next line will contain an integer, denoting K
Output:
The output should be M*N matrix by K elements.
Sample input:
3 4
1 2 3 4
10 11 12 5
9 8 7 6
2
Sample output:
9 10 1 2
8 11 12 3
7 6 5 4