Questions
Evaluate the performance of the Machine Learning-Deep learning model and discuss how the choice of input...

Evaluate the performance of the Machine Learning-Deep learning model and discuss how the choice of input features affects the model performance.

In: Computer Science

Please use Python for both Concatenate List Elements Write a function called concat_list that accepts a...

Please use Python for both

Concatenate List Elements

Write a function called concat_list that accepts a list of strings as an argument and returns a string made up of all elements in the list concatenated together in order. For example, if the argument is ['one', 'two', 'three'], the return value would be 'onetwothree'.

Remove List Duplicates

Write a function called remove_duplicates that accepts a list and returns a list containing the same elements in the same order but with duplicates removed. For example, if the argument is [7, 4, 2, 7, 2, 2, 9, 4], the returned list would be [7, 4, 2, 9].

In: Computer Science

In his December 6, 2010 article in Datamation titled The Five E's of Cloud Computing Management...

In his December 6, 2010 article in Datamation titled The Five E's of Cloud Computing Management in 2011, Jeffrey Kaplan states:

"The beauty of today's Cloud Computing solutions is that corporate executives and end-users can more easily critique their functional capabilities and user-friendliness before selecting one to address their needs. However, business decision-makers still need plenty of IT help looking "under the hood" at how these offerings are architected, delivered and supported to ensure they can integrate with existing systems and fulfill their promises. IT managers and CIOs should put selection criteria, procurement procedures and governance policies in place to oversee the evaluation and contracting processes." (Available here.)

When considering cloud computing, Kaplan says "corporate executives and end-users can more easily critique their functional capabilities and user-friendliness." What are the implications of this for planning IT acquisition projects? How much change do you see, if any, in solution selection criteria, procurement procedures, and governance approaches because of cloud computing, assuming the organization has established these earlier based on best practices?

In: Computer Science

Consider the following relation R(A, B, C, D, E, G) and the set of functional dependencies...

Consider the following relation R(A, B, C, D, E, G) and the set of functional dependencies F={ A → BCD,
BC → DE, B→D, D → A}

Note: Show the steps for each answer.

(a) Compute B+ .

(b) Prove (using Armstrong’s axioms) that AG is superkey.

(c) Compute Fc.

(d) Give a 3NF decomposition of the given schema based on a canonical cover.

(e) Give a BCNF decomposition of the given schema based on F. Use the first functional dependency as the violator of the BCNF condition.

In: Computer Science

Description: Create a class in Python 3 named Animal that has specified attributes and methods. Purpose:...

Description: Create a class in Python 3 named Animal that has specified attributes and methods.

Purpose: The purpose of this challenge is to provide experience creating a class and working with OO concepts in Python 3.

Requirements:

Write a class in Python 3 named Animal that has the following attributes and methods and is saved in the file Animal.py.

Attributes

__animal_type is a hidden attribute used to indicate the animal’s type. For example: gecko, walrus, tiger, etc.

__name is a hidden attribute used to indicate the animal’s name.

__mood is a hidden attribute used to indicate the animal’s mood. For example: happy, hungry, or sleepy.

Methods

__init__ is to define the three attributes above and assign their default values.

The value of __mood is to be set randomly. Generate a random number between 1 and 3. Then:

If the number is 1, the __mood attribute is to be set to a value of happy.
If the number is 2, the __mood attribute is to be set to a value of hungry.
If the number is 3, the __mood attribute is to be set to a value of sleepy.

get_animal_type should return the value of the __animal_type field.

get_name should return the value of the __name field.

check_mood should return the value of the __mood field.

Animal Generator Program

Once you have created the Animal class, create another Python file called animalGenerator.py. This program is to use Animal.py as a module.

In animalGenerator.py, prompt the user to enter the name and type of an animal. Create a new Animal object instance to store this data. Then, ask the user if they would like to repeat the process. They should be able to create as many Animal object instances as they would like.

After the user is done creating animals, the program is to use the object’s accessor methods (get_animal_type, get_name, and check_mood) to retrieve the name, type, and mood of each animal. This information is to be formatted and displayed as shown in the sample program output below.

Welcome to the animal generator!
This program creates Animal objects.

What type of animal would you like to create? Gecko
What is the animal’s name? Gordon

Would you like to add more animals (y/n)? y

What type of animal would you like to create? Walrus
What is the animal’s name? Wally

Would you like to add more animals (y/n)? y

What type of animal would you like to create? Tiger
What is the animal’s name? Truman

Would you like to add more animals (y/n)? n

Animal List:
Gordon the Gecko is hungry
Wally the Walrus is sleepy
Truman the Tiger is hungry

Testing

Run the program you write and verify that the information entered matches the information displayed and that the input prompts and output utilize the format specification provided.

PLEASE COPY DOWN CODE WITH INDENTATIONS :)

In: Computer Science

IN C++ The Quadratic equation is used to solve for the variable x where the function...

IN C++

The Quadratic equation is used to solve for the variable x where the function evaluates to zero. However there is actually two answers returned by the quadratic equation. Can we solve for the quadratic equation using just one call to a function you write?

Hint : create a function that does not 'return' anything. Takes three parameters a,b,c as double.s  

And had two more parameters that are passed by reference to two doubles that are the two answers from the quadratic equation.  

Look on line or in your old math books to who that you tested this with at least three test cases.

this is my code so far I don't know how I should do the next function or if i should just call it in the main already.

#include <iostream>

#include <cmath>

#include <math.h>

using namespace std;

void Quad (double a, double b, double c, double &plusValue, double &minusValue)

{

plusValue = (-b + sqrt(b * b - 4 * a * c)) / (2 *a);

minusValue = (-b - sqrt(b * b - 4 * a * c)) / (2 *a);

}

void Quad(double a, double b, double c, double minus, double plus)

{

}

int main()

{

}

In: Computer Science

Compute the bits number 15, 26, 49, and 61 of the output L1 and R1 of...

Compute the bits number 15, 26, 49, and 61 of the output L1 and R1 of the first round of DES encryption, assuming that the input plaintext block consists of the sequence F0F0F0F0F0F0F0F0, and the key consists of all zeros. Use the S-Box Below

0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
00 14 4 13 1 2 15 11 8 3 10 6 12 5 9 0 7
01 0 15 7 4 14 2 13 1 10 6 12 11 9 5 3 8
10 4 1 14 8 13 6 2 11 15 12 9 7 3 10 5 0
11 15 12 8 2 4 9 1 7 5 11 3 4 10 0 6 13

In: Computer Science

IN C++ Using newton's method, Please create a SqRoot function. DO NOT USE sqrt ( )...

IN C++

Using newton's method, Please create a SqRoot function.

DO NOT USE sqrt ( ) , If you do I will give you zero points period.  

So create a function that takes a double and returns a double that is the square root of the number.

You must decide what number to start the calculations with,

You must decide how and when to stop computing.

For this exercise you must tell me ( use comments in your code: /* */, etc. )

There is not 'correct' answer but if you do not write and address these questions you will get a very low score.

A) how you chose the initial estimate and why , or if it is important

B) How you decided on how to end the cycles of calculation and why

C) Tell me about some of your test cases and what you learned from them.

Here is the formula is psudo C++ Code:

// A = approximation of the Square Root

// Num = number that we want to find the square root of.

// A_prime is the updated value of a after the formula

A_prime = ( ( N / A ) + A ) / 2.0;

In: Computer Science

Using string functions and all other programming features discussed in the class, write a program that...

Using string functions and all other programming features discussed in the class, write a program that will prompt a user to input their name (first and last). Ex: Please enter your first and last name: John Doe Then, output the string. Next, prompt the user to input their nickname. Ex: Enter your nickname: Rowdy Then modify the name string to consist of the person’s last name comma, nickname (backwards, in all caps, enclosed in double quotes) and first name. Then output the modified string. Ex: Doe, “YDWOR” John Bonus (+10) Output first and last name alternating every two characters: John Doe Ex: JoDohne Tim Wheaterton Ex: TiWhmeaterton NOTE: This program should loop, prompting the user to decide whether or not he or she wishes to enter another name. Ex: Do you wish to enter another name(y/n)?

comment program must have getline and concatenation also in c++

In: Computer Science

please complete the following program in c++: In this homework assignment you will modify the program...

please complete the following program in c++:


In this homework assignment you will modify the program you have developed in Homework Assignment

1 by implementing the following:

1- Your program will ask the user to choose to either Compute and Display Surface Areas of Hemispheres and their Average (Choice 1) or to Compute and Display Volumes of Hemispheres and their Average (Choice 2). The program will only perform the chosen operation. (Hint: use a character variable to read the character 1 or 2 to safeguard against improper entries)

2- Your program will ask the user to specify how many Hemispheres’ Surface Areas or Volumes they would like to be computed; your program then will prompt for and read as many input information as needed based on how many Hemispheres’ Surface Areas or Volumes the user want to be computed. The program will then compute and display the Surface Areas or Volumes, and their average. The results must be clearly labeled with proper units and format (same format as specified in Homework Assignment 1) – See Sample Run below.

3- Once the results are displayed, the program must ask its users if they want to compute more Hemispheres’ Surface Areas or Volumes (Enter Y or y to Run the Hemisphere Surface Area / Volume Calculator) or if they want to quit (Enter N or n to Quit). If the users want to compute more Hemispheres’ Surface Areas or Volumes the program will repeat until the users quit.

Note:

For modifications 1 and 3 above when the users enter anything other than 1 or 2 for part 1, or anything other Y/y or N/n for part 3 then they will repeatedly receive an error message prompting them to enter a proper value until they enter such a value.

Similarly, for modification 2, the users must enter 1 or more Hemisphere information to be computed otherwise they should be repeatedly prompted with an error message until they provide a valid entry. Also, for input information (Hemisphere Diameter) the input must be greater than or equal to zero, otherwise the user will receive an error message repeatedly until they enter proper values.

Do NOT use any programming statements and/or techniques that have not been covered in this class (i.e., functions, classes, arrays, pointers ... etc.)

Sample Run:

********** Welcome to The Hemisphere Surface Area / Volume Calculator **********

Enter 1 to Calculate Surface Area of Hemispheres
Enter 2 to Calculate Volume of Hemispheres
1┘
How Many Hemispheres’ Surface Areas Would You Like to Calculate? -3┘

The Number of Hemispheres Must be One or More!

How Many Hemispheres’ Surface Areas Would You Like to Calculate? 0┘

The Number of Areas Must be One or More!
How Many Hemispheres’ Surface Areas Would You Like to Calculate? 3┘

Enter the Diameter for Hemisphere 1 in meters: 5┘

The Surface Area of the Hemisphere with Diameter: 5.000 meters is: 58.905 meters^2

Enter the Diameter for Hemisphere 2 in meters: -5.8┘

The Diameter Value Must NOT be Negative!
Enter the Diameter for Hemisphere 2 in meters: -1┘
The Diameter Value Must NOT be Negative!
Enter the Diameter for Hemisphere 2 in meters: 7.4┘
The Surface Area of the Hemisphere with Diameter: 7.400 meters is: 129.025 meters^2 Enter the Diameter for Hemisphere 3 in meters: 2.8┘
The Surface Area of the Hemisphere with Diameter: 2.800 meters is: 18.473 meters^2 The Average Surface Area for All 3 Hemispheres is 68.801 meters^2

Would you Like to Run the The Hemisphere Surface Area / Volume Calculator again?
Enter Y or y For YES or N or n For NO: r┘
Enter Y or y For YES or N or n For NO: 4┘
Enter Y or y For YES or N or n For NO: Y┘
Enter 1 to Calculate Surface Area of Hemispheres
Enter 2 to Calculate Volume of Hemispheres
5┘
Enter 1 to Calculate Surface Area of Hemispheres
Enter 2 to Calculate Volume of Hemispheres
9┘

Enter 1 to Calculate Surface Area of Hemispheres
Enter 2 to Calculate Volume of Hemispheres
2┘
How Many Hemispheres’ Volumes Would You Like to Calculate? 3┘Enter the Diameter for Hemisphere 1 in meters:-2┘

The Diameter Value Must NOT be Negative!
Enter the Diameter for Hemisphere 1 in meters: 5┘
The Volume of the Hemisphere with Diameter: 5.000 meters is: 32.725 meters^3 Enter the Diameter for Hemisphere 2 in meters: 7.4┘
The Volume of the Hemisphere with Diameter: 7.400 meters is: 106.087 meters^3 Enter the Diameter for Hemisphere 3 in meters: 2.8┘
The Volume of the Hemisphere with Diameter: 2.800 meters is: 5.747 meters^3 The Average Volume for All 3 Hemispheres is 48.186 meters^3

Would you Like to Run the The Hemisphere Surface Area / Volume Calculator again?
Enter Y or y For YES or N or n For NO: N┘
Thank You ... Good Bye!

In: Computer Science

IN C++ Create a single function. and pass in a integer which is the the planet...

IN C++
Create a single function. and pass in a integer which is the the planet number. 1 will be Mercury and 9 will be Pluto, etc. Return via reference the planet name, planet weight ( or mass ) in kg, and the distance from the sun in km. Please create a nice looking table with headings and show the 9 planets.

Here is an example of the first 4 planets in the table. You will need to add in the next 5.

Planet Planet Planet
Name Mass (kg) Distance
  to the
   Sun (km)

Mercury 3.3e+23 57910
Venus 4.87e+24 108200
Earth 5.98e+24 149600
Mars 6.42e+23 227940

In: Computer Science

Write a C Program to finish the following requirements: Convert a double number to its hexadecimal...

Write a C Program to finish the following requirements: Convert a double number to its hexadecimal form

1. The double number x is located between 0 and 1000(0<=x<=1000),e.g.678.345

2.The double number with the hexadecimal form contains 6 significant digits. e.g." 5D.32FA45".

3.The double number with the hexadecimal form is represented by a string(or a character array), e.g."5D.32FA45".

Please write as simple as possible because I am a freshman in C!

Thanks!

In: Computer Science

8. Suppose you saw a ciphertext stream that you know was encrypted with DES-CBC, and you...

8. Suppose you saw a ciphertext stream that you know was encrypted with DES-CBC, and you observed that C3 = C6 (i.e., the third and sixth output ciphertext blocks were the same). What information does this tell you about the plaintext input?

In: Computer Science

Write a java program to convert a positive integer value to a roman number. Your program...

Write a java program to convert a positive integer value to a roman number. Your program should print a description, prompt them for how many numbers they need to convert and then loop that many times. Each time the program needs to prompt for a number and output the equivalent roman numeral. If the user enters a number less than 1 then output an error message. See sample output below:

****************************************************

* Welcome to the Roman Numeral Converter!          *

* You can use this tool to convert any decimal     *

* value into a Roman Numeral. To get started       *

* please enter the how many decimal numbers you    *

* need to convert.                                 *

****************************************************

How many numbers do you have to convert? 5

Please enter the number that you would like to convert: 58

58 as a Roman Numeral is LVIII

Please enter the number that you would like to convert: 2019

2019 as a Roman Numeral is MMXIX

Please enter the number that you would like to convert: -85

Sorry, but -85 is not a positive number and cannot be converted

Please enter the number that you would like to convert: 7

7 as a Roman Numeral is VII

Please enter the number that you would like to convert: 23

23 as a Roman Numeral is XXIII

Requirements

You must have a helper class RomanHelper with the following methods. It will be up to you to determine the return type and parameters required for each:

  • description: Print the program description to the screen
  • getRoman: Converts an integer to a Roman Numeral. No output to the screen should happen here.

Also, you will need to have a driver class RomanDriver with the following methods:

  • main: Construct a Scanner object and call the runProgram method.
  • runProgram: Prompt the user how many times they would like to run the program and loop that many times calling the getNextNumber method.
  • getNextNumber: Prompt for a number to convert and output the result or an error message if the number isn’t positive.

You may add however many additional methods that you would like.

In: Computer Science

The base station height is 40 m, the carrier wave frequency is 900 MHz, the mobile...

The base station height is 40 m, the carrier wave frequency is 900 MHz, the mobile station height is 2 m, and the communication distance is 15 km.
1.Calculate the path loss in a big city by the Hata model.
2.If the frequency become 1800 MHz, calculate the path loss in the downtown of a big city by the Hata extension model.

In: Computer Science