Upload
gkgbu
View
215
Download
2
Embed Size (px)
Citation preview
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 introductionInput 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 times 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. scanf("%d",&p); 12. printf("Enter interest rate "); 13. scanf("%d",&r); 14. printf("Enter time period(years) "); 15. scanf("%d",&t); 16. printf("Enter number of times the interest is levied in a year"); 17. scanf("%d",&n); 18. final=(float)p(1+pow(r/(n*100)),(t*n)); 19. ci=final-p; 20. printf("Amount with compound interest is %.2f",ci); 21. }