quiz حل الأسئلة الجامعية manage_search الأرشيف

تم الحل ✓
categoryبرمجة وتطوير البرمجيات schoolبكالوريوس event_available2026-07-13

السؤال

Transcribed Image Text:

When a resistor (R), capacitor (C) and battery (V) are connected in series, a charge Q builds up on the capacitor according to the formula Q(t) = CV (1 − e−1/RC) = if there is no charge on the capacitor at time t 0. The problem is to monitor the charge on the capacitor every 0.1 s in order to detect when it reaches a level of 8 units of charge, given that V = 9, R = 4 and C = 1. Write a program which displays the time and charge every 0.1 seconds until the charge first exceeds units (i.e. the last charge displayed must exceed 8). Once you have done this, rewrite the program to display the charge only while it is strictly less than 8 units.

check_circle الجواب — حل مفصل خطوة بخطوة

hourglass_top