Questions
The purpose of this problem is to use graphic user interface (GUI) to interactively store grades...

The purpose of this problem is to use graphic user interface (GUI) to interactively store grades in a text file, rather than adding them manually to a script. Follow these steps to complete the program:

Step 1. Use a question dialog box and ask the user “Do you want to run this Program?” with two options for “yes” and “no”. If the user’s answer is “yes”, go to the next step, otherwise, go to Step 6.

Step 2. Create a file using fopen command to store the data.

Step 3. Use a while loop and create an input dialog box similar to that of Figure 1 inside the loop.

Step 4. Every time that the users enters the values, check whether the grade is -1 or not. If the grade is not -1, store the name, student ID, and grade in one line in the file using fprintf command. If the Student ID was shorter or longer than 7 digits, an error dialog box should appear and give an appropriate error message and display a fresh input dialog box. If the entry was correct, make sure to separate the data at each line by using horizontal tabs (this can be done by typing \t in the fprintf argument). Remember that the output of an input dialog box is a cellular array and you have to convert it into a string (by using curled brackets to access a specific element of the input dialog result) before storing it in a file.

Step 5. Close the file.

Step 6. Output a message using a message dialog box indicating that the problem is terminated. If you would like to use strcmp function, you may.

Step 7. Write the same code in a way that it stores the data in an Excel spreadsheet with proper formatting

In: Mechanical Engineering

It is observed that polycrystalline chromium has a higher tensile strength than single crystalline chromium. Propose...

It is observed that polycrystalline chromium has a higher tensile strength than single crystalline chromium. Propose a reason for this difference in tensile strength

In: Mechanical Engineering

3.A simple Rankine cycle uses water as the working fluid. The boiler operates at 6000 kPa...

3.A simple Rankine cycle uses water as the working fluid. The boiler operates at 6000 kPa and the condenser at 50 kPa. At the entrance to the turbine, the temperature is 450°C. The isentropic efficiency of the turbine is 90 percent, pressure and pump losses are negligible, and the water leaving the condenser is subcooled by 6.3°C. The boiler is sized for a mass flow rate of 20 kg/s. Determine (a) the rate at which heat is added in the boiler, (15 points) (b)the power required to operate the pumps, (15 points) (c) the net power produced by the cycle, and the thermal efficiency

In: Mechanical Engineering

Alloy Name T SG S?y MPa SE GPa SKIC   MPa(m)0.5 Al-7075 T6 2.81 179 25.5 9.25 4340...

Alloy Name

T

SG

S?y MPa

SE GPa

SKIC   MPa(m)0.5

Al-7075

T6

2.81

179

25.5

9.25

4340 steel

OQT

7.85

148

26.1

7.64

Mg-ZK61A

T6

1.83

106

24.6

8.19

Ti-8Al-1Mo-1V

STA

4.37

130

14.6

18.76

Problem 9

In a design where weight is a critical factor, such as in a space shuttle frame, and specific yield strength, specific elastic modulus, and specific fracture toughness are of equal importance, using the above table, Calculate to show which of the materials Inconel Al-7075, 4340 steel, Mg-ZK61A, or Ti-8Al-1Mo-1V in the above table, is the best material choice?

In: Mechanical Engineering

The uniform pole of length 5 m and mass M = 94.2 kg is placed against...

The uniform pole of length 5 m and mass M = 94.2 kg is placed against the supporting surfaces shown. If the coefficient of static friction at both A and B is 0.25. Determine the maximum angle theta (in degrees) at which the pole can be placed before it begins to slip.

In: Mechanical Engineering

Use knowledge of engineering science and mathematics to predict some key performance metrics of the caravan (weight, cost of manufarure, acceleration etc)

Use knowledge of engineering science and mathematics to predict some key performance metrics of the caravan (weight, cost of manufarure, acceleration etc)

In: Mechanical Engineering

A refrigerator using R-12 as the working fluid keeps the refrigerated space at ?16? in an...

A refrigerator using R-12 as the working fluid keeps the refrigerated space at ?16? in an environment at 27?. You are asked to upgrade this refrigerator by replacing R-12 with the ozone-friendly R-134a. What changes in the pressure levels would you suggest in the new system? How do you think the COP of the new system will compare to the COP of the old system?

In: Mechanical Engineering

write down the slater determinant For the ground state of Beryllium (4 electrons )and indicate which...

write down the slater determinant For the ground state of Beryllium (4 electrons )and indicate which states are allowed or not? Explain on of the terms ? does the wave function that is given satisfy the pauli exclusion principle ? Explain your reasons to

In: Mechanical Engineering

A refrigerator using R-12 as the working fluid keeps the refrigerated space at ?16? in an...

A refrigerator using R-12 as the working fluid keeps the refrigerated space at ?16? in an environment at 27?. You are asked to upgrade this refrigerator by replacing R-12 with the ozone-friendly R-134a. What changes in the pressure levels would you suggest in the new system? How do you think the COP of the new system will compare to the COP of the old system?

In: Mechanical Engineering

Write a Matlab script that computes the element level stiffness matrix and force vector for linear...

Write a Matlab script that computes the element level stiffness matrix and force vector for linear elasticity.

In: Mechanical Engineering

Explain the function of the following components with reference to sheet metal (progressive) dies. a) Pilot,...

Explain the function of the following components with reference to sheet metal (progressive) dies.

a) Pilot, and b) Back Gage

In: Mechanical Engineering

In the boiler of a power plant are tubes through which water flows as it is...

In the boiler of a power plant are tubes through which water flows as it is brought from 0.8 MPa, 150°C to 240°C at essentially constant pressure. The total mass flow rate of the water is 100 kg/s. Combustion gases passing over the tubes cool from 1067 to 277 °C at essentially constant pressure. The combustion gases can be modeled as air as an ideal gas. There is no significant heat transfer from the boiler to its surroundings. Assuming steady state and neglecting kinetic and potential energy effects, determine

(a) the mass flow rate of the combustion gases, in kg/s
(b) the rate of exergy destruction, in kJ/s.
(c) the exergetic efficiency given by Eq. 7.45.


Let T0 = 25°C, p0 = 1 atm.
Round your answers to 3 significant digits.

In: Mechanical Engineering

General Motor Programs solve an issue/flaw of Motor Control Theory. Which one is it? Explain how/why...

General Motor Programs solve an issue/flaw of Motor Control Theory. Which one is it? Explain how/why they solve this issue?

In: Mechanical Engineering

In a certain space to be air conditioned the sensible and latent heat loads are 20.60...

In a certain space to be air conditioned the sensible and latent heat loads are 20.60 kW and 6.78 kW, respectively. Outside air is at 33 degrees dry bulb and 24 degrees wet bulb temperatures. The space is to be maintained at 25 degrees with a relative humidity not exceeding 50%. All outside air is supplied with reheater. The conditioned air enters at 18 degrees. Determine
1. The refrigeration load required
2. The capacity of the supply fan, and
3. The heat supplied in the reheater

In: Mechanical Engineering

If the values for reduced pressure and compressibility factor for ethylene are 2 and 0.6 respectively,...

If the values for reduced pressure and compressibility factor for ethylene are 2 and 0.6 respectively, compute the temperature.

In: Mechanical Engineering