This question does not need to coding language, just academic writing.
Identify the research questions for the following problem statements: 1) Mixed methods research is an approach that combines quantitative and qualitative research methods in the same research inquiry. Such work can help develop rich insights into various phenomena of interest that cannot be fully understood using only a quantitative or a qualitative method. Notwithstanding the benefits and repeated calls for such work, there is a dearth of mixed methods research in information systems. 2) Non-relational databases (often termed as NoSQL) have recently emerged and have generated both interest and criticism. Interest because they address requirements that are very important in large-scale applications, criticism because of the comparison with well-known relational achievements. One of the major problems often mentioned is the heterogeneity of the languages and of the interfaces they offer to developers and users. Different platforms and languages have been proposed, and applications developed for one system require significant effort to be migrated to another one. 3)Performance measurement and analysis is crucial for steering the organization to realize its strategic and operational goals. Relevant performance indicators and their relationships to goals and activities need to be determined and analyzed. Current organization modeling approaches do not reflect this in an adequate way. 4) Because digital games are fun, engaging, and popular, organizations are attempting to integrate them within organizational activities as serious components, with the anticipation that they can improve employees’ motivation and performance. But in order to do so and to obtain the intended outcomes, it is necessary to first obtain an understanding of how different digital game designs impact players’ behaviors and emotional responses. 5) Deep web or hidden web refers to the hidden part of the Web (usually residing in structured databases) that remains unavailable for standard Web crawlers. Obtaining content of the deep web is challenging and has been acknowledged as a significant gap in the coverage of search engines.
In: Computer Science
In C++, write a function that returns the average of all the values stored in an integer array (called arr) of size n. The return type of the function should be double.
Test this function in the main program.
In: Computer Science
Write a c program that will return 1 if the argument passed is a digit and zero otherwise.
Use the following function int isNumber(char *c) to do that.
Do not use && or || logical operator.
Write a full c program that has the header required and will accept the user entry.
In: Computer Science
What are the various layouts that are created when a developer utilizes the Fragment option in the Android Design Support Library? What are the components of each created layout? How can these layouts be used (provide an example for each layout)?
In: Computer Science
Can anyone add a validation function to my html? First, ensure that your form uses at least three of the following field types: check boxes, text boxes, option buttons, selection lists, and text areas. Then, program validation for your form ensuring that users enter values or make selections in all fields, and verifying at least one other aspect of at least one of the fields. Provide appropriate feedback to users when the form fails validation. Test your completed program until all validation works reliably with different combinations of valid and erroneous data. Be sure to include comments within each line of code to explain what each line of code is accomplishing.
<------------------------------------------------------------------------------------------------------->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Case Project</title>
<link href="layout.css" rel="stylesheet"
type="text/css">
</head>
<body>
<h1>Lamborghini</h1>
<p><a href='index.html'>Lamborghini</a> <a
href='ferrari.html'>Ferrari</a> <a
href='bugatti.html'>Bugatti</a> <a
href='rollsroyce.html'>Rolls-Royce</a></p>
<hr>
<p><img
src='https://vignette.wikia.nocookie.net/pawnstarsthegame/images/6/6e/2003_Lamborghini_Murcielago.png'>The
Aventador has been created to anticipate the future, as
demonstrated by the use of innovative technology, including a V12
engine and the extensive use of carbon fiber. The authentic design
masterpieces together stark dynamism with aggression to produce a
cutting edge carbon fiber monocoque. The interior of the Aventador
combines high-level technology and luxury equipment with
premium-quality materials, skilfully crafted with the expertise
characteristic of the finest Italian traditions. A supercar family
that has already become a legend in its own right. Discover
technical specifications, dimensions, performance, and the detailed
features of all the new Lamborghini Aventador
models.</p>
</script>
</body>
</html>
In: Computer Science
***In Java language***The first programming project involves writing a program that computes the salaries for a collection of employees of different types. This program consists of four classes. 1. The first class is the Employee class, which contains the employee's name and monthly salary, which is specified in whole dollars. It should have three methods: a. A constructor that allows the name and monthly salary to be initialized. b. A method named annualSalary that returns the salary for a whole year. c. A toString method that returns a string containing the name and monthly salary, appropriately labeled. 2. The Employee class has two subclasses. The first is Salesman. It has an additional instance variable that contains the annual sales in whole dollars for that salesman. It should have the same three methods: a. A constructor that allows the name, monthly salary and annual sales to be initialized. b. An overridden method annualSalary that returns the salary for a whole year. The salary for a salesman consists of the base salary computed from the monthly salary plus a commission. The commission is computed as 2% of that salesman's annual sales. The maximum commission a salesman can earn is $20,000. c. An overridden toString method that returns a string containing the name, monthly salary and annual sales, appropriately labeled. 3. The second subclass is Executive. It has an additional instance variable that reflects the current stock price. It should have the same three methods: a. A constructor that allows the name, monthly salary and stock price to be initialized. b. An overridden method annualSalary that returns the salary for a whole year. The salary for an executive consists of the base salary computed from the monthly salary plus a bonus. The bonus is $30,000 if the current stock price is greater than $50 and nothing otherwise. c. An overridden toString method that returns a string containing the name, monthly salary and stock price, appropriately labeled. 4. Finally there should be a fourth class that contains the main method. It should read in employee information from a text file. Each line of the text file will represent the information for one employee for one year. An example of how the text file will look is shown below: 2014 Employee Smith,John 2000 2015 Salesman Jones,Bill 3000 100000 2014 Executive Bush,George 5000 55 The year is the first data element on the line. The file will contain employee information for only two years: 2014 and 2015. Next is the type of the employee followed by the employee name and the monthly salary. For salesmen, the final value is their annual sales and for executives the stock price. As the employees are read in, Employee objects of the appropriate type should be created and they should be stored in one of two arrays depending upon the year. You may assume that the file will contain no more than ten employee records for each year and that the data in the file will be formatted correctly. Once all the employee data is read in, a report should be displayed on the console for each of the two years. Each line of the report should contain all original data supplied for each employee together with 2 that employee's annual salary for the year. For each of the two years, an average of all salaries for all employees for that year should be computed and displayed. The google recommended Java style guide, provided as link in the week 2 content, should be used to format and document your code. Specifically, the following style guide attributes should be addressed: Header comments include filename, author, date and brief purpose of the program. In-line comments used to describe major functionality of the code. Meaningful variable names and prompts applied. Class names are written in UpperCamelCase. Variable names are written in lowerCamelCase. Constant names are in written in All Capitals. Braces use K&R style. In addition the following design constraints should be followed: Declare all instance variables private Avoid the duplication of code Test cases should be supplied in the form of table with columns indicating the input values, expected output, actual output and if the test case passed or failed. This table should contain 4 columns with appropriate labels and a row for each test case. Note that the actual output should be the actual results you receive when running your program and applying the input for the test record. Be sure to select enough different kinds of employees to completely test the program.
In: Computer Science
Please provide detailed solutions for the following problems.
1. Convert the NFA defined by
δ (q0; a) = {q0; q1}
δ (q1; b) = {q1; q2}
δ (q2; a) = {q2}
with initial state q0 and final state q2 into an equivalent DFA.
2. Convert the NFA defined by
δ (q0; a) = {q0; q1}
δ (q1; b) = {q1; q2}
δ (q2; a) = {q2}
δ (q0; λ) = {q2}
with initial state q0 and final state q2 into an equivalent DFA.
3. Convert the NFA defined by
δ (q0, a) = {q0; q1}
δ (q1, b) = {q1; q2}
δ (q2, a) = {q2}
δ (q1; λ) = { q1; q2}
with initial state q0 and final state q2 into an equivalent DFA
In: Computer Science
Convert this code written in Python to Java:
students = int(input("How many students are in your class?" ))
while students<0:
print("Invalid # of students, try again.")
students = int(input("How many students are in your class?" ))
tests = int(input("How many tests in this class? "))
while tests<0:
print("Invalid # of tests, try again.")
tests = int(input("How many tests in this class? "))
print("Here we go!")
# Here we are creating a list called class_average to store average of all students.
class_average = []
for i in range(1, students+1):
# Here we are creating a list called student_marks to store the marks of the student.
student_marks = []
print("**** Student #",i, "****")
for j in range(1,tests+1):
marks = int(input("Enter score for test #{}: ".format(j)))
while marks<0:
print("Invalid score, try again")
marks = int(input("Enter score for test #{}: ".format(j)))
# If marks is valid then we are adding it to student_marks list.
student_marks.append(marks)
# Here we are finding average of student marks and storing in student_average variable.
student_average = sum(student_marks) / len(student_marks)
# Here we are rounding of average to get perfect decimal
rounded_average = round(student_average, 3)
print("Average score for student #", i, "is ", rounded_average)
# After finding student average, we are adding it to class_average list.
class_average.append(rounded_average)
# Here we are calculating whole class average and storing in variable whole_class_average
whole_class_average = sum(class_average) / len(class_average)
# Here we are rounding off result to get it prefect decimal
rounded_class_average = round(whole_class_average, 2)
print("Average score for all students is: ", rounded_class_average)
In: Computer Science
Describe the meet-in-the-middle attack against Triple DES (EDE mode).
In: Computer Science
Write a Python program to read in the temperatures for ten consecutive days in Celsius and store them into an array. The entire array should then be displayed. Next each temperature in the array should be converted to Fahrenheit and the entire array should be again be displayed. The formula for converting Celsius to Fahrenheit is °F = (°C × 1.8) + 32. Finally, the number of cool, warm and hot days should be counted and the number of each type of days should be displayed. You should decide on the thresholds for determining whether a day is cool, warm or hot.
In: Computer Science
2. A cook in canteen prepares parotta and stacks it up in a container, and the server takes parotta from the container and serves to his customer. The max capacity of the container is 15. If parotta in the container is empty, server waits for the cook to prepare new parotta. Write a Java program to illustrate the given scenario using multithreading.
b. Write a Java program to define a class ‘Covid19’ to store the below mentioned details of a Covid patients for CMC hospital. Name, age, address, mobile number, blood group, date of Covid checking. symptoms. Create ‘n’ objects of this class for all the Covid patients at india. Write these objects to a file. Read these objects from the file and display only those Covid patient details whose symptoms is ‘fever’ and seven days completed from the date of Covid checking.
please code in java only and also provide the screenshot of output along with the code
In: Computer Science
Design a c++ program that calculates the amount of money a person would earn over a period of time if his salary is one penny the first day, two pennies second day, and continues to double each day. The program should ask the user for the number of days. Display a table showing what the salary was for each day, and then show total pay at the end of the period. the output should be displayed in a dollar amount, not the number of pennies. The program must include at least one function in addition to the main function and must use the loop as well.
In: Computer Science
Convert this code written in Python to Java:
# Definition of a function isprime().
def isprime(num):
count=2;
flag=0;
# Loop to check the divisors of a number.
while(count<num and flag==0):
if(num%count!=0):
# Put flag=0 if the number has no divisor.
flag=0
else:
# Put flag=1 if the number has divisor.
flag=1
# Increment the count.
count=count+1
# Return flag value.
return flag
# Intialize list.
list=[]
#Prompt the user to enter Start and end numbers.
st=int(input("Start number:"))
en=int(input("End number:"))
while(st>en):
print ("End number must be greater than start number. Try again.")
st=int(input("Start number:"))
en=int(input("End number:"))
while(st<0 or en<0):
print ("Start and end must be positive. Try again.")
st=int(input("Start number:"))
en=int(input("End number:"))
while(st<=en):
# Call the function.
a = isprime(st);
if(a==0):
# Append the prime number to a list.
list.append(st)
st=st+1
for i in range(0, len(list), 10):
# Print 10 numbers per line.
print(*list[i:i + 10])
In: Computer Science
IN PYTHON
create a python program that accepts input from the user in the following sequence:
1. Planet Name
2. Planet Gravitational Force(g)
for data, use the planets of our solar system. The data input is to be written in 2 separate lists, the names of which are:
1. planetName
2. planet GravitationalForce(g)
A third list is required that will store the weight of a person with mass of 100kg, the formula of which is: W=mg(where m is mass of 100kg, and g is gravitational force of the planet)
Name this list:
3. weightOnPlanet
your are required to use loops in inputting the required data. Data inputting is to continue until the sentinel value of QUIT is entered for he planet name.
print out the results on screen in readable format
i.e. (Planet Name: Earth, Gravitational Force: xxxx, Weight: xxxx
Pluto is not considered by many not to be a planet of our solar system anymore.
Modify the same program to remove Pluto from all 3 lists in the program. Reprint the lists again, in the same format as the previous print.
A hypothetical object called Planet Nice is could exist in the outermost regions of our solar system. It is conjectured it maybe about 10 times the mass of planet Earth and let's suppose the 5 times the gravitational for of earth.
Modify your program to insert this hypothetical object in the 3rd position of your lists, including the computation of weight of a 100kg person.
REPRINT THE LISTS AGAIN IN THE SAME FORMAT AS THE PREVIOUS 2 PRINTS
In: Computer Science
*MATLAB*
Ch8E23
Design a nested struct to store information on constellations for a rocket design company. Each structure should store the constellation's name and information on the stars in the constellation. The structure for the star information should include the star's name, core temperature, distance from the sun, and whether it is a binary star or not. Create variables and sample data for your data structure.
In: Computer Science