Java homework question:
Explain how class (static) variables and methods differ from their instance counterparts. Give an example of a class that contains at least one class variable and at least one class method. Explain why using a class variable and method rather than an instance variable and method would be the correct choice in the example you select.
In: Computer Science
def DMStoDD(degree, minutes, seconds):
dd = abs(degree) + abs(minutes)/60 + abs(seconds)/3600
if degree > 0:
return dd
else:
return -dd
print(DMStoDD(-30, 30, 00))
In this script, add a main program that collects DD or DMS input from the user, then converts it to the other form and reports the converted value. Directions: The main program needs to gather a string from the keyboard using input() and detect whether it is DD or DMS (Hint: use the split function). Then it must pass the proper DD or DMS values to the functions above to convert. The DMS input is separated by comma and contains no space. The degree field could be negative to represent a negative value. (E.g. 43,4,23 or -43,4,23)
In: Computer Science
Discuss by no more than a paragraph the following terms:
ATM
VLANS
Wireless Lans
NATS
Point-To-Point WANS
In: Computer Science
The Cisco’s layered switching includes three switching layers. What is the purpose of each layer? What switches are typically used in each layer?
In: Computer Science
//Your Last Name
#ifndef FUNCTIONS_H
#define FUNCTIONS_H
#include <fstream>
#include <iostream>
#include <string>
using namespace std;
/*reads from a file
and prints every item to the screen*/
// file contains sets of
//int
//string
//Don't forget to use infile.ignore() between << and getline
//ifstream must be passed by reference
void readAndPrint(ifstream &infile);
//uses a for loop to return the base to the exponent
//e.g. 2^4 = 16
// this fuction should read data.txt file
long power(long base, long exponent);
#endif
1
Alpha
2
Beta
3
Gamma
In: Computer Science
I hope this question is simple. Please read the statement below and answer whether it is True or False. Please add some explanation as to support the answer. Thank you.
The combination of convolutional layer and pooling layer achieves partial invariance to translations in a convolutional neural network.
(TRUE / FALSE)
In: Computer Science
Write a feasibility report evaluating the feasibility of two alternatives to the following situation. Explain your criteria clearly, evaluate each alternative, and recommend the best course of action. Is it feasible for your school to offer free space for student web pages? Will content be monitored
In: Computer Science
Define the following time series components: ● Trend ● Seasonality ● Cyclic ● Random
In: Computer Science
As the Big Data ecosystem takes shape, there are four main groups of players within this interconnected web. List and explain those groups.
In: Computer Science
describe feathure,benefits,costs,and file size limit for Drop box cloud
In: Computer Science
MUST BE PYTHON 3
Instructions: The following programming problem can be solved by a program that performs three basic tasks (Input Data, Process Data, Output Results) along with selection and repetition coding techniques.
Problem Statement
A finance company provides loans for motorcycles at different rates depending on how much the total loan amount is and how many payments will be made on the loan. Using the information in the table below, write a program that will calculate the monthly payment based on user inputs of loan amount and number of monthly payments. The user will NOT input the percentage rate, as this will be determined by the program code based on user input of loan amount and number of payments. The output will display the loan amount, the number of payments, monthly payments and the interest rate of the loan.
| Amount of Loan | # of Payments | Interest Rate Applied |
|---|---|---|
| $500 - $ 2,500 | 6-12 | 8% |
| 13-36 | 10% | |
| 37-48 | 12% | |
| $2,501 - $10,000 | 6-12 | 7% |
| 13-36 | 8% | |
| 37-48 | 6% | |
| $10,001 or above | 6-12 | 5% |
| 13-36 | 6% | |
| 37-48 | 7% |
If the user enters data that is "out of bounds" (loan amount/number
of payments below or above minimum/maximum in the table), display
an error message explaining the situation to the user and ask for
the loan amount or number of payments (whichever one was out of
bounds) again. Message Example: "We do not finance loans below
$500."
You MUST use Modular Programming techniques by using functions in your program. Your "main" module should not be very large.
Other Requirements:
Submission Instructions:
In: Computer Science
A vacation rental property management company must file a monthly sales tax report listing the total sales for the month and the amount of state and city sales tax collected. The state sales tax rate is 6 percent and the local city sales tax rate is 9 percent. Write a program (using functions) that asks the user to enter the total sales for the month. From this figure, the application should calculate and display the following:
The amount of local city sales tax
The amount of state sales tax
The total sales tax (city plus state)
Please help
In: Computer Science
USING JAVA
Almost sort the array using Merge Sort. Perform Merge Sort as usual except that during the final merge, it is not necessary to merge all n elements, but only the elements in positions 1 to k.
In: Computer Science
Express each of these statements using quantifiers. Then form the negation of the statement sothat no negation is to the left of a quantifier. Next, express the negation in simple English. In eachcase, identify the domain and specify the predicates.
•No one has lost more than one thousand dollars playing the lottery.
•There is a student in this class who has chatted with exactly one other student.
•No student in this class has sent e-mail to exactly two other students in this class.
• Some student has solved every exercise in this book.
•No student has solved at least one exercise in every section of this book.
In: Computer Science
Write a Java program to do the following:
Specifics:
Write an application that prompts a user for two integers and displays every integer between them. Display a message if there are no integers between the entered values.
Make sure the program works regardless of which entered value is larger. Save the file as InBetween.java.
Don’t forget to create the application/project InBetweenTest.java Class that has the main method and an object to use the InBetween class.
In: Computer Science