Vous êtes sur la page 1sur 2

Analog and digital system simulators are used in almost every industry and profession.

Structural engineers design buildings with seismic simulators; electronic system designers develop integrated circuits with circuit simulators; and scientists create new materials with molecular simulators. Identification Analog system simulators are used to simulate the behavior of physical phonemes such as movement, temperature, sound, pressure and light. Digital system simulators are used to simulate the behavior of digital electronic circuits, computer software, computer networks and telephone exchange systems. Types Analog system simulation models are based on mathematical equations that are derived from the natural laws of physics. Digital system simulation models are based on Boolean equations that just indicate the state of a system, such as the on or off state. Function An analog system simulation of a light bulb would require physics equations that describe the illumination of the light as a function of electron and photon activity. A digital simulation of a light bulb would require a Boolean equation that would indicate just whether the light was on or off. Features Analog system simulators can simulate the frequency response of system; digital system simulators can not. Time An analog simulator can help calculate a response for any point in time, but a digital simulator can only calculate a response at specific points in time. Considerations Analog system simulators are designed with an analog hardware description language, and digital system simulators are designed with a digital hardware description language. Source:

Read more: What is the difference between analog&digital system simulation? | Answerbag http://www.answerbag.com/q_view/1956901#ixzz2r3oTOuJX

Print an introduction Input the amount of the principal (principal) Input the annual percentage rate (apr) Repeat 10 times: principal = principal * (1 + apr) Output the value of principal
1. //Calculate Compound interest 2. //Input : p(Principal amount),r(interest rate),t(Time period in years),n(number of time s interest is levied in a year) 3. 4. #include<stdio.h> 5. #include<conio.h> 6. int main() 7. { 8. int p,r,t; 9. float final,ci; 10. printf("Enter principle amount ");

11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. }

scanf("%d",&p); printf("Enter interest rate "); scanf("%d",&r); printf("Enter time period(years) "); scanf("%d",&t); printf("Enter number of times the interest is levied in a year"); scanf("%d",&n); final=(float)p(1+pow(r/(n*100)),(t*n)); ci=final-p; printf("Amount with compound interest is %.2f",ci);

Vous aimerez peut-être aussi