Questions
Assignment Guidelines: - Submit 500 words on ERP systems vendors for business organization. - Give a...

Assignment Guidelines:
- Submit 500 words on ERP systems vendors for business organization.
- Give a short background about the ERP systems vendors in the selected company.
- Highlight the sectors that enterprise systems vender provide.
- Find out key challenges of the ERP systems vendors in business companies.

In: Computer Science

Polynomial Multiplication by Divide-&-Conquer A degree n-1 polynomial ? (?) =Σ(n-1)(i=0) ???i = ?0 + ?1?...

Polynomial Multiplication by Divide-&-Conquer

A degree n-1 polynomial ? (?) =Σ(n-1)(i=0) ???i = ?0 + ?1? + ?2?2 ... + ??−1?n-1 can be

represented by an array ?[0. . ? − 1] of its n coefficients. Suppose P(x) and Q(x) are two polynomials of degree n-1, each given by its coefficient array representation. Their product P(x)Q(x) is a polynomial of degree 2(n-1), and hence can be represented by its coefficient array of length 2n-1. The polynomial multiplication problem is to compute the coefficient array of P(x)Q(x), given the coefficient arrays of P(x) and of Q(x).

There is an obvious Θ ?2 (i.e., quadratic) time algorithm to solve this problem. However, a method similar to the divide-&-conquer integer multiplication algorithm of Karatsuba-Ofman can achieve sub-quadratic time complexity. Design and analyze one such sub-quadratic algorithm for the polynomial multiplication problem.

In: Computer Science

RQ 10.3 When does cloud computing make sense for a large corporation that already has an...

RQ 10.3 When does cloud computing make sense for a large corporation that already has an IS organization? Give an example of when cloud computing might make sense for a start-up company.

In: Computer Science

Build a circuit that contains two push buttons, an LED, and any other basic components you...

Build a circuit that contains two push buttons, an LED, and any other basic components you think you need. The LED should only light when both push buttons are pressed. Use your Arduino for power and ground. Submit your final code, fritzing breadboard diagram and a video on canvas.

In: Computer Science

All functions are written in python Write a function cube_evens_lc(values) that takes as input a list...

All functions are written in python

  1. Write a function cube_evens_lc(values) that takes as input a list of numbers called values, and that uses a list comprehension to create and return a list containing the cubes of the even numbers in values (i.e., the even numbers raised to the third power). For example:

    >>> cube_evens_lc([2, 5, 6, 4, 1])
    result: [8, 216, 64]
    

    This version of the function may not use recursion.

  2. Write a function cube_evens_rec(values) that takes as input a list of numbers called values, and that uses recursion to create and return a list containing the cubes of the even numbers in values. In other words, this function will do the same thing as the previous function, but it must use recursion instead of a list comprehension. For example:

    >>> cube_evens_rec([2, 5, 6, 4, 1])
    result: [8, 216, 64]
    

    This version of the function may not use a list comprehension.

In: Computer Science

Write a program in python such that There exists a list of emails List Ls =...

Write a program in python such that There exists a list of emails List Ls = ['[email protected]','[email protected]','[email protected]','[email protected]',[email protected]']

Count the number of emails IDS which ends in "ac.in"

Write proper program with proper function accepting the argument list of emails and function should print the number of email IDs and also the email IDS ending with ac.in

output

2

[email protected]

[email protected]

=================================

i am trying like this but getting confused

len [True for x in Ls if x.endswith('.ac.in')]

please write complete progam and show output and also explain the solution

In: Computer Science

Hw questions 1. Write a single C++ statement that will:      Print the string “C++” using the...

Hw questions

1. Write a single C++ statement that will:     

Print the string “C++” using the variable:       string s = “Introduction to C++”.

2. Change the letter ‘c’ to ‘C in the following string:   

Reprint the string with “C”  given the code and using the string: string greeting = “Introduction to c++”

3. Write the C++ statement or statements that will:   

Print the answer for regular division of the real numbers a / b + c and print the answer for integer division of the same values for integer numbers d / e + f.

For example, given float a=13, b=3, c = 10, the statements would print :

Regular division result = 14.3333       

Integer division result = 14

4. Write the  C++ statement or statements that will generate a random number between 100 and 110:    

5. Write a C++ statement or statements that will:      

Print the first two digits and the  last two digits of any 4 digit number stored in an integer variable n.        

For example, given int n = 5623, print

56    23.

6. Write  C++ statements that will align the following three lines as printed in two 20 character columns.

Name                                                 Years President

Abraham Lincoln                                 1860-1865

Thomas Jefferson                               1801-1809


7.  Write a C++ statement or statements that will Output if a string has a length greater than 10, equal to 10 or less than 10.

Examples  :    

string str1 = “Four Score and Seven Years Ago”      would output “String Length > 10”

string str2 = “Good Day”                                            would output “String Length < 10”

string str3 = 0123456789”                                          would output “String Length = 10”

  

8.   Create a truth table and determine the results for the following equation and values

Equation : bool b = ((a+4< 7) || ((b-a > 10) && !(c*a == 8)))

Values :   a = 2; b = 8; c = 4

9. Write a program using Atom and submit via Blackboard.

a. Request an integer whole dollar amount from the console.

b. Using the least amount of bills ($50,$20,$10,$5,$1) necessary, calculate how many of each bill type you will need to get to that value.

Output Example 1 (input is bold and italicized)

Enter a whole dollar amount as n integer: 633                                                           

You will need:

12   $50 bill(s).

1   $20 bill(s).

1 $10 bill(s).

0   $5 bills(s).

3    $1 bill(s).

Output Example 2 (input is bold and italicized)

Enter a whole dollar amount as an integer: 364                                                        

You will need:

7     $50 bill(s).

0     $20 bill(s).

1   $1 bill(s).

0     $5 bills(s).

4     $1 bills(s).

In: Computer Science

In this assignment you create a small project with a base class 'Account' which represents a...

  1. In this assignment you create a small project with a base class 'Account' which represents a generic account independent of whether the account is a Client or Vendor or Bank account. Then we will define a derived class 'BankAccount' class that represents the bank account. The BankAccount class is derived from the Account class, and extends the Account class functionality. The functionality of the BankAccount class is to handle deposits and withdrawals. You create a base class called Account and a derived class called BankAccount. You create two methods in BankAccount class: one for Deposit() and another one Withdraw() . See below for the Interface design.ghh
  2. Your main form has eight label controls, two textbox controls and four buttons.
  3. Customer Name and Account are static value.
  4. You enter Starting Account Balance and Transaction Amount. Clicking on Deposit button adds the Transaction Amount to Starting Account Balance and displays in Account Balance label.
  5. Clicking on Withdraw button checks to make sure there is sufficient fund in Starting Account Balance, if not it displays a message: The amount to withdraw exceeds account balance.

In: Computer Science

3.32 Prog4-Branches-Listing names A university has a web page that displays the instructors for a course,...

3.32 Prog4-Branches-Listing names A university has a web page that displays the instructors for a course, using the following algorithm: If only one instructor exists, the instructor's first initial and last name are listed. If two instructors exist, only their last names are listed, separated by /. If three exist, only the first two are listed, with "/ …" following the second. If none exist, print "TBD". Given six words representing three first and last names (each name a single word; latter names may be "none none"), output one line of text listing the instructors' names using the algorithm. If the input is "Ann Jones none none none none", the output is "A. Jones". If the input is "Ann Jones Mike Smith Lee Nguyen" then the output is "Jones / Smith / …". Hints: Use an if-else statement with four branches. The first detects the situation of no instructors. The second one instructor. Etc. Detect whether an instructor exists by checking if the first name is "none".

In: Computer Science

The USPS used a code named POSTNET to direct mail based on ZIP code until 2009....

The USPS used a code named POSTNET to direct mail based on ZIP code until 2009. The bar code consists of full-or half-bars as shown below. Your code will be using a 1 for a full bar and 0 for half bar. The bar code above would then be encoded as: 110100101000101011000010011. The first and last digits of the bar code are always 1. Removing these leaves 25 digits or a 5-digit ZIP code. For the code above the digits are encoded as follows: 10100 10100 01010 11000 01001. Each decimal digit is encoded as 5 bars (2 full, 3 half)such that each digit corresponds to a given weight as follows (left to right) 7, 4, 2, 1, 0, respectively. Multiply the corresponding value with the digit and compute the sum to get the final encoded digit for the zip code. The digit ‘0’ is special, encoded as 11000or a decimal 11, as there have to be two full bars per digit.Write a zipcodeclass that encodes and decodes five-digit bar codes used in POSTNET. The class should have two constructors. First constructor should input the zipcode as an integer and the second constructor should input the zip code as a bar code stringconsisting of 0s and 1s as described above.Although you have two ways to input the zip code, internally the class should only store the zip code using the integer formatas a private variable. The class should have at least two public member functions: one to return the zip code as an integer and the other to return it as a string. Any other helper functions should be declared as private.Test all code functionality(think of cases that may break it and include safeguards to protect against them, e.g.:if the length is incorrect, start/end digitis incorrect, etc).Discuss your code if you have any additions or have taken into account these special cases (add this as comments). Show the output of your code for the following two cases: 23456 and “110100110000010100011110001”.

In: Computer Science

use c++ Package Inheritance Hierarchy) Package-delivery services, such as FedEx®, DHL® and UPS®, offer a number...

use c++

Package Inheritance Hierarchy) Package-delivery services, such as FedEx®, DHL® and UPS®, offer a number of different shipping options, each with specific costs associated. Create an inheritance hierarchy to represent various types of packages. Use class Package as the base class of the hierarchy, then include classes TwoDayPackage and OvernightPackage that derive from Package. Base-class Package should include data members representing the name, address, city, state and ZIP code for both the sender and the recipient of the package, in addition to data members that store the weight (in ounces) and cost per ounce to ship the package. Package’s constructor should initialize these data members. Ensure that the weight and cost per ounce contain positive values. Package should provide a public member function calculateCost that returns a double indicating the cost associated with shipping the package. Package’s calculateCost function should determine the cost by multiplying the weight by the cost per ounce. Derived-class TwoDayPackage should inherit the functionality of base class Package, but also include a data member that represents a flat fee that the shipping company charges for two-day-delivery service. TwoDayPackage’s constructor should receive a value to initialize this data member. TwoDayPackage should redefine member function calculateCost so that it computes the shipping cost by adding the flat fee to the weight-based cost calculated by base class Package’s calculateCost function. Class OvernightPackage should inherit directly from class Package and contain an additional data member representing an additional fee per ounce charged for overnight-delivery service. OvernightPackage should redefine member function calculateCost so that it adds the additional fee per ounce to the standard cost per ounce before calculating the shipping cost. Write a test program that creates objects of each type of Package and tests member function calculateCost. please send a link to a repl.it file to help find the solution or separate the files with names so I can know different header files to use use c++

In: Computer Science

JAVA PROGRAMMING project 1: Businesses want phone numbers that are easy to remember, and one that...

JAVA PROGRAMMING

project 1:

Businesses want phone numbers that are easy to remember, and one that can be tied to a phone number are even better.

Given the “standard international keypad”, write anaysis and design to determine the phone number based on a user-supplied 7-letter phrase.

1

2 ABC

3 DEF

4 GHI

5 JKL

6 MNO

7 PQRS

8 TUV

9 WXYZ

*

0

#

Test cases:

● BadDogs

● GoodCat

● Glasses

● EatGood

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

I ONLY NEED ANALYSIS AND DESIGN! NOT CODE!

create an Analysis: (Describe the problem including input and output in your own words.)

--> description of the problem situation is provided all required rules/guidelines are listed. A listing of all necessary inputs/outputs is included

create a Design: (Describe the major steps for solving the problem.)

--> A plan for implementation of a solution is provided. The plan effectively demonstrates the use of loops and conditional branching statements where appropriate to the solution. The plan effectively demonstrates modular program design. The plan is completed using appropriate flowcharting and/or pseudocode techniques The plan includes a listing of all necessary variable declarations (including type), then uses the variables consistently to complete the solution

In: Computer Science

In C programming language, write the program "3x3" in size, calculating the matrix "c = a...

In C programming language, write the program "3x3" in size, calculating the matrix "c = a * b" by reading the a and b matrices from the outside and writing on the screen?

In: Computer Science

What output is produced by the following code? Explain how it works (at least 5 lines)....

What output is produced by the following code? Explain how it works (at least 5 lines).

class Super {
int num = 1;
int id = 2;
}

class Sub extends Super {
int num = 3;

public void display() {
System.out.println(num);
System.out.println(super.num);
System.out.println(id);
}
}

public class Inheritance1 {
public static void main (String[] args) {
Sub obj = new Sub();
obj.display();
}
}

===============================
Example of "Explain how it works"

Sample Question:
What output is produced by the following code?   Explain how it works.

class student {

    String name;

    int age;

}

public class q6_ArryList1 {

public static void main(String args[]) {

      ArrayList<student>myArray = new ArrayList<>();

       for(int i=0; i< 4; i++){

         student s = new student();      

         s.name="Emily"+i;

         myArray.add(s);  

      }

    for (int i = 0; i<myArray.size(); i++){

        System.out.format("%s %n", myArray.get(i).name, myArray.get(i).age);

     }

    System.out.println();

    for (int i = 0; i<myArray.size(); i++){

       if (i % 2 ==0) {

        myArray.remove(1); }

    }

   for (int i = 0; i<myArray.size(); i++){

     System.out.format("%s %n", myArray.get(i).name, myArray.get(i).age);

    }

}

}

Answer:

Emily 0
Emily 1
Emily 2
Emily 3
Emily 0
Emily 3

How it works:
In this problem, an arrayList is created, then Emily + i is added to the arrayList where i is the for loop variable. The for loop goes from 0 inclusive to 4 exclusive. Therefore the arrayList contains [Emily0,Emily1, Emily2, Emily3]. After this, another for loop that goes through the arrayList is executed. An if statement inside the for loop gives a condition that if i %2 = 0, then remove the value at position 1. Thus, at 0, index 1 which is Emily1 is removed. At 1, nothing is removed. At 2, Emily2 is removed. Lastly, the arrayList, which contains[Emily0 and Emily3] is printed.

In: Computer Science

Create a web page using PHP that allows the users to create an account (a username...

Create a web page using PHP that allows the users to create an account (a username and a password). There should be a login page that allows users to create an account by entering their preferred username and password. The same page should also let users login if they already have an account. If a user is logged in successfully , they should be able to enter a comment and also read the comments entered by others previously.

In: Computer Science