C++
1) Write a program to control the action of a chocolate machine. Display a message to
ask what kind of chocolate is required: Plain (30p), Brazil nut (35p), Luxury (50p). Use
keyboard to get the input character. This input must be validated as P, B or L depending
on the choice. Then money must be requested, in the form: “Please insert 30p “
depending on the selection. Display the message until the required amount has been
input. If too much has been inserted, then display a message indicating the amount of
change owing. And also display a message indicating ‘Thanks for Buying’. Try to use the
function.
2) Determine the voltage across the resistor at given time intervals by using the below
equation. You enter the end time and the number of time steps required; the program will
determine the voltage at each of the time steps and stored in a text file, which can be
loaded into MATLAB and plotted.
Where Resistor R = 1e3 Ohms , Capacitor C = 1e-06 F, Applied voltage E = 10 volts.
I will send hints for the project.
Mathlab
1. Using Matlab with your labwork.
Select a labwork or any practical experiment you have completed, and use Matlab to help present or extend your results. This could include calculations, and plots, and your comments on them.
2.
The motor shown drives a fan (inertia J = 10-4 kg m2 ).
a.
Derive and plot graphs for the motor of Torque/ speed,
b.
and power /speed.
The fan load Torque/ speed is given by:Nm *823.101.02weTload−+=
c.
Plot the net torque [login to view URL] (Tnet = motor torque – fan torque)
d.
Find the approximate time to accelerate a motor under load from rest to operational speed. secs )1(0dwTnetJtimew∫=
You may use numerical methods, or the symbolic toolbox, or Simulink, or any method you choose.
[login to view URL] an engineering system in Simulink. Your system should include a source (a signal generator input), a sink (scope), and model an equation such as: dtdiLiRE+=, given R=100 ohms,, L = 100 mh, and tE50*2sin240π= display i.
Or flow to a tank: oiqqdtdhA−=; ghpoρ=; ooRqp=with A = 0.2 m2; display h. Elaborate your model with extra features. 2/900mkg=ρ
Program m-files using cells, HTML files, or word files are acceptable.
Files relevant will be uploaded to help with project.
Hi,
I am an expert VBA, Excel, Database, Mysql, Website scraper, Data extraction and Automation expert.I have over 11 years experience in the above categories and would like very much to have the opportunity to work on your project.
If you require any further information please do not hesitate to PMB.
Kind Regards,
Nash
Hello,
I have a PhD in Electrical Engineer and 10+ years experience in Matlab and Simulink.
I can delivery you the project with a well commented and high quality code, both C++ and Matlab ones.
About the delivery date, if you can send me more information about the project, I can give you a better estimate.
Looking forward to work with you.
Best regards,
Danilo