Questions
List the 3 strategies for Cyberethics dilemmas

List the 3 strategies for Cyberethics dilemmas

In: Computer Science

SARS-CoV-2 genomic variations: Samples of this virus from various geographical locations display variations in the genomic...

  1. SARS-CoV-2 genomic variations: Samples of this virus from various geographical locations display variations in the genomic sequences. There are several hundred such sequences at GenBank, as linked in the References. Here are two examples:    Wuhan-Hu-1: https://www.ncbi.nlm.nih.gov/nuccore/NC_045512.2?report=GenBank    U.S.A.: https://www.ncbi.nlm.nih.gov/nuccore/MN985325.1
    • Download the sequences Wuhan-Hu-1 and U.S.A in FASTA format.
    • Write a Python program that reads these files and saves the sequences as strings.
    • Your program should compare the nucleotide sequences and print out the the locations (indecies) where they differ and the differences. Note that these sequences are of different lengths; compare them only upto the length of the shorter one.

In: Computer Science

Create a java program that allows people to buy tickets to a concert. Using java create...

Create a java program that allows people to buy tickets to a concert. Using java create a program that asks for the users name, and if they want an adult or teen ticket. As long as the user wants to purchase a ticket the program with "yes" the program will continue. When the user inputs "no" the program will output the customer name, total amount of tickets, and the total price.

The adult ticket is $60 and the child ticket is $30.

In: Computer Science

Hi, i would like to know how to get information of an 'image' and put it...

Hi, i would like to know how to get information of an 'image' and put it on 'C programming'

I would also like to know how to compress the image information and decompress it.

In: Computer Science

I'm trying to convert between different number representations in C++ , I have the prototype but...

I'm trying to convert between different number representations in C++ , I have the prototype but im not sure what do do from here

bool convert2(int & n, const string & bits);
bits should have size exactly 5, and each char of bits should be '0' or '1'; otherwise
return false.
If bits is ok, set n to the number that bits represents as a 2's complement number and
return true.
For example, convertU(n, "10011") should set n to -13 and return true.

In: Computer Science

What is the broadband communication system and how broadband network support quality of service (Qos)? no...

What is the broadband communication system and how broadband network support quality of service (Qos)? no hand writing plz

In: Computer Science

In a well-developed inital post, walk your classmates through the process as you conducted your search....

In a well-developed inital post, walk your classmates through the process as you conducted your search.

Then explain what insights you has as you reviewed the reference page of your source.


In a well-developed post, what is the process of conducting a research on a specific topic.

In: Computer Science

How many key comparisons are made by mergesort in the a. Best case? b. Worst Case?

How many key comparisons are made by mergesort in the

a. Best case?

b. Worst Case?

In: Computer Science

Why would you want to use grouping in a query? Explain.

Why would you want to use grouping in a query? Explain.

In: Computer Science

Use a For loop to compute the sum of all the odd numbers from 1 through...

  1. Use a For loop to compute the sum of all the odd numbers from 1 through 99. Your result should be labeled, and the value should be 2500.
  2. Print your name 7 times using a While loop.
  3. String dogNames[ ] = {"Sam","Buster","Fido","Patches","Gromit","Flicka"};
    Using the array defined here, print the values of the array vertically and horizontally using one For-Each loop.
  4. Reverse the logic for zyBook Challenge activity 4.6.1 (Nested loops: Indent text) so that the first line is indented userNum number of spaces and the subsequent lines are each indented one less space until the last value is not indented at all (‘s’ indicates one space):
    sssss5
    ssss4
    sss3
    ss2
    s1
    0
  5. String method practice:
    • Create a String variable that contains your full name
    • Repeat the following steps 5 times (note you will use predefined String methods to modify your name as indicated):
      • Generate a random number between 1 and 4
      • If number is 1, display your name in all upper case
      • If number is 2, display your name in all lower case
      • If number is 3, replace your first name with “Three” and display your name
      • If number is 4, display the character at index 4

In: Computer Science

Create a class named TestLease whose main() method declares four Lease objects. Call a getData() method...

Create a class named TestLease whose main() method declares four Lease objects. Call a getData() method three times. Within the method, prompt a user for values for each field for a Lease, and return a Lease object to the main() method where it is assigned to one of main()’s Lease objects.

Do not prompt the user for values for the fourth Lease object, but let it continue to hold the default values. Then, in main(), pass one of the Lease objects to a showValues() method that displays the data.

Then call the addPetFee() method using the passed Lease object and confirm that the fee explanation statement is displayed. Next, call the showValues() method for the Lease object again and confirm that the pet fee has been added to the rent.

Finally, call the showValues() method with each of the other three objects; confirm that two hold the values you supplied as input and one holds the constructor default values. Save the application as TestLease.java.

In: Computer Science

SQL This assignment aligns with the following objectives: Create a relational database containing at least three...

SQL

This assignment aligns with the following objectives:

  • Create a relational database containing at least three tables
  • Populate the database using the INSERT command
  • Create integrity constraints on the tables created

Deli has hired you as a consultant to design a database for the deli. They have provided you with the following information:

  • Every employee has a social security number, name, salary, and date of hire.
  • The deli is organized into several departments. Each department has a unique name.
  • Each department has exactly one employee as its manager but an employee may manage more than one department. The database should record the date when the most recent manager of each dept. was appointed in that position.
  • very employee must be assigned a department.
  • Every employee has a supervisor who need not be the manager of any department.

The deli has these four departments:

  1. hot foods
  2. sandwich
  3. snacks
  4. beverage

You are provided the following additional information, which should be inserted into the database using SQL queries (not using any GUI interfaces, such as PhpMyAdmin):

  • Jim Jones (ssn: 134-56-8877, salary: $28,000, dept:hot foods, date of hire: 1/26/2015, supervisor: Rita Bita)
  • Rita Bita (ssn: 138-56-8050, salary: $32,000, dept: beverages, date of hire: 2/15/2017, supervisor: Holly Dew. manages: beverages, starting 3/18/2018)
  • Holly Dew (ssn: 334-55-8877, salary: $29,000, dept:sandwich, date of hire: 1/15/2016, supervisor: Pablo Escobar)
  • Pablo Escobar (ssn: 666-56-6666, salary: $48,000, dept:snacks, date of hire: 1/26/2014, supervisor: Rita Bita, manages: snacks, starting 5/5/2015)
  • Al Capone (ssn: 888-91-8870, salary: $40,000, dept:hot foods, date of hire: 1/26/2015, supervisor: Pablo Escobar, manages: hot foods, starting 1/1/2016)
  • Bonnie Clyde (ssn: 111-22-3333, salary: $42,000, dept: sandwiches, date of hire: 4/7/2015, supervisor: Al Capone, manages: sandwich, starting 1/1/2016)

Helpful Hints:

Please do not assume that the database should be structured in the way this data is provided. Your database should be structured such that constraints such as “Each dept. has exactly one employee as a manager” can be enforced.

There should not be a separate table for Deli – the entire database represents the deli. There should be a table for each major entity mentioned in the specifications. Relations between entities (such as, who works in which department) should be their own tables. Primary keys for each table should be chosen to enforce constraints.

In: Computer Science

There are four basic functions in math. They are addition, subtraction, multiplication and division. Children in...

There are four basic functions in math. They are addition, subtraction, multiplication and division. Children in 1st grade focus on addition. They are required to memorize their addition facts from 1 to 12.

Create a function that prompts the user to enter a number between 1 and 12. Then display - using the input supplied - the addition and subtraction math facts for that number from 1 to 12 for the number entered. The output should be the results of the mathematical calculations.

See below example below:

The user enters "5" as their input. Below is the expected output.

Addition Math Facts for "5"

5 + 1 = 6

5 +2 = 7

...

5 + 11 = 16

5 + 12 = 17

Subtraction Math Facts for "5"

12 - 5 =

11 - 5 =

10 - 5 =

...

7 - 5 = 2

6 - 5 = 1

5 - 5 = 0

* Please note the subtraction facts should stop at the input number - the input number because 1st graders are not prepared to learn about negative numbers.  

If the user enters a number not between 1 and 12, open an alert window stating that it is an invalid number, and prompt them to enter a number again meeting the criteria. Finally, if the number entered is bellow 6, make the background color blue and the text white, if the number is above 6 make the background color red and the text yellow, and if the number is six then make the background color white and the text black.

* must use HTML and java script. Must make program in brackets.

HINT: use a variable and a window.prompt() to store what the person enters, a conditional statement, and string concatenation using HTML .

In: Computer Science

Concert the following 32-bit floating point number (IEEE single precision) into their decimal representation. 1100 0101...

Concert the following 32-bit floating point number (IEEE single precision) into their decimal representation.

1100 0101 0001 1111 1000 0000 0000 0000 (ANSW: -2552.0)

Please show all work

In: Computer Science

How cold is it outside? The temperature alone is not enough to provide the answer. Other...

How cold is it outside? The temperature alone is not enough to provide the answer. Other factors including wind speed, relative humidity, and sunshine play important roles in determining coldness outside. In 2001, the National Weather Service (NWS) implemented the new wind-chill temperature to measure the coldness using temperature and wind speed. The formula is:

twc = 35.74 + 0.6215ta - 35.75v0.16 + 0.4275tav0.16

t w c = 3.74 + 0.6215 t a − 35.75 v 0.16 + 0.4275 t a v 0.16

where ta is the outside temperature measured in degrees Fahrenheit, v is the speed measured in miles per hour, and twc is the wind-chill temperature. The formula cannot be used for wind speeds below 2mph or temperatures below -58°F or above 41°F.

Write a program that prompts the user to enter a temperature between -58°F and 41°F and a wind speed greater than or equal to 2 then displays the wind-chill temperature. Use Math.pow(a, b) to compute v0.16. Your class must be named Windchill. Here is a sample run:

Enter a temperature between -58°F and 41°F: 5.3
Enter the wind speed (>= 2) in miles per hour: 6
The wind chill index is -5.567068455881625

This is what I made:

import java.util.Scanner;
public class Windchill
{
public static void main(String[]args)
{
//create Scanner
Scanner s=new Scanner(System.in);
double ta= 5.3;
int v= 6;
double v2= Math.pow(v,.16);
double Windchill= 35.74 + 0.6215 * ta-35.75 * v2+0.4275 * ta * v2;
//get temperature in Fahrenheit
System.out.println("Enter a temperature between -58°F and 41°F:" +" "+ ta);
//get wind speed
System.out.println("Enter the wind speed (>= 2) in miles per hour"+" "+ v);
//get windchill index
System.out.println("The windchill index is"+" "+ Windchill);
}
}

My teacher told me: "your program needs to let the user enter the temperature and wind speed at the keyboard."

How do I fix this? please help.

In: Computer Science