Questions
Need to able to solve this method WITHOUT using ANY java libraries. ------------------------------ import java.util.Scanner; public...

Need to able to solve this method WITHOUT using ANY java libraries.

------------------------------

import java.util.Scanner;

public class nthroot {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
  
// Read n (for taking the nth root)
int num = Integer.parseInt(sc.nextLine());
  
// Read number to take the nth root of
int number = Integer.parseInt(sc.nextLine());
  
// Read the desired precision
int precision = Integer.parseInt(sc.nextLine());
  
// Print the answer
System.out.println(findnthRoot(number, num, precision));
}
  
private static String findnthRoot(int number, int num, int precision) {
//code here
}
}

In: Computer Science

Insert the following values into an initially empty B+ tree with parameter d=3    17, 11, 50,...

Insert the following values into an initially empty B+ tree with parameter d=3    17, 11, 50, 22, 5, 35, 42, 60, 15, 30, 25, 27, 37, 40, 20.

In: Computer Science

Consider sending a large file of F bits from Host A to Host B. There are...

Consider sending a large file of F bits from Host A to Host B. There are three links (and two switches) between A and B, and the links are uncongested (that is, no queuing delays). Host A segments the file into segments of S bits each and adds 80 bits of header to each segment, forming packets of L=80+ S bits. Each link has a transmission rate of R bps. The link propagation delay, let's call it d, was not negligible. Find the value of S that minimizes the delay of moving the file from Host A to Host B.

In: Computer Science

Prove the following set identity using logical equivalences: A ∪ (B - A) = A ∪...

Prove the following set identity using logical equivalences: A ∪ (B - A) = A ∪ B.\

(Hint: Insert a table with 2 columns and 8 rows.)

In: Computer Science

Creating a Pattern Hierarchy for an Existing Pattern Catalog Over the past couple of decades, software...

Creating a Pattern Hierarchy for an Existing Pattern Catalog

Over the past couple of decades, software engineers have recognized the value of moving up from code reuse to the reuse of higher-level items. Design patterns have been recognized as a valuable means of reuse, and this has led to the development of a great number of patterns over the years. With so many design patterns being recognized and developed, finding the right pattern to use or customize can be a difficult task without some method for organizing them.
Software engineering typically establishes a design pattern hierarchy by grouping design patterns and associating them to the related problem space (i.e. structural, behavioral, etc.). A similar hierarchy applies to architectural patterns. By grouping and associating patterns in such a way, modelers can create a lattice of patterns referred to as a pattern hierarchy.
To put this concept to work, review the “Catalog of Patterns of Enterprise Application Architecture” (or EAA Catalog). This catalog of patterns is organized functionally. Familiarize yourself with the differences between architectural styles, architectural patterns, and design patterns.
In this Assignment, addresses the following:

Create a pattern hierarchy that meaningfully organizes the EAA Catalog of patterns using one of the architectural styles from this week’s readings. Create categories and link them together in the form of a logical hierarchy. Include at least one pattern from each category in Fowler’s catalog.

Explain the organizing principles you employed in your pattern hierarchy. The EAA Catalog is organized functionally and not in a hierarchy. The Design Pattern Catalog has about 50 different patterns. They are now organized into 11 pattern types based on functionality. You need to use a different organizing principle.

In: Computer Science

ising software pyton 3.5 Weight Lifting Make a dictionary where the keys are the names of...

ising software pyton 3.5

Weight Lifting

Make a dictionary where the keys are the names of weight lifting exercises, and the values are the number of times you did that exercise.(At least 5 exercises,be creative. Nobody should have same values)

Use a for loop to print out a series of statements such as "I did 10 bench presses".

Modify one of the values in your dictionary, to represent doing more of that exercise.

Use a for loop to print out a series of statements such as "I did 10 bench presses".

Add a new key-value pair to your dictionary.
Use a for loop to print out a series of statements such as "I did 10 bench presses".

Remove one of the key-value pairs from your dictionary.

Use a for loop to print out a series of statements such as "I did 10 bench presses".

Use a function to do all of the looping and printing in this problem.

In: Computer Science

In some older homes that do not have a central heating and air conditioning system, smaller...

In some older homes that do not have a central heating and air conditioning system, smaller air conditioning units made to fit inside of a window and cool a single room are used as an alternative way to cool the home.

Depending on the size of the room and the amount of shade that the room has, different sizes of air conditioning units must be used in order to be able to properly cool the room. The unit of measure for the amount of cooling that an air conditioner unit can provide is the BTU (British Thermal Unit) per hour.

Code a program in Java that will calculate the correct size of air conditioner for a specific room size using the instructions below.

Step 1:

Ask the user to enter the length of their room (in feet). Should not be less than 5

Step 2:

Ask the user to enter the width of their room (in feet). Should not be less than 5

Step 3:

Calculate the area (in square feet) of the room by multiplying the length and the width of the room.

For example, if a room is 20 feet wide by 24 feet long, then its area is 20 * 24 = 480 square feet

Step 4:

Display a menu that asks the user how much shade the room gets. The menu should have the following options:

  1. Little Shade
  2. Moderate Shade
  3. Abundant Shade

Step 5:

Determine the capacity of the air conditioning unit that is needed for a moderately shaded room by using the information in the table below.

Room Size (Square Feet)

Air Conditioner Capacity (in BTUs per Hour)

Under 250

5,500

From 250 to 500

10,000

Over 500 to Under 1000

17,500

1000 or Greater

24,000

If the room has little shade, then the BTU capacity should be increased by 15% since the air conditioning unit must be able to produce extra cooling.

If the room has abundant shade, then the BTU capacity should be decreased by 10% since the air conditioning unit does not need to work as hard to cool a shaded room.

First, move any named constants from inside of your main method to above the main method and make them static by adding the “static” keyword in front of them. For example, “static final double TAX_RATE = .075;”. By doing this, all of the static methods you will create below will have access to your named constants so that you do not need to declare them locally in each method.

In addition to the main method, your code must include the following static methods:

Method 1 - displayTitle

A void method that displays the title

Method 2 – calculateArea

A method that accepts the length and width of a room as arguments, and calculates and returns the area of the room

Method 3 – translateShadeChoiceToString

A method that accepts an integer value (1, 2, or 3) that denotes the amount of shade. The method should return the appropriate String representation of the shade. For example, if the method is passed an integer value of 1, it should return a String with a value of “Little”.

Method 4 - calculateBTUsPerHour

A method that accepts the area of a room and the amount of shade a room gets and returns the BTUs per Hour that are needed to adequately cool that room.

Method 5 - displayRoomInformation

A void method that prints out the information for a single room. The output should look exactly the same as the output for Project 2. The method should accept only the arguments necessary to print out the information.

At the end of the output, in the main method, the program should display the number of rooms that have been entered.

Sample Input and Output (user input is in bold) - The output of your program should match the formatting and spacing exactly as shown

Please enter the name of the room: Guest Bedroom
Please enter the length of the room (in feet): 15.5
Please enter the width of the room (in feet): 10
What is the amount of shade that this room receives?

  1. Little Shade
  2. Moderate Shade
  3. Abundant Shade

Please select from the options above: 3

Air Conditioning Window Unit Cooling Capacity
Room Name: Guest Bedroom
Room Area (in square feet): 155.0

In: Computer Science

Write a Python program to manage league matches. Different teams can participate in a league. A...

Write a Python program to manage league matches. Different teams can participate in a league. A player belongs to a team and a team can play many games in a league. For each team, the league wants to track the name of the team and the number of players in each team. The league also wants to track the number of games the team has played, and the total numbers of points scored across all games played. During each game, a team can score no points or a number of points represented by a whole number. Create a separate module to test the classes created with at-least 5 teams and display the matches played and the respective scores.

1 league

3 teams

5 players

3 game

In: Computer Science

In C# When the user enters an invalid value, ask the user to repeatedly enter the...

In C#

When the user enters an invalid value, ask the user to repeatedly enter the value until a valid value has been entered. Gender must be ‘M’ or ‘F’. Residency must be ‘I’ or ‘O’.

Existing Code:

using System;

public class Student

{

  public int credit;

  public String firstname, lastname, gender, residency, edate;

  public void input()

  {

    Console.WriteLine("\nWelcome to the Continental University Registration System!");

Console.WriteLine("\nEnter data about a student");

Console.Write("First Name: ");

firstname = Console.ReadLine();

Console.Write("Last Name: ");

lastname = Console.ReadLine();

Console.Write("Gender (M/F): ");

gender = Console.ReadLine();

Console.Write("Residency (I/O): ");

residency = Console.ReadLine();

Console.Write("Credits Taking: ");

    credit = Convert.ToInt32(Console.ReadLine());

Console.Write("Entrance Date: ");

edate = Console.ReadLine();

    

  }

}

In: Computer Science

Write a pseudocode for the following code: /*every item has a name and a cost */...

Write a pseudocode for the following code:

/*every item has a name and a cost */
public class Item {

   private String name;
   private double cost;
   public Item(String name, double cost) {
       this.name = name;
       this.cost = cost;
   }
   public String getName() {
       return name;
   }
   public void setName(String name) {
       this.name = name;
   }
   public double getCost() {
       return cost;
   }
   public void setCost(double cost) {
       this.cost = cost;
   }   
}

public enum PaymentType {
   CASH,
   DEBIT_CARD,
   CREDIT_CARD,
   CHECK
}

/*every payment has a type and an amount*/

public class Payment {
   private double amount;
   private PaymentType paymentType;
   public Payment(double amount, PaymentType paymentType) {
       this.amount = amount;
       this.paymentType = paymentType;
   }
   public double getAmount() {
       return amount;
   }
   public void setAmount(double amount) {
       this.amount = amount;
   }
   public PaymentType getPaymentType() {
       return paymentType;
   }
   public void setPaymentType(PaymentType paymentType) {
       this.paymentType = paymentType;
   }   

In: Computer Science

COURSE : IT System Integration “The software design/development team and test engineers need to develop a...

COURSE : IT System Integration

“The software design/development team and test engineers need to develop a strategy for planning, design, execution, data collection, and test evaluation”. Discuss this statement.

note: NEED A UNIQUE ANSWER AND NO HANDWRITING PLEASE..

THANK YOU

In: Computer Science

CSM Tech Publishing has expanded its network from one subnet to two subnets and is putting...

CSM Tech Publishing has expanded its network from one subnet to two subnets and is putting 200 computers on the new subnet with plans for adding up to 100 more computers over the next few years. Currently, it's using DHCP for the existing subnet and has a scope configured with start address 172.16.1.1 and end address 172.16.1.200 with a prefix length of 24. The DHCP server is in the main distribution facility where the router is placed to route between the subnets. The current DHCP server runs Windows Server 2016, is performing well, and has plenty of unused computing resources (CPU, memory, and so forth). You need to configure DHCP for the new subnet at the lowest cost possible. What do you recommend for adding DHCP services to the new subnet? Propose a DHCP configuration, the scope's start and end addresses, and the prefix length for the new subnet. Please write a short report.

In: Computer Science

You're a consultant for a large enterprise that needs a comprehensive IP addressing and DNS management...

You're a consultant for a large enterprise that needs a comprehensive IP addressing and DNS management solution for its physical and virtual networks. The enterprise has a primary office in Pittsburgh and three branch offices in Los Angeles, New York, and Miami. It has IT support staff only in the branch offices. The enterprise's server specialists are located in Pittsburgh. The IT directory in Pittsburgh wants to offload some of the IPAM management functions to some of the IT staff without giving them broader domain or forest administrative right. Which type of IPAM architecture do you recommend? Which features of IPAM are you likely to recommend using to address the requirements? Write a short report of your results.

In: Computer Science

Could you give me some solving about the following question? question 1 Design a pair of...

Could you give me some solving about the following question?

question 1 Design a pair of UDP  based large file transmission programs using python. Transmitted file size should be over 100mb, Limitations: only os, socket, struct, hashlib, math, tqdm, File check is required after transmission

In: Computer Science

1. Implement the stack abstract data type. Write it as a separate class called Stack. For...

1. Implement the stack abstract data type. Write it as a separate class called Stack. For simplicity the data type to be stored in the stack is String but you can also use generic type.

2. Test your class implementation by calling push() and pop(). If the stack is empty (size equals zero) pop() should return null and print that “stack is empty”. If stack is full (size equals max) push() returns false and prints that “stack is full”.

This needs to be done in Java

In: Computer Science