Programming & Computer Science Answers

C++ 9913
Python 5288
Java | JSP | JSF 3611
C 1680
C# 1362
Computer Networks 989
Algorithms 652
Databases | SQL | Oracle | MS Access 641
HTML/JavaScript Web Application 588
Other 537
Visual Basic 358
Assembler 209
Software Engineering 202
AJAX | JavaScript | HTML | PHP 166
MatLAB 150
MatLAB | Mathematica | MathCAD | Maple 124
Action Script | Flash | Flex | ColdFusion 112
UNIX/Linux Programming 89
Web Development 73
Excel 36
ASP | ASP.NET 23
Delphi | Pascal 21
Perl 16
Prolog 9
Functional Programming 9
MathCAD 5
Wolfram Mathematica 4
WPF 4
Ruby | Ruby on Rails 3
NodeJS Web Application 2

Questions answered by Experts: 26 876

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

Company ALPHA wants to devise an Employee Presence Monitoring System (EPMS) to monitor effective working time of an employee. Apart from details such as Emp_ID, Age, address, contact number etc., each employee will have a special counter. First time an employee enters into the office, the counter is set to 1. From then onwards, each time an employee leaves the office premises for tea break or lunch break, and enters back this id is incremented. You can figure out that when this id is odd on a day, he is in the office premises and even when he is out. EPMS also records the number of breaks and total duration of the break in a dayThe organization uses this data to perform the following analytics:


How many employees came today?


Did a particular employee come today?


How often did an employee enter into the office?


Which employee moves out of office most number of times?


Name of the employees who are all out for a particular time period


Who all came within a range of IDs, and how often they entered?

Write a function called propagateUncertainty() that accepts as input two variables in the format x = [x_best,dx] and y = [y_best,dy]. Have your function calculate the sum q = x + y as well as the corresponding max uncertainty dq = dx + dy and return an answer in the same format of the inputs (i.e., q = [q_best,dq]).


If either of the inputs does not have two entries, your function should return the string "Fail" and print the statement "Array length must be equal to two with the format x = [x_best,dx]."

If either of the inputs contains non-numeric entries (i.e., type(entry) is not equal to "int" or "float"), your function should return the string "Fail" and print the statement "Non-numeric entry!"



Define a function named "countCharacter" that accepts a sentence as parameter (string) and calculate the total number of letters, total number of uppercase letters, total number of lowercase letters, total number of digits and total number of characters that is not letter and not digit. The function will then return a list of 5 integers representing: 1. total number of letters 2. number of letters with uppercase 3. number of letters with lowercase 4. number of digits 5. any other character beside letters and digits Suppose the following input is supplied to the function "Hell0 WorlD!!!4567" the function will return a list with the following values [9, 3, 6, 5, 4]









Define a function named "isValidPassword" which take a string as parameter. The function will then check if the supplied string fulfilled the following password criterias: 1) must have combination of uppercase and lowercase 2) must have at least 3 digits 3) must have at least 2 special character (including whitespace). 4) must have at least 10 characters (combination of alphanumeric and special symbol) The function will return a Boolean value i.e. True if all criterias are met or return False otherwise. Make sure you test your function with every single possible input that may return False value as well.


Define a function named "excludeItem" which take two parameters (item1 & item2) and both

are list. This function will create a separate list named "result" which only include items found

in both lists. The result list should not have duplicate value.

For example, given item1 = [1,2,3,4,2,1] while item2 = [2, 4, 4, 2]. This function will return a

result of [2,4]. Note that the output value is unique (no duplicate). The function must be able

to accept other parameters as well i.e. list of strings or mixture of strings and digits


Given an array A of N integers and two integers X and Y, find the number of integers in the array that are both less than or equal to X and divisible by Y.

Cambridge institute of Technology needs a Calendar-Events application, designed for a semester. The application should accommodate



16 weeks of duration



Includes 3 test dates with the gap of 6 weeks, 5 weeks, 4 weeks



Last week, it should accommodate lab internals



Other various academic and co-curricular activities.



The application should enable:



Inserting of dates for various activities



Provision to modify the activities, both these activities have to be only by authorized person.



Store the activities in a file to communicate to all the stake holders



On daily basis, the application has to pop-up salient features of that day based on the calendar of event on user machine.

Cambridge institute of Technology needs a Calendar-Events application, designed for a semester. The application should accommodate





16 weeks of duration





Includes 3 test dates with the gap of 6 weeks, 5 weeks, 4 weeks





Last week, it should accommodate lab internals





Other various academic and co-curricular activities.





The application should enable:





Inserting of dates for various activities





Provision to modify the activities, both these activities have to be only by authorized person.





Store the activities in a file to communicate to all the stake holders





On daily basis, the application has to pop-up salient features of that day based on the calendar of event on user machine.

Write a shell script program to find average of first N even numbers?


A method called sine(), which takes as its only parameter a value of type double, and returns a value of type double. The parameter represents an angle expressed in radians, and the value returned by the method represents the trigonometric sine of this angle. For example, suppose the following method call is executed:

double sin = MyMath.sine(1.047197551);

After the execution of the above method call, the value stored in variable sin will be (approximately) 0.866025404, as the sine of 1.047197551 radians is approximately 0.866025404.


LATEST TUTORIALS
APPROVED BY CLIENTS