GROUP MEMBERS GROUP MEMBERS NAMA NO MATRIK SOO CHAN CHUAN AE070264 FADHULLAH BIN AMINUDDIN AE070119 CALVIN TAN KWANG YUEN AE070254 MOHAMAD IDHAM BIN IDRIS CHANDRAN AE070122 MOHD FARHAN BIN ISMAIL AE070103 MUHAMMAD AFIQ BIN BAHRUDIN AE070150 THEN KAI HAO AE070243 MUHAMAD ANNAS BIN ABDULLAH AE070114 NAMA PENSYARAH: PUAN ZARINA BINTI TUKIRAN
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
• Constrain:The program will not run if the selection to find
relation of resistance with resistivity, length and cross-sectional area is invalid.
If the input value is character the program will not run.
Problem statement 2:Flow Chart
Problem Statement 2: Coding and OutputProblem Statement 2: Coding and Output
• Coding
• Output
Problem Statement 3:• Design a system or program that is able to
calculate the values of v(t) and i(t) for time interval of 0 to 10 seconds for the circuit below.
• Problem Input:– The given value for Vs = 10cos4t, R = 5 Ω and c
= 0.1F • Problem Output:• Value of v(t) and i(t)
• Relevant Formula:– v(t) = (10 cos ( 4t X ( π/180)))– i(t) = (10 cos ( 4t X (π/180))) / (3.2 cos ((4t +
51.34) X (π/180)))
• Constrain:• The constrain of this program is that it can
only calculate the value of v(t) and i(t) for the circuit that is given by the question with a fix value of Vs = 10cos4t, R = 5 Ω and c = 0.1F
Problem statement 3: Flow Chart
Problem Statement 3: Coding and OutputProblem Statement 3: Coding and Output
• Coding
• Output
Problem Statement 4:• Develop a program that contains at least five terms
related with electrical circuit theory and electrical technology field. The program is also able to add, update/edit and display the glossary.
• Problem input:• Input purpose
• Problem output: • Add glossary, edit/update glossary or display glossary • Constraint :• This program will not show the terms automatically
once this program is executed and the user has to key in the data first before they can view the glossary entered.
• Relevant formula: • None
Problem statement 4: Flow Chart
Problem Statement 4: Coding and OutputProblem Statement 4: Coding and Output
• Coding
• Output
Problem Statement 5:• Develop a program that develops a true/false
quiz that consists of twenty five questions. The program must be able to show only 5 random questions at a time. Besides that, the entire user’s mark must be recorded on text file.
• Problem input• (i) Student Info• (ii) Answer(yes or no) /*represent the
answer for the question*/
• Problem output• Display student info, result and save file
mark.
• Relevant formula• Total Mark = Total correct answer.
• Constrain
• The randomly selected question can be repeated, which mean the same question can be ask again at a time.
Problem statement 5: Flow Chart
R<5
CALCULATE MARK.
MARK=(RIGHT/RIGHT+WRONG)
GET STUDENT CHOICE
BEGIN==0
RETURN
B
Problem Statement 5: Coding and OutputProblem Statement 5: Coding and Output
• Coding
• Output
Saved FileSaved File
Final CodingFinal Coding
• Final Combine coding
Conclusion and SuggestionConclusion and Suggestion Improvement can be done in order to make the program more useful
and efficient. For problem statement 1, a program should be developed that it can
calculate the value of the capacitors which are connected in both series and parallel.
For problem statement 2, it will be better if the program can show the difference between the resistance with resistivity, cross-sectional area and length of a material.
For problem statement 3, program can be designed to calculate the circuit combination of currents and the voltages instead of the time interval of 0 to 10 second.
For problem statement 4, the program should be able to delete or remove the glossary.
For problem statement 5, the program should be designed such a way the same question will not repeat itself for the next student who answer the next set of question that is randomly pick by the program.