Can someone help me out with number 17 programming in matlab
Can someone help me out with number 17 programming in matlab
Write a program that will ask the user to input a single number N. If the number is nonzero, one hundred element row vector named SEQ will be filled with the values 0.01*N, 0.02*N.....0.99*N, N, Note that this must work for both positive and negative values of N. After filling the vector, the program should ask if this is correct, or does the user want to enter a new value for N, in which case it should refill SEQ with the corrected values. This should continue until the user enters zero, at which point the program terminates. You are writing to control a chemical reaction. Sensors are used to place values in to the variables temp (temperature in degree Celsius), pres (pressure in atmosphere), pH (pH of solution), and Time (elapsed time in minutes since start of the reaction). A function called update reads the sensors and modifies the contents of the variables to indicate the current conditions. To use the update function, you simply include the line {Temp, pres, pH, Time} = update; in your code needed. Write the program that will use the update function once every minute to read new values from the sensors, and continue doing so as long as the pH has decreased by at least 0.02 since the last reading. If at any time the pressure exceeds 5 atmospheres of the temperature exceeds 200 degrees Celsius, a message should be generated indicating which parameter is beyond the safe limits and the parameter value. In this case, the program should call the function terminate which will shut down the reaction and the program stops after printing a message to the screen such as Reaction terminated after X minutes. Final pH is x. xxx. where X and x.xxx arc replaced with the elapsed time and the final pH If at any point, the pressure exceeds 4 atmospheres or the temperature exceeds 175 degrees Celsius, an appropriate warning should be generated stating which parameter is too high and what its value is. but the reaction should continue and the program keep running. When the pH has decreased by less than 0.02 from the previous reading, the reaction should be terminated, a message printed giving elapsed time and final pH as above, and the program should end. You may assume that the initial pH is 8.0. the initial temperature is 30 degrees Celsius the initial pressure is 1 atmospheres, and the initial time is 0. You are studying the effect of experience on the productivity of workers. For a group of new workers, you record how many units each person completes per day for several weeks. You make the assumption that the average of three consecutive days is notSolution
hardware ideas; AND, OR, NOR, NAND Gates; turn-Flops: RS, JK, Toggle; Registers repeated; basic pc business enterprise; Micro Operations; machine cycles and instructions; MOV, JMP, JNS practise implementation ,commonplace I/O gadgets ,The Mouse;
Arrays; addressing modes; decimal to floating factor representation,oblique addressing, arrays; floating factor instructions; reminiscence mapped I/O and non-memory mapped I/O;meeting language I/O instructions ,non-memory mapped I/O; system I/O
hardware interrupt; assembly language code that ,implements an interrupt ,device INTERRUPTS
Get instantaneous help for meeting Language programming
