Questions
in c++ Write a function that takes a C string as an input parameter and reverses...

in c++

Write a function that takes a C string as an input parameter and reverses the string. The function should use two pointers, front and rear. The front pointer should initially reference the first character in the string, and the rear pointer should initially reference the last character in the string. Reverse the string by swapping the characters referenced by front and rear, then increment front to point to the next character and decrement rear to point to the preceding character, and so on, until the entire string is reversed. Write a main program to test your function on various strings of both even and odd length.

In: Mechanical Engineering

Write a program that uses a DYNAMIC two-dimensional array to store the highest and lowest temperatures for each month of the year (temperature is a decimal value)

In c++

Write a program that uses a DYNAMIC two-dimensional array to store the highest and lowest temperatures for each month of the year (temperature is a decimal value). The program should output the highest and lowest temperatures for the year. Your program must consist of the following functions:

a. Function getData: This function reads and stores data in the two-dimensional array.

b. Function indexHighTemp: This function returns the index of the highest high temperature in the array.

c. Function indexLowTemp: This function returns the index of the lowest low temperature in the array.

These functions must all have the appropriate parameters.

In: Mechanical Engineering

How do we use DSC and kinetics in composite improvements.

How do we use DSC and kinetics in composite improvements.

In: Mechanical Engineering

(c) A titanium hip replacement ball joint of 23.000 mm diameter was precision ground and required...

(c) A titanium hip replacement ball joint of 23.000 mm diameter was precision ground and required to be finished to a tolerance of +/- 0.002 mm The inspection procedure resulted in the parts being measured whilst still hot at 80 C after grinding. If the coefficient of linear expansion of titanium is 10 microns/metre deg C, determine 1) The linear expansion relative to the reference temperature of 20 deg C 2) The overall result of measuring parts hot on the finished size and the type of engineering fit that may result Comment on the likelihood of the +/- 0.002 mm tolerance being obtainable and should a correction factor be applied to the measurement ?

In: Mechanical Engineering

** Re- differentiate clearly Nusselt theory for liquid film condensation along vertical surface.

** Re- differentiate clearly Nusselt theory for liquid film condensation along vertical surface.

In: Mechanical Engineering

Using your knowledge of dislocations in crystalline materials such as metals, explain how solid solution strengthening...

Using your knowledge of dislocations in crystalline materials such as metals, explain how solid solution strengthening works using diagrams

In: Mechanical Engineering

Discussion #1: Business Forms Choose which business form (sole proprietorship, "S" Corporation, "C" Corporation, LLC, 501C3)...

Discussion #1: Business Forms

Choose which business form (sole proprietorship, "S" Corporation, "C" Corporation, LLC, 501C3) you would use for one of the following businesses that you would like to own if you could:

  • Shoe store with best friend

  • A community fresh produce market

  • Paralegal consulting services

  • Catering business — three acquaintances who met on a food website

  • Technology Consulting services

  • 3 Guys and a Girl Car Repair

  • Bookkeeping business — five accounting graduates' startup

  • Interactive gaming design- two family members

  • Second hand clothing consignment shop-(one dressmaker and a seamstress)

  • Home services business- large business with one knowledgeable owner and one banker/investor.

  • Franchise food business

2. Explain:

  • Who are the owners/founders besides yourself if any?

  • Who are your potential customers?

  • What makes your business unique in the marketplace?

3. What are the strengths? After you choose a business form, explain the following:

What are the strengths or benefits of this type of business form concerning taxes and liability based on the type of ownership and customer?

4. What are the weaknesses? Do you need a Board of Directors? What are the pitfalls of this type of structure and why based on the type of business being conducted?

In: Mechanical Engineering

Why is it true that k>1 always, where k is the specific heat ratio?

Why is it true that k>1 always, where k is the specific heat ratio?

In: Mechanical Engineering

Design a roller chain drive with the following data. Specify the chain size, the sizes and...

Design a roller chain drive with the following data. Specify the chain size, the sizes and number of teeth in the sprockets, the number of chain pitches, the center distance, and the angle of wrap of the chain for each sprocket. Specify the Tables and Diagrams you use in the solution. Driver type: Hydraulic drive Driven machine: Rock crusher Input speed (rpm): 655 Input power (hp): 120 Nominal output speed (rpm): 200 Number of strands: 4

In: Mechanical Engineering

why is pressure constant for the combustion process of a diesel cycle?

why is pressure constant for the combustion process of a diesel cycle?

In: Mechanical Engineering

Compare and contrast the Thring sufficiency concept (section 6.5 and figure 6.6 ) with the Bellagio...

Compare and contrast the Thring sufficiency concept (section 6.5 and figure 6.6 ) with
the Bellagio principles for sustainable development (section 6.6). List specific applica-
tions of each approach to a particular energy issue of interest to you (e.g., urban trans-
portation, expanding energy services in a remote region, recreation). For example, would
playing outdoor sports like baseball, football, and soccer at night or in domed stadiums
be good sustainable practices?

In: Mechanical Engineering

Instructions: Florida Power and Light (FPL) are seeking to add two more nuclear power plants on...

Instructions: Florida Power and Light (FPL) are seeking to add two more nuclear power plants on the current Homestead location where two nuclear power plants already exist.

FPL seeks two more South Florida nuclear reactors article http://articles.sun-sentinel.com/2014-05-12/business/fl-fpl-nuclear-preview-20140512_1_turkey-point-fpl-reactors
Based on what you have learned so far from this class, discuss the following:

What problems might these new power plants encounter if they were built in South Florida with a lifespan of 40 years?
What advantages are there in giving FPL the licenses for these new plants?
What disadvantages are there in giving FPL the licenses for these new plants?
What are some other alternatives to the nuclear power plants?
What precautions would you demand if these power plants were built?
Given what you know, if you were in a position to approve or disapprove the licenses, what would you vote, and why?
Make sure to:

Write a short essay or paragraph of at least 300 words.

In: Mechanical Engineering

1) A car is moving without slipping, it will have a point on its body that...

1) A car is moving without slipping, it will have a point on its body that has zero velocity. True or False?

2) When a wheel fixed at the center, rotates and accelerate in the same direction, which of the following is generated at a point on the edge of the wheel. - Radial acceleration - Tangential acceleration - Neither radial nor tangential acceleration - Both radial and tangential acceleration

3) If a circular disk is fixed at a point located on its edge and has an angular acceleration, its mass center will only have a rotational inertia and no linear acceleration. True or False?

4) Two cylinders, A and B, of the same size and mass roll down an inclined plane without slipping. Cylinder A has most of its mass concentrated at the rim, while cylinder B has most of its mass concentrated near the center. Which Cylinder will accelerate faster?

5) A wheel of radius 1m is spinning around its center with a constant angular velocity of 2rad/s. What is the tangential component of acceleration of a point located at the rim of the wheel?

6) If a rigid body is undergoing a curvilinear translation, the linear velocity of all the points on the body will be the same. True or False?

7) Consider a cart on a horizontal frictionless surface. Once the car has been given a push and released, what will happen to the cart? - Continue with constant acceleration - Slowly come to a stop - continue with decreasing acceleration - Continue with constant velocity - Immediately come to a stop

8) Consider two identical blocks of the same mass, one resting on a flat surface, and the other resting on an incline. For which case is the normal force greater?

9) The potential energy of a rigid body depends on - Weight of the body - Height at which it's placed - Both

10) A small car collides with a large truck. Which will experience the greater impact force? - Car - Truck - Both the same - Depends on the velocity of each - Depends on the mass of each

11) Two tug of war opponent each pull with a force of 160 N on opposite ends of the rope. What is the tension on the rope?

12) A wheel is rolling without slipping and traveling to the right. In which direction the friction force will act on the wheel? - To the right - To the left

13) When an elastic spring is deflected, its potential energy will depend on the original unstretched length of the spring. True or False?

14) A plate is placed in the x-y plane and a force is applied so that it rotates about the x-axis. Which mass moment of inertia is applicable: - About the x-axis - About the y-axis - About the x-axis

15) If a rigid body is in General Plane Motion ( with translation and rotation) it's kinetic energy is influenced by its mass moment of inertia. True or False?

In: Mechanical Engineering

A power press makes steel pressings. The energy required for each pressing is 5000J with each...

A power press makes steel pressings. The energy required for each pressing is 5000J with each pressing taking 1s. The time taken to remove the pressing and get the material ready for the next pressing is 4s.If the press is operated by an electric motor which runs continuously with a flywheel used to supply the extra torque required for the pressing. Determine the power of the motor that is required, the energy that has to be supplied by the flywheel and the moment of inertia of the flywheel if it’s speed is not to drop by more than 30 RPM from a speed of 600 RPM.

In: Mechanical Engineering

What is required for 2 processes (like heat and mass) to be considered analogous?

What is required for 2 processes (like heat and mass) to be considered analogous?

In: Mechanical Engineering