Questions
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

As a recently hired MBA intern, you are working in a consulting capacity to provide an...

As a recently hired MBA intern, you are working in a consulting capacity to provide an analysis for Al Dente's Italian Restaurant. A financial income Statement is presented below: Sales $2,698,000 Cost of sales (all variable) $1,557,563 Gross Margin $1,140,438 Operating expenses: Variable $277,975 Fixed $213,675 Total operating expenses: $491,650 Administative expenses (all fixed) $564,375 Net operating income $84,413 This income statement presents the sales, expenses and pre-tax operating income for a local eating facility. At Al Dente, the average meal cost for lunches and dinners are $20 and $40 respectively. Al Dente serves both lunch and dinner 300 days per year and serves twice as many lunches as dinners.

5. In order to increase NOI, the owner of the restaurant is considering adjustments to the quality of food ingredients currently used. Rather than using premium ingredients, use of average quality ingredients would reduce the cost of food by 15%. The owner proposes to not change the current meal pricing. As the consultant, prepare a memo to the owner that presents the pros and cons of this change in operations. What are the potential impacts on revenue, costs, and net operating income may result from this change? The owner does not want to see a decrease in net operating income. Could the owner make this change and absorb a decrease in customers, and how would you demonstrate numerically to support your analysis? What other factors or consequences of this decision should the owner consider besides the financial impact of the change?

In: Accounting

In 500 words analyzing ASSAULTIVE crimes, explain how Assault-Battery Crimes increase in severity, as the weapon...

In 500 words analyzing ASSAULTIVE crimes, explain how Assault-Battery Crimes increase in severity, as the weapon used, or the fear imposed, or the damage inflicted, increase in danger and severity

In: Psychology