Questions
In Java, how can I convert a string user input for example a student starts a...

In Java, how can I convert a string user input for example a student starts a uni degree in "Winter/2022", to a date type, and then once I have done that, add 3 years to that value, and changing the season, so for example Student Started: Winter/2022 and Student Finished: Summer/2025. Is there any possible way to do this?

Thank you.

In: Computer Science

The accountant for Bright Products, Inc., has analyzed the manufacturing overhead costs for the company’s assembly...

The accountant for Bright Products, Inc., has analyzed the manufacturing overhead costs for the company’s assembly department. The fixed and variable costs follow:

Variable Cost Element per Hour Monthly Fixed
Cost Element
Indirect labor $ 1.40 $ 1,760
Payroll taxes 0.21 140
Indirect materials 0.19 140
Utilities 0.36 240
Depreciation - 1,160
Taxes and insurance - 460
Maintenance 0.21 240


Required:

  1. Prepare a flexible budget for the department for the month of May 2019, assuming that the expected production is for 2,100 direct labor hours. Show costs for production levels of 90 percent and 110 percent of the expected production level of 2,100 hours.
  2. Assume that during the month of May, actual production was 1,500 hours. Actual costs for the month were as follows:
Indirect labor $ 3,814
Payroll taxes 259
Indirect materials 444
Utilities 816
Depreciation 1,160
Taxes and insurance 439
Maintenance 534




Prepare a departmental monthly overhead performance report comparing actual costs with the budget allowance for the total number of hours worked.


Analyze:
If Bright Products, Inc., operates at the expected production level of 2,100 direct labor hours, what total manufacturing overhead cost is projected per direct labor hour?

Prepare a flexible budget for the department for the month of May 2019, assuming that the expected production is for 2,100 direct labor hours. Show costs for production levels of 90 percent and 110 percent of the expected production level of 2,100 hours. (Round your answer to 2 decimal places.)

a.
BRIGHT PRODUCTS, INC.
Flexible Budget for Manufacturing Overhead
Month of May 2019
hrs 2,100 hrs hrs
90 % % 110 %
Variable costs
Total variable costs $0.00 $0.00 $0.00
Fixed costs
Total fixed costs $0.00 $0.00 $0.00
Total manufacturing costs $0.00 $0.00 $0.00

b.

Prepare a departmental monthly overhead performance report comparing actual costs with the budget allowance for the total number of hours worked. (Enter all amounts as positive values. Round amounts to the nearest dollar.)

BRIGHT PRODUCTS, INC.
Manufacturing Overhead Budget Performance Report
Month of May 2019
Budget for 1,500 hours Actual Over Under
Total manufacturing overhead $0 $0 $0 $0

c.

If Bright Products, Inc., operates at the expected production level of 2,100 direct labor hours, what total manufacturing overhead cost is projected per direct labor hour? (Round your answer to 2 decimal places.)

Manufacturing overhead cost

_________

In: Accounting

Issue # 2 - A V-belt from a 10 in. Diameter spindle pulley that rotates at...

Issue # 2 - A V-belt from a 10 in. Diameter spindle pulley that rotates at 1800 rpm, to a 36 in. Diameter flat pulley. The wheelbase is 40 "and the throat angle is 40o. The friction coefficient between the belt and the grooved pulley is 0.2 and with the flat pulley it is also 0.2. The cross section of the straps is a trapezoid with parallel sides of 1.5 "and 0.75", with a height between them of 1 ". The weight of this belt is 0.04 lbf / in3, and the maximum allowable tension on each belt is 200 lbf. Determine: a) How many straps are needed. b) The Torque applied in the transmission, c) The Transmitted power. Note: Consider locating the center of gravity of the belt cross section in order to correct the actual pulley diameter as the band on the splined pulley is slightly outward.)

In: Mechanical Engineering

Download the Unit 5 Programming Assignment When you're finished, upload the following to the Programming Assignment...

Download the Unit 5 Programming Assignment When you're finished, upload the following to the Programming Assignment submission area: Upload the following for your Programming Assignment submission. Question.java TrueFalseQuestion.java MultipleChoiceQuestion.java Quiz.java A screenshot showing a dialog box asking a true/false question Your assignment will be graded by your peers using the following criteria. Does the submission include a file that defines the class "Quiz" with a main method? Does the submission include a file that defines the abstract class "Question" with instance method "check", class method "showResults", and abstract method "ask"? Does the submission include a file that defines the class "MultipleChoiceQuestion" as a subclass of "Question" with an implementation of "ask" method? Does the submission include a file that defines the class "TrueFalseQuestion" as a subclass of "Question" with an implementation of the "ask" method? Does the class "TrueFalseQuestion" implement the method "ask" to keep asking its question until it receives an answer of "f", "false", "n", "no", "t", "true", "y", or "yes" in any combination of upper and lower case? Does the class "TrueFalseQuestion" implement the method "ask" to return only "TRUE" or "FALSE"? Does the class "TrueFalseQuestion" have a constructor that initializes the question and correct answer using its parameters, where the correct answer is initialized to only "TRUE" or "FALSE"? Does the main method in class "Quiz" use the "check" method with both "MultipleChoiceQuestion" and "TrueFalseQuestion" objects? Does the main method in class "Quiz" report correct results using the "showResults" method from class "Question"?

In: Computer Science

FileWrite a program that will allow two users to play a tic-tac-toe game. You should write...


FileWrite a program that will allow two users to play a tic-tac-toe game. You should write the program such that two people can play the game without any special instructions. (assume they know how to play the game). You should code the program to do the five items below only. You do not have to write the entire program, just the five items below.
• Use a 2D array(3 rows, 3 columns) of datatype char. Initialize the 2D
array with a “ “(space) before the game starts.
• Prompt first player(X) to enter their first move.
(Enter row and column where they want to place their move)
• Then draw the game board showing the move. (see sample to the right)
• Prompt the second player(O) to enter their first move.
• Then draw the game board showing both moves. (see sample to the right)
For the purposes of this assignment, everything can be done in main….The assignment requirements stop here!
If you would like to program the entire game, you will need to:
1) Use a 2D array(3 rows, 3 columns) of datatype char. Initialize the 2D array with a “ “(space) before the game starts.
2) Test each move to see if that space is still available (a data validation loop should check the content of the array at the row and column entered by the user to see if an ‘X’ or ‘O’ is stored there….ask the user to keep entering row and column values until they enter numbers that do not have an ‘X’ or ‘O’.)
3) After each move, check to see if someone has won the game yet, if so, the game should end.
4) After 9 moves, if there is not winner declare a draw.
You can use a user-defined function named scanMove. scanMove should do the following:
• Will NOT return a value to main using a return statement. Should have parameters that include the 2D array, the turn number (so you know whether the player is ‘X’ or ‘O’. Player 1 should place an ‘X’, Player 2 will place a ‘Y’)
• Read in the row and column numbers of the box that the player would like to place their ‘X’ or ‘O’.
• Test each move to see if it’s a valid move (has the element already been used for an X or O?)
• Once you have a valid move, place the correct letter in the requested box.
You can use a user-defined function named drawBoard. drawBoard should draw the tic-tac-toe game board with ‘X’ and ‘O’ showing in the correct places. The board should look something like this:

In: Computer Science

In C Write a program that prompts the user to enter a Fahrenheit temperature calculate the...

In C Write a program that

  1. prompts the user to enter a Fahrenheit temperature
  2. calculate the corresponding temperature in Celsius and print it
  3. prompt the user if they want to do another temperature conversion
  4. if the user enters y, repeat 1), 2) and 3)
  5. if the user enters n, then print Bye and exit the program
  6. if the user enters any other character, ask the user to enter y or n only

Note : c = (5.0/9.0)*(f-32.0)

Sample output

Enter temperature in deg F

50

You entered 50 def F. The corresponding temp in deg C is 10.00

Another temperature conversion?

Enter y or n please

y

Enter temperature in deg F

60

You entered 60 def F. The corresponding temp in deg C is 15.56

Another temperature conversion?

Enter y or n please

a

Enter y or n please

#

Enter y or n please

y

Enter temperature in deg F

70

You entered 70 def F. The corresponding temp in deg C is 21.11

Another temperature conversion?

Enter y or n please

n

Bye

Problem 3

Write a program that

  1. prompts the user to enter a Fahrenheit temperature
  2. calculate the corresponding temperature in Celsius and print it
  3. prompt the user if they want to do another temperature conversion
  4. if the user enters y, repeat 1), 2) and 3)
  5. if the user enters n, then print Bye and exit the program
  6. if the user enters any other character, ask the user to enter y or n only

Note : c = (5.0/9.0)*(f-32.0)

Sample output

Enter temperature in deg F

50

You entered 50 def F. The corresponding temp in deg C is 10.00

Another temperature conversion?

Enter y or n please

y

Enter temperature in deg F

60

You entered 60 def F. The corresponding temp in deg C is 15.56

Another temperature conversion?

Enter y or n please

a

Enter y or n please

#

Enter y or n please

y

Enter temperature in deg F

70

You entered 70 def F. The corresponding temp in deg C is 21.11

Another temperature conversion?

Enter y or n please

n

Bye

In: Computer Science

1) Describe a real-world situation for which a for loop would provie an appropriate simulation. 2)...

1) Describe a real-world situation for which a for loop would provie an appropriate simulation.

2) Describe a real-world situation for which a while loop would be more appropriate.

3) How could a while loop be coded to run forever?

4) How could a for loop be coded to run forever?

5) Describe a testing strategy for ensuring that your loop conditions are properly coded.

*These are conceptual questions, I don't need any actual code. Please give me conceptual answers NOT CODE!

In: Computer Science

Prove  {0n1n, n≥0} is a computable language

Prove  {0n1n, n≥0} is a computable language

In: Computer Science

Early Adulthood Discussion Welcome to NOW is many of your lives - and some of us...

Early Adulthood Discussion

Welcome to NOW is many of your lives - and some of us have passed this point..

I want to talk about relationships - Please refer to the videos and the chapter for context to describe why relationships are so important.

Please ask and answer a question from your group's perspective on the issues during this time of your lives!!

(Personal examples really do make a difference here!)

In: Psychology

A box contains 1 fair coin and 1 2-Headed coin. A coin is drawn and flipped...

A box contains 1 fair coin and 1 2-Headed coin. A coin is drawn and flipped several times.

(a) The first flip results in Heads. What is the probability that the coin is fair?

(b) 3 flips result in all Heads. What is the probability that the coin is fair?

(c) 5 flips result in all Heads. What is the probability that the coin is fair?

(d) How many flips of all Heads are required to know with 99.9% accuracy that the coin is not fair?

In: Math

In 250 words explain the difference between testing someone honesty ( trapment), and entrapment, where the...

In 250 words explain the difference between testing someone honesty ( trapment), and entrapment, where the defendant asserts—as a defense—that he government invented the crime. Explain why the defendant’s predisposition (0r not) is her/ his best defense.

In: Psychology

The global COVID-19 pandemic have resulted in many companies contemplating to shut down or close permanently...

The global COVID-19 pandemic have resulted in many companies contemplating to shut down or close permanently their operations. Discuss the decisions that must be considered by management before taking such a move.

In: Accounting

a)Adoubledata field(private)named realfor real part of a complex number. b)Adoubledata field(private)named imgfor imaginarypart of a complex...

a)Adoubledata field(private)named realfor real part of a complex number.

b)Adoubledata field(private)named imgfor imaginarypart of a complex number.

c)A no-arg constructor that creates a default complex number with real 0and img 0.

d)Auser-defined constructorthat creates a complex number with given 2 numbers.

e)The accessor and mutator functions for realand img.

f)A constant function named addition(Complex&comp1, Complex&comp2) that returns the sum of two givencomplex numbers.

g)Aconstantfunction named subtraction(Complex&comp1, Complex&comp2) that returns the subtractionof two givencomplex numbers.

h)A constant function named multiplication(Complex&comp1, Complex&comp2) that returns the multiplicationof two givencomplex numbers.

i)Write a test program that creates aComplexobject with no-arg constructor.Then, set -4.2 and 3.1to real and imaginary parts of the complex number, respectively.

j)Create another Complexobject using the user-defined constructor.

k)Testaddition, subtractionand multiplication functions using thesetwoComplex objects.

In: Computer Science

using c++ classes write program in which CString is used, and give simple and easy examples...

using c++ classes
write program in which CString is used, and give simple and easy examples in the form of program, to show how to use different CString function, use comments to explain what happened at that function.

In: Computer Science

Three protons occupy the vertex of an equilateral triangle with each side of 1 cm. Mp=...

Three protons occupy the vertex of an equilateral triangle with each side of 1 cm. Mp= 1.67E-27 kg, qp= 1.6E-19 C.

a) release all three protons from rest, what is the max speed of each proton?

b) Only one proton is released while the other two are fixed. Find the speed of the moving proton after a long time.

In: Physics