Your supervisor, Sophia, has recommended the company's mail server or website as the best potential systems to consider. You should review the issues associated with both a mail server and website migration, and then make a decision as to which system that you propose migrating
Week 1 Deliverable:
Write a 1 page executive summary explaining the legacy system that you have chosen to migrate, your reasoning for making that choice, and a brief analysis of the issues that you will need to consider.
In: Computer Science
From the security aspect of client/browser, connecting to a secure web site/server,
In: Computer Science
USING C++
1) Write a program that repeatedly evaluates a n-th order polynomial p(x) = a0 + a1*x + a2*x^2 + ... + an*x^n where n <= 10 The program inputs n, ai, and x from the keyboard and then prints out the corresponding value of p to the screen. The program continues to input new values of n, ai, x and evaluates p until a negative value for n is input, at which point the program stops.
2)Write a program that calculates exp(x) using the Taylor series approximation exp_approx = 1 + x + x^2 / 2! + x^3 / 3! + ... where x and error are input from the keyboard and a sufficient number of series terms are used such that abs( exp_approx - exp(x) ) < error. Hint: Use *= in a loop to calculate x^i and i! and print them out to the screen to verify that your loop is correct before calculating the series approximation.
In: Computer Science
The problem I'm having with this code is that when you choose the 24 month payment plan and hit 2 to print your result is that there are way to many decimal places.
is there a way to resolve this problem? I have tried formatting and can not figure out my setback. Thank you for any help you can give me.
import java.util.ArrayList;
import javax.swing.JOptionPane;
import javax.swing.UIManager;
import javax.swing.ImageIcon;
import java.awt.Color;
class market {
public static void main(String[] args) {
int MenuList;
UIManager UI=new UIManager();
UI.put("OptionPane.background", new Color(255, 0, 0));
UI.put("Panel.background", Color.green);
UI.put("OptionPane.background",Color.yellow);
ImageIcon Aphone = new ImageIcon("Aphone.png");
JOptionPane.showMessageDialog(null,"Pick Your Aphone!","Pat's
Worthless Cellular",JOptionPane.INFORMATION_MESSAGE,Aphone);
String myOrder = "No order currently set"; //if no any item
purchsed then print this message
do{
System.out.println("---MENU---");
//here there are 3 options availabel 1 is for purchase 2 is for
print purchased order 3 is for exit
String[] menu = {"[1]Purchase Phone","[2]print","[3]exit"};
for (int i=0;i<3;i++) { //display 3 options in command
prompt
System.out.println(menu[i]);
}
String MenuString = JOptionPane.showInputDialog(null, "What item
would you like to purchase, choose number: ",
"Pat's Worthless Cellular",
JOptionPane.PLAIN_MESSAGE );
//get selected option
MenuList = Integer.parseInt(MenuString);
double price = 0;
if(MenuList==1) { //if option is 1 then go for purchase
program
System.out.println();
String[] model = {"Aphone1","Aphone2"};
String[] color = {"Red","Black","Green"};
String[] storage = {"64GB","128GB"};
String[] acc = {"Airpods","Cover"};
String[] payment = {"24 Month Payment Plan","Cash"};
myOrder = "";
String.format("%.2f", price);
//here you can choose one by one options first you have to select
model then color then storage then accessories then payment
option
String Model = (String) JOptionPane.showInputDialog(null,"Select
Model", "Welcome " + "!",JOptionPane.QUESTION_MESSAGE, null, model,
"Aphone1");
String Color = (String) JOptionPane.showInputDialog(null,"Select
Color","",JOptionPane.QUESTION_MESSAGE, null, color,
"Black");
String Storage = (String) JOptionPane.showInputDialog(null,"Select
Storage","",JOptionPane.QUESTION_MESSAGE, null, storage,
"64GB");
String Acc = (String) JOptionPane.showInputDialog(null,"Select
Accessories ","",JOptionPane.QUESTION_MESSAGE, null, acc,
"Cover");
String pay = (String) JOptionPane.showInputDialog(null,"Select
payment method","",JOptionPane.QUESTION_MESSAGE, null, payment,
"Cash");
//here it calculate total price of item
if(Model=="Aphone1")
price+=239.99;
else if(Model=="Aphone2")
price+=399.99;
else
price+=0.00;
if(Storage=="64GB")
price+=59.99;
else if(Storage=="128GB")
price+=99.99;
else
price+=0.00;
if(Acc=="Airpods")
price+=199.99;
else if(Acc=="Cover")
price+=39.99;
else
price+=0.00;
if(pay=="Cash")
price+=0.00;
else
price/=24.00;
DecimalFormat dec = new DecimalFormat("%.2f");
//for display a selected options and total price of item
myOrder="Your model is: "+Model+"\nYour Color is: "+Color+"\nYour
Storage is: "+Storage+"\nYour Accessories is: "+Acc+"\nYour Payment
method is: "+pay;
myOrder+="\n\nYour total price is $"+price;
} else if(MenuList==2) { //if option is 2 then and any item is
purchased then print purchased item otherwise print default
message
JOptionPane.showMessageDialog(null,myOrder);
} else if(MenuList==3) {
JOptionPane.showMessageDialog(null,"Exit,Bye"); //if option is 3
selected then exit
} else {
System.out.print("Invalid");
}
}while(MenuList != 3); //it go untill you select option 3
}
}
In: Computer Science
Research the versions of Simple Mail Transfer Protocol (SMTP). How did the evolution of this protocol change in response to the community's needs? Support your rationale.
In: Computer Science
This exercise allows a user to enter the values of two, 3x3 matrices and then select from options including, addition, subtraction, matrix multiplication, and element by element multiplication. You should use numpy.matmul() for matrix multiplication (e.g. np.matmul(a, b) ). The program should computer the appropriate results and return the results, the transpose of the results, the mean of the rows for the results, and the mean of the columns for the results. When entering data you should check that each value is numeric for the matrices. The user interface should continue to run until the user indicates they are ready to exit.
If an inappropriate entry is detected, the program should prompt for a correct value and continue to do so until a correct value is entered. Hints: 1. Use numpy and associated functionality 2. Create and use functions as often as possible 3. Use comments to document your code 4. Both integers and float values are acceptable
In: Computer Science
Write a program named CheckMonth2 that prompts a user to enter a birth month and day.
Display an error message that says Invalid date if the month is invalid (not 1 through 12) or the day is invalid for the month (for example, not between 1 and 31 for January or between 1 and 29 for February).
If the month and day are valid, display them with a message. For
example, if the month entered is 2, and the day entered is 17, the
output should be 2/17 is a valid birthday.
This is the code i start with. (Answer is C# Please.)
using System;
using static System.Console;
class CheckMonth2
{
static void Main()
{
// Write your main here
}
}
In: Computer Science
Write functions:
i) One that prompts a user for 2 numbers.
ii) Adds the two numbers if they are even
iii) Multiplies the two numbers if they are odd
iv) Displays the appropriate output to the user
You are writing 4 functions and calling them to test functionality.
RUN in IDLE
In: Computer Science
Introduction to Database SHort answer question
-1)Can intersection data be placed in the entity box of one of the two entities in the many-to-many binary relationship? If yes, describe which one. If not, where can you put it? Explain.
-2)What is the difference between a record type and an occurrence of that record? Explain and give example(s).
-3)Name at least 4 entities, some sample attributes for each entity, and the primary key field for each entity, in a university environment .
4)How foreign key is used to set-up one-to-many relationships in relational databases? Explain and give example (example from the lecture is ok).
5) How to implement Many-to-Many relationship in a relational Database? Explain and give example (example from the lecture is ok)
6)Describe referential integrity problem in general. In the specific case of deleting a record in a table on the “one side” of a one-to-many relationship, how would referential integrity occur?
In: Computer Science
Which of the following statements is false?
a. |
UML represents instance variables as an attribute name, followed by a colon and the type |
|
b. |
Private attributes are preceded by the keyword private in the UML |
|
c. |
In the UML, each class is modeled in a class diagram as a rectangle with three compartments. The top one contains the class’s name centered horizontally in boldface. The middle one contains the class’s attributes, which correspond to instance variables in Java. The bottom one contains the class’s operations, which correspond to methods and constructors in Java |
|
d. |
The UML models operations by listing the operation name followed by a set of parentheses. A plus sign (+) in front of the operation name indicates that the operation is a public |
In: Computer Science
. Create a Python function that asks the user for a number (integer). The function should then tell the user how many hundreds can go into the number, and how much is left over.
Hint: the % operator calculates the remainder of a division. For example, 10 % 3 gives a result 1.
Hint2: Deal with the positive and negative values in separate parts of an if-else structure. Get the calculation work for positive values first. For negative values, make them positive (num = -num) and then use the same method as for positive values, adapting as
this is a python program so i need your help to complete this task. as i have to submit it by tomorrow.
thanks
In: Computer Science
Exercise #1:
Create an abstract class called GameTester. The GameTester class includes a name for the game tester and a boolean value representing the status (full-time, part-time).
Include an abstract method to determine the salary, with full-time game testers getting a base salary of $3000 and part-time game testers getting $20 per hour.
Create two subclasses called FullTimeGameTester, PartTimeGameTester. Create a console application that demonstrates how to create objects of both subclasses. Allow the user to choose game tester type and enter the number of hours for the part-time testers.
Exercise #2:
CityToronto bank provides mortgages for individuals and businesses up to $300,000. Write a Java application that keeps track of mortgages and computes the total amount owed at any time (mortgage amount + interest).
Design the following classes to implement your application:
Mortgage – an abstract class that implements the MortgageConstants interface. A Mortgage includes a mortgage number, customer name, amount of mortgage, interest rate, and term.
Don’t allow mortgage amounts over $300,000. Force any mortgage term that is not defined in the MortgageConstants interface to a short-term, one year loan. Create a getMortgageInfo method to display all the mortgage data.
MortgageConstants – includes constant values for short-term (one year), medium-term (three years) and long-term (5 years) mortgages. It also contains constants for bank name and the maximum mortgage amount.
BusinessMortgage – extends Mortgage. Its constructor sets the interest rate to 1% over the current prime rate.
PersonalMortgage - extends Mortgage. Its constructor sets the interest rate to 2% over the current prime rate.
ProcessMortgage – a main class that create an array of 3 mortgages. Prompt the user for the current interest rate. Then in a loop prompts the user for a mortgage type and all relevant information for that mortgage. Store the created Mortgage objects in the array. When data entry is complete, display all mortgages.
In: Computer Science
Draw a single graph in Python showing the performance of both a linear and binary search algorithm against the number of elements (100,000). Consider the worst case scenario. In the graph we want to see: labeling of the axes, a legend, a title and the graphs for both linear and binary search, again correctly labeled. Explain what you see. Hint: Use Plot Functions (Plot Chart, series from functions) from the H!de Editor.
In: Computer Science
This assignment is one program demonstrating IF statements and Decisions in C++ format.
Program 2 People eating at a restaurant get to eat for free if they are younger than 10, pay full price if they are under 65, get a $3 discount if they are 65 or over. Write a program asking the user for an age of the next customer and the price of the food they ordered. Calculate how much to charge based on the price (set to 0, full price, or with a discount) along with a 15% tip. Then have the program show this amount to the user. Examples: What age is the person 5 What price is the meal 10 The charge for this person is 0 (a second program run) What age is the person 70 What price is the meal 10 The charge for this person is 8.05
In: Computer Science
(1) T(n)=9⋅T(n3)+n2⋅(log(n))2
(2) T(n) = 10 * T(n/3) + n^2
One of these can be solved using the Master Theorem; the other cannot.
In: Computer Science