Questions
Write a recursive method to determine if a String is a palindrome. The program should contain...

Write a recursive method to determine if a String is a palindrome.

The program should contain a String array that you can load several test cases to test your palindrome testing method.

The program should load your String Array with the test data containing the possible palindromes from a text file.

The program should test you application with a text file contained in your project folder

After testing your program with your test cases in the text file, you program should allow the user to test your program independently and interactively using Command Line Interface (CLI).

javadoc Requirement

There is also a javadoc requirement for the Java application projects developed in the course. All Java projects must also contain javadoc documentation with it when submitted. There is an option to create javadocs in Intellij. As long as you have your code commented properly, the javadoc will be automatically generated when you selected the option to generate it in Intellij. I uploaded a pdf document describing how to comment your code to generate your javadoc documentation correctly. There are also two hyperlinks leading to internet tutorials on creating javadoc documentation.

Submit Your Application, your Lab Report, and your text file. Your text file should be in your project folder. You must permit the user to enter their own palindrome after the test in run


In: Computer Science

python def create_fourier_dataset(x, max_val=7): """ Return the sum of sin(n*x)/n where n = 1,2,3,4,5... max_val Remember,...

python
def create_fourier_dataset(x, max_val=7):
    """
    Return the sum of sin(n*x)/n where n = 1,2,3,4,5... max_val
    Remember, n is a scalar quantity (float/int). x is a NumPy array and you should return an equal length NumPy array

    :param x: numpy array
    :param max_val: The maximum value
    :return: a tuple with two numpy arrays x and the sum

    """

In: Computer Science

Write a program (your choice!) that fulfills all the requirements below. The final product should include...

Write a program (your choice!) that fulfills all the requirements below. The final product should include the pseudocode and flowchart for the entire program.

  • Variables of each data type
    • String, Integer, Real, Boolean
  • Must contain at least one type of calculation
  • Minimum of 3 modules/functions
  • At least 2 decision structures
    • IF, IF-ELSE, IF-ELSE IF
  • At least 1 type of loop
    • WHILE or FOR
  • At least 1 array/list

In: Computer Science

Using OpenSSL from the command line interface. Please solve all the following questions. I also need...

Using OpenSSL from the command line interface. Please solve all the following questions. I also need the screenshots for every part.

a. Create a text file with some input and encrypt it using

i. AES-128 CBC

ii. AES-256 CTR

iii. DES

b. Create a 2048 bit RSA public and private key

In: Computer Science

Write a Java program to find the sum of all integers between 200 to 250 which...

Write a Java program to find the sum of all integers between 200 to 250 which are divisible by 7.

Sample Output:
Numbers between 200 and 250, divisible by 7:
203 210 217 224 231 238 245
The sum is: 1568

In: Computer Science

Software quality is not only about the correctiveness of codes (i.e. to make the program work)....

Software quality is not only about the correctiveness of codes (i.e. to make the program work). Provide at least two different aspects of software quality other than coding. Then tell what you have done to improve software quality in your group project.

In: Computer Science

Please solve all the following questions. I need the text file and screenshots of encryption and...

Please solve all the following questions. I need the text file and screenshots of encryption and decryption.

Exchange of encrypted data.

a. Encrypt a file (e.g., a text file) with an algorithm and a key length of your choice.

b. Exchange the file and the necessary credentials for decryption (i.e., algorithm, key) with your neighbor.

c. Decrypt the secret of your neighbor.

In: Computer Science

Objective: Create a webpage with a simple quiz. Instructions: The webpage must contain at least ten...

Objective: Create a webpage with a simple quiz.

Instructions:

  1. The webpage must contain at least ten simple questions as a quiz.
  2. The user must be able to answer the questions in the input boxes and finally click on a Submit button to get a final score.
  3. The questions must be such a way that some answer formats must cover all the following types:
    1. A number
    2. A string
    3. An expression (e.g. 2+3)
  4. If the user does not answer a question and try to submit the quiz, the webpage must display a note saying, "Answer question [number]." The [number] should be replaced with the question number which is unanswered.
  5. Once the user answers ALL the questions, and upon clicking the Submit button, the webpage must display a message saying, Your score is [score] out of 10. [score] must be replaced with the number of of correct responses.

Bonus: [10 points]

Use your imagination and creativity to improve the webpage for a better quiz format and user experience.

Notes:

  1. Your HTML/CSS and JS documents must be properly commented.
  2. Use appropriate color combinations so that the user can read the page clearly.
  3. You can come up with your own quiz questions, however, make sure that the topics/questions are general.

In: Computer Science

A store has 4 categories A, B, C and D, create a program that asks you...

A store has 4 categories A, B, C and D, create a program that asks you 10 times the sale and the category so that at the end it shows you the total by category, and the sum of all. Code in C # and Python

In: Computer Science

Write a C program whose input is two integers, and whose output is the first integer...

Write a C program whose input is two integers, and whose output is the first integer and subsequent increments of 10 as long as the value is less than or equal to the second integer.

Ex: If the input is:

-15 30

the output is:

-15 -5 5 15 25

Ex: If the second integer is less than the first as in:

20 5

the output is:

Second integer can't be less than the first.

For coding simplicity, output a space after every integer, including the last.

264770.1586872

In: Computer Science

Dealing with Server Core Agent The owner of CSM Tech Publishing was at the sales office...

Dealing with Server Core Agent

The owner of CSM Tech Publishing was at the sales office last week and out of curiosity wanted to sign in to the server there. The owner is somewhat tech savvy and has even worked a little with Active Directory in Windows Server 2012. He was shocked when he signed in and didn’t see a familiar user interface—only a command prompt. He asked you about this and accepted your explanation of Server Core and why you chose this installation option. However, he was wondering what would happen if you stopped providing support or were unavailable for an extended period, and your replacement wasn’t familiar with Server Core. Write a memo explaining how this situation could be handled easily

In: Computer Science

I am trying to create a makefile for the following program in Unix. The C++ program...

I am trying to create a makefile for the following program in Unix. The C++ program I am trying to run is presented here. I was wondering if you could help me create a makefile for the following C++ file in Unix and show screenshots of the process? I am doing this all in blue on putty and not in Ubuntu, so i don't have the luxury of viewing the files on my computer, or I don't know how to anyway

Program:

//main.cpp

#include <iostream>
using namespace std;

int main() {
    string s;
    char ch;
    int vowels = 0, consonants = 0, digits = 0, specialCharacters = 0;

    getline(cin, s);

    for (int i = 0; i < s.length(); i++) {
        ch = s[i];
        if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z')) {
            if (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u' || ch == 'A' || ch == 'E' || ch == 'I' || ch == 'O' || ch == 'U') {
                vowels += 1;
            }
            else {
                consonants += 1;
            }
        }
        else if (ch >= '0' && ch <= '9') {
            digits += 1;
        }
        else {
            specialCharacters += 1;
        }
    }

    cout << "Vowels: " << vowels << endl;
    cout << "Consonants: " << consonants << endl;
    cout << "Digits: " << digits << endl;
    cout << "Special characters: " << specialCharacters << endl;

    return 0;
}

In: Computer Science

QUESTION: The following tables describe the content of a relational database: a) Identify and classify the...

QUESTION: The following tables describe the content of a relational database:

a) Identify and classify the tables as either entity or relationship

The first step in building an E-R model is to identify the entities. Having identified the entities, the next step is to identify all the relationships that exist between these entities. Using the content of the relational database above:

b) Using the relations in the relational database, explain how one can transform relationship in E-R model into a separate relation.

C) Suggest a corresponding E-R diagram that captures the table structure.

In: Computer Science

Write the binary tree representation for the Binary Search for also 17 elements and give the...

Write the binary tree representation for the Binary Search for also 17 elements and give the worst-case

In: Computer Science

Create a JavaScript function that will collect the information from the form and verify that it...

  1. Create a JavaScript function that will collect the information from the form and verify that it is the correct type and that there are no blank textboxes.

  2. Save and test the file to ensure that the textbox information is collected and the script is working correctly.

  3. Use the onclick event within the submit button to call this function.

  4. Output validation error messages by writing directly to the

    with the id of "results."
    • (You may want to use alert boxes for testing at first. If you do this, remove the alerts and ensure the message is displayed correctly before submitting.)

  5. Create a loop within the above function that collects the checked value of the radio button group.

  6. Once the value from the radio group is collected,

    • create a function to pass the value for evaluation and return a message for the user based on his or her selected skill type using the

      with the id of "more."

Please I need the same result like as in the image you can copy the link to download the image and below is my code fix that thank you!!!

https://devryu.instructure.com/courses/62607/files/9495251/preview

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JavaScript Exercises</title>
<style type="text/css">
body {
   font-family:Verdana, Geneva, sans-serif;
   font-size:100%;
   margin:0;
   padding:0;
}
p {
   color:#900;
   margin-left:20px;
}
div#results {
   background-color:#FF6;
   height:auto;
   width:500px;
   border:1px solid red;
   padding:10px;
   margin-left:20px;
   -moz-box-shadow: 10px 10px 5px #888;
   -webkit-box-shadow: 10px 10px 5px #888;
   box-shadow: 10px 10px 5px #888;
   border-radius:7px;

}
div#more {
   background-color: #39F;
   height:auto;
   width:500px;
   border:1px solid #036;
   padding:10px;
   margin-left:20px;
   margin-top:20px;
   -moz-box-shadow: 10px 10px 5px #888;
   -webkit-box-shadow: 10px 10px 5px #888;
   box-shadow: 10px 10px 5px #888;
   color:#CF0;

}
#form1
{
   padding: 10px;
   width: 500px;
   border-style: solid;
   border-color: #063;
   border-radius: 15px;
   -moz-box-shadow: 10px 10px 5px #888;
   -webkit-box-shadow: 10px 10px 5px #888;
   box-shadow: 10px 10px 5px #888;
   background-color: #CFF;
   margin:20px;
}
</style>
<script type="text/javascript">
function validateForm(){
  
var name = document.getElementById("name").value;
var age = document.getElementById("age").value;
  
  
if(name == "" || name == null){//checking for null or empty string
resultsMsg("Hey, you forgot to fill in your name!");
}else{
  
if(age == "" || age == null || isNaN(age)){
resultsMsg("Age is required!");
}else{
  
if(!getSkill()){
resultsMsg("Please select a skill");
}else{
resultsMsg("Success, you selected " + getSkill());
}// end else
}

}//end else
}//end function
  
function getSkill(){
var isChecked = false; // assume no button is checked
var theSelection;
var skills = document.getElementsByName('skillset');// returns an array
for (var i=0; i < skills.length; i++){
if(skills[i].checked){
isChecked = true;
theSelection = skills[i].value;
break; //leave the loop since only one can be checked
}// end if
}// end for
if(isChecked){
return theSelection;
}else{
return false;
}//end else
  
}// end function
  
function resultsMsg(S){
var resultsBox = document.getElementById("results");
//reset to blank by overwriting
resultsBox.innerHTML= S;
}//end function
  
</script>
</head>

<body>

<p>First Paragraph</p>
<p>Second Paragraph</p>
<form name="form1" id="form1" action="" method="post">
  
<label>First Name:
<input type="text" id="name" name="name">
</label>
<br> <!-- new line here -->
<label>Your Age: &nbsp;
<input type="text" id="age" name="age">
</label>
<br> <!-- new line here -->
  
  
<input type="radio" name="skillset" value="Designer">Designer<br>
<input type="radio" name="skillset" value="Developer">Developer<br>
<input type="radio" name="skillset" value="Programmer">Programmer<br>
<input type="radio" name="skillset" value="Artist">Artist<br>
  
<input type="button" value="Submit" onclick="validateForm();"> &nbsp; &nbsp; <input type="reset" value="Clear Form">
  
  
</form>
<div id="results"></div>
<div id="more">You did not selected a Skill</div>

</body>
</html>

In: Computer Science