Questions
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; public class Main { static Scanner sc=new Scanner(System.in);...

import java.io.BufferedReader;

import java.io.IOException;

import java.io.InputStreamReader;

import java.util.Scanner;

public class Main {

static Scanner sc=new Scanner(System.in);

static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

public static void main(String[] args) throws IOException {

// TODO code application logic here

System.out.print("Enter any String: ");

String str = br.readLine();

System.out.print("\nEnter the Key: ");

int key = sc.nextInt();

String encrypted = encrypt(str, key);

System.out.println("\nEncrypted String is: " +encrypted);

String decrypted = decrypt(encrypted, key);

System.out.println("\nDecrypted String is: "

+decrypted); System.out.println("\n");

}

public static String encrypt(String str, int key)

{ String encrypted = "";

for(int i = 0; i < str.length(); i++) {

int c = str.charAt(i);

if (Character.isUpperCase(c)) {

c = c + (key % 26);

if (c > 'Z')

c = c - 26;

}

else if (Character.isLowerCase(c)) {

c = c + (key % 26);

if (c > 'z')

c = c - 26;

}

encrypted += (char) c;

}

return encrypted;

}

public static String decrypt(String str, int key)

{ String decrypted = "";

for(int i = 0; i < str.length(); i++) {

int c = str.charAt(i);

if (Character.isUpperCase(c)) {

c = c - (key % 26);

if (c < 'A')

c = c + 26;

}

else if (Character.isLowerCase(c)) {

c = c - (key % 26);

if (c < 'a')

c = c + 26;

}

decrypted += (char) c;

}

return decrypted;

}

}

What is the Caesar cipher?

Write the algorithm of the illustrated program?

In: Computer Science

Agassi Company uses a job order cost system in each of its three manufacturing departments. Manufacturing...

Agassi Company uses a job order cost system in each of its three manufacturing departments. Manufacturing overhead is applied to jobs on the basis of direct labor cost in Department D, direct labor hours in Department E, and machine hours in Department K.

In establishing the predetermined overhead rates for 2020, the following estimates were made for the year.

Department

D

E

K

Manufacturing overhead $1,179,000 $1,750,000 $1,080,000
Direct labor costs $1,684,286 $1,875,000 $675,000
Direct labor hours 150,000 125,000 60,000
Machine hours 600,000 750,000 120,000

During January, the job cost sheets showed the following costs and production data.

Department

D

E

K

Direct materials used $210,000 $189,000 $117,000
Direct labor costs $180,000 $165,000 $56,250
Manufacturing overhead incurred $148,500 $186,000 $118,500
Direct labor hours 12,000 16,500 5,250
Machine hours 51,000 67,500 10,430
Compute the predetermined overhead rate for each department. (Round answers to 2 decimal places, e.g. 12.50 or 12.50%.)
Overhead rate
Department D %
Department E $ per direct labor hour
Department K $ per machine hour
Compute the total manufacturing costs assigned to jobs in January in each department.

Manufacturing Costs

Department D $
Department E $
Department K $
Compute the under- or overapplied overhead for each department at January 31.

Manufacturing Overhead

Department D $

OverappliedUnderapplied

Department E $

UnderappliedOverapplied

Department K $

OverappliedUnderapplied

In: Accounting

Required information Skip to question [The following information applies to the questions displayed below.] Sandra’s Purse...

Required information

Skip to question

[The following information applies to the questions displayed below.]

Sandra’s Purse Boutique has the following transactions related to its top-selling Gucci purse for the month of October. Sandra's Purse Boutique uses a periodic inventory system.

Date Transactions Units Unit Cost Total Cost
October 1 Beginning inventory 6 $ 700 $ 4,200
October 4 Sale 4
October 10 Purchase 5 710 3,550
October 13 Sale 3
October 20 Purchase 4 720 2,880
October 28 Sale 7
October 30 Purchase 8 730 5,840
$ 16,470

Required:

1. Calculate ending inventory and cost of goods sold at October 31, using the specific identification method. The October 4 sale consists of purses from beginning inventory, the October 13 sale consists of one purse from beginning inventory and two purses from the October 10 purchase, and the October 28 sale consists of three purses from the October 10 purchase and four purses from the October 20 purchase.

  

Required information

Skip to question

[The following information applies to the questions displayed below.]

Sandra’s Purse Boutique has the following transactions related to its top-selling Gucci purse for the month of October. Sandra's Purse Boutique uses a periodic inventory system.

Date Transactions Units Unit Cost Total Cost
October 1 Beginning inventory 6 $ 700 $ 4,200
October 4 Sale 4
October 10 Purchase 5 710 3,550
October 13 Sale 3
October 20 Purchase 4 720 2,880
October 28 Sale 7
October 30 Purchase 8 730 5,840
$ 16,470

Required:

1. Calculate ending inventory and cost of goods sold at October 31, using the specific identification method. The October 4 sale consists of purses from beginning inventory, the October 13 sale consists of one purse from beginning inventory and two purses from the October 10 purchase, and the October 28 sale consists of three purses from the October 10 purchase and four purses from the October 20 purchase.

what is the ending inventory?

what is cost of good sold?

  

In: Accounting

C++ Question Write a code for :- public List Palindrome(); //Check whether a given singly linked...

C++ Question

Write a code for :-

public List Palindrome();

//Check whether a given singly linked list is palindrome or not.

Input:

a -> b-> NULL

a -> b -> a-> NULL

s -> a -> g -> a -> r-> NULL r -> a -> d -> a -> r-> NULL

Output:

not palindrome palindrome

not palindrome palindrome

Note:- Code should work on MS-Visual Studio 2017 and provide outputs with code

In: Computer Science

IMPLEMENT IN JAVA PLEASE I NEED THIS DONE ASAP Question 1 (25pt) Dynamic Programming – Coin...

IMPLEMENT IN JAVA PLEASE I NEED THIS DONE ASAP

Question 1 (25pt) Dynamic Programming – Coin Change

Design algorithm for the coin change problem using dynamic programming approach. Given coin denominations by value: c1 < c2 < … < cn, and change amount of x, find out how to pay amount x to customer using fewest number of coins.

Your algorithm needs to work for ANY coin denomination c1 < c2 < … < cn, and ANY change amount of x. For example, given coin denominations 1, 5, 10, 25, x=78, the solution is {3 coins of 25 and 3 coins of 1, total 6 coins}.

NEED TO DO ALL 3 PARTS

• Present your algorithm in pseudo code.

• Trace your algorithm and show how it works on a small example, show the step-by-step process and the final result.

• Analyze the time complexity of the algorithm and present the result using order notation.

In: Computer Science

After reading your report, as well as comments by others on the team, the Genesis Energy...

After reading your report, as well as comments by others on the team, the Genesis Energy team began to understand the importance of cash flow and financing in high-growth scenarios. The Genesis Energy accountant suggested that the focus should be on developing a financial strategy that would ensure operational needs are met through short-term financing. The Genesis Energy team instructed Sensible Essentials to explain in basic terms the factors and mechanics necessary to determine short-term financing needs.

As the finance expert for Sensible Essentials, do the following:

Explain the concept of working capital and its importance to Genesis Energy.

Describe the mechanism and methodology used to ensure that operational needs are met through short-term financing. Explain why this methodology is important to Genesis Energy.

Explain how working capital represents the assets that are needed to carry out the day-to-day operation and how working capital can act as a source of financing or increase the need for financing.

In your response, be sure to consider the time value of money and the relative advantages and disadvantages of short-term loans versus internally generated funds.

Write your initial response in 300–500 words.

In: Finance

describe how you would implement a safety management system if you were appointed by an airline...

describe how you would implement a safety management system if you were appointed by an airline ( you must include steps of implementation and discuss about the pillars of SMS) 500-600 words

In: Operations Management

When working on the intervention side to incorporate a planned change process, with an individual who...

When working on the intervention side to incorporate a planned change process, with an individual who is a client at a small addiction counting office that works through individual and group sessions.

Write about all the points below:

1. What interventions would one decide to use to use as a tool to achieve a planned change to work on goals that enhance the client’s quality of life and communities that they live in?

2. What humanity behaviors were applied and how did it affect the public around the client, as well as any other theories that could be used in the community.

3. How does working with other professionals, when allotted, to gain positive field results?

4. How well can you apply aptitude to gain persuasion, pray and enforce social justice for clients that are apart of suffering populations and communities?

5. How can one produce positive changes and ways to end the helping relationship that develop the clients wanted areas of change, that was arranged by professional and client?

In: Psychology

Discuss exceptions for religious preferences as it applies to recruitment and selection.

Discuss exceptions for religious preferences as it applies to recruitment and selection.

In: Operations Management

Discuss the differences between structured and unstructured interviews, the two types of structured interviews, as well...

Discuss the differences between structured and unstructured interviews, the two types of structured interviews, as well as their legal implications. Discuss recommendations for the use of interviews.

In: Operations Management

For each question please give: a. a definition of the term; and b. discuss how the...

For each question please give:

a. a definition of the term; and

b. discuss how the concept assists us in understanding the changing nature of work and/or employment

A) Uberisation

In: Operations Management

A 35.0-mL sample of 0.150 M acetic acid (CH3COOH) is titrated with 0.150 MNaOHsolution. Calculate the...

A 35.0-mL sample of 0.150 M acetic acid (CH3COOH) is titrated with 0.150 MNaOHsolution. Calculate the pH after the following volumes of base have been added.

50.0 mL

Express your answer using two decimal places.

In: Chemistry

A production line has three machines A, B, and C, with reliabilities of .90, .95, and...

A production line has three machines A, B, and C, with reliabilities of .90, .95, and .91, respectively. The machines are arranged so that if one breaks down, the others must shut down. Engineers are weighing two alternative designs for increasing the line’s reliability. Plan 1 involves adding an identical backup line, and plan 2 involves providing a backup for each machine. In either case, three machines (A, B, and C) would be used with reliabilities equal to the original three.

a. Compute overall system reliability under Plan 1. (Round your intermediate calculations and final answer to 4 decimal places.)

Reliability           

b.
Compute overall system reliability under Plan 2. (Round your intermediate calculations and final answer to 4 decimal places.)

Reliability           

In: Operations Management

Hide Assignment Information Instructions In this assignment, you will be practicing the Java OOP skills we've...

Hide Assignment Information

Instructions

In this assignment, you will be practicing the Java OOP skills we've learned this week in implementing a customized mutable Array class. Please read the following requirements carefully and then implement your own customized Array class:

=== 1) Basic (100' pts total) ===

Your Array class must provide the following features:

--1.1) (20' pts) Two constructors. One takes the input of the initialized capacity (int) and create the underlying array with that capacity; the other takes no input and creates an array that can hold a single element by default (that is, init capacity == 1);

--1.2) (20' pts) Getters and setters and basic methods we discussed during the class including: getCapacity(), getSize(), set(int index), get(int index), isEmpty();

--1.3) (20' pts) CRUD operations we discussed during the class including: add(int index), addLast(), addFirst(), remove(int index), removeLast(), removeFirst(), removeElement(int target), removeAll(int target);

--1.4) (20' pts) Supports generic types;

--1.5) (20' pts) Mutable, that is when add element exceeding its capacity, it can resize to accommodate the change.

=== 2) Bonus (20' pts total) ===

2.1) (10' pts) Implement a (private or public) swap(int a, int b) method that swaps the two elements in the index a and b if a and b are both admissible; also a public reverse() method that reverses the order of stored elements in-place (means, no additional spaces are allocated).

2.2) (10' pts) A public void sort() method sorts the stored elements in ascending order inO(nlog(n)) time.

[hint]: Quicksort or Merge sort

In: Computer Science

what are the top education issues in the United states today

what are the top education issues in the United states today

In: Psychology