code
code
Level IV
Individual Assignment
Submitted To Birelew
- Formats:
- T-Account Format: Simple visualization with debit (left) and credit (right).
- Columnar Format: Includes date, description, reference, debit, credit, and balance.
- Processes:
- Posting: Transferring journal entries to the ledger.
- Balancing: Ensuring total debits equal total credits, determining closing balances.
- Components:
- Adjusted Trial Balance: Lists account balances after adjustments.
- Revenue (Income) Statement: Shows income, expenses, and net profit/loss.
- Revenue - COGS = Gross Profit
- Operating Profit = Gross Profit - Operating Expenses
- Balance Sheet (Statement of Financial Position): Displays assets, liabilities, and equity.
- Assets: Current, Fixed, and Intangible
- Liabilities: Current and Long-term
- Equity: Owner’s capital, retained earnings
- Closing Entries: Transfers balances from temporary to permanent accounts (e.g.,
revenues and expenses to retained earnings).
- Post-Closing Trial Balance: Confirms accounts are balanced after closing entries.
Accounting Errors
- Types of Errors:
- Original Entry Error: Wrong amount posted.
- Duplication Error: Entry recorded twice.
- Omission Error: Transaction not recorded.
- Reversal Error: Debit/Credit recorded incorrectly.
- Principle Error: Incorrect accounting principle applied.
- Commission Error: Correct account but wrong subsidiary ledger.
- Compensating Error: One error offsets another.
- Corrections: Done via adjusting journal entries and reconciliations (e.g., bank
reconciliation).
student_Name VARCHAR(100),
age INT,
grade VARCHAR(10),
section VARCHAR(10)
);
student_ID VARCHAR(20),
subject VARCHAR(50),
mark INT,
<?php
session_start();
use PhpOffice\PhpSpreadsheet\IOFactory;
$message = '';
$file = $_FILES['student_file']['tmp_name'];
try {
$spreadsheet = IOFactory::load($file);
$sheet = $spreadsheet->getActiveSheet();
$data = $sheet->toArray();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Upload Students</title>
</head>
<body>
<h2>Import Students</h2>
<button type="submit">Upload</button>
</form>
<a href="dashboard.php">Back to Dashboard</a>
</body>
</html>
<?php
session_start();
require 'db.php';
require 'vendor/autoload.php';
use PhpOffice\PhpSpreadsheet\IOFactory;
$message = '';
$file = $_FILES['marks_file']['tmp_name'];
try {
$spreadsheet = IOFactory::load($file);
$sheet = $spreadsheet->getActiveSheet();
$data = $sheet->toArray();
$stmt = $conn->prepare("INSERT INTO marks (student_ID, subject, mark) VALUES (?, ?,
?)");
$student_ID = $data[$i][0];
$mark = $data[$i][$j];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Upload Marks</title>
</head>
<body>
<h2>Import Marks</h2>
<button type="submit">Upload</button>
</form>
</body>
</html>
<?php
session_start();
require 'db.php';
// Fetch Students
// Fetch Marks
<!DOCTYPE html>
<html lang="en">
<head>
<title>Dashboard</title>
</head>
<body>
<h2>Dashboard</h2>
<h3>Student List</h3>
<table border="1">
<tr>
<th>ID</th><th>Name</th><th>Sex</th><th>Age</th><th>Grade</th><th>Section</
th>
</tr>
<tr>
</tr>
<?php endforeach; ?>
</table>
<h3>Student Marks</h3>
<table border="1">
<tr>
<th>Student ID</th><th>Subject</th><th>Mark</th>
</tr>
<tr>
</tr>
</table>
</body>
</html>
<?php
$host = 'localhost';
$dbname = 'school_management';
try {
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
?>
<?php
require 'db.php';
try {
$students = $stmt->fetchAll(PDO::FETCH_ASSOC);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>View Students</title>
</head>
<body>
<h2>Students List</h2>
<table border="1">
<tr>
<th>Student ID</th>
<th>Name</th>
<th>Sex</th>
<th>Age</th>
<th>Grade</th>
<th>Section</th>
</tr>
<?php foreach ($students as $student): ?>
<tr>
</tr>
</table>
</body>
</html>
<?php
require 'db.php';
try {
$marks = $stmt->fetchAll(PDO::FETCH_ASSOC);
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>View Marks</title>
</head>
<body>
<h2>Marks List</h2>
<table border="1">
<tr>
<th>Student ID</th>
<th>Subject 1</th>
<th>Subject 2</th>
<th>Subject 3</th>
<th>Subject 4</th>
<th>Subject 5</th>
<th>Subject 6</th>
<th>Subject 7</th>
<th>Total</th>
<th>Average</th>
<th>Semester</th>
</tr>
<tr>
<td><?= htmlspecialchars($mark['student_id']) ?></td>
</tr>
</table>
</body>
</html>
<?php
require 'db.php';
try {
$promotion = $stmt->fetchAll(PDO::FETCH_ASSOC);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Promotion Policy</title>
</head>
<body>
<h2>Promotion Result</h2>
<table border="1">
<tr>
<th>Student ID</th>
<th>Name</th>
<th>Average</th>
<th>Cumulative Rank</th>
<th>Promotion Status</th>
</tr>
<tr>
</tr>
</table>
</body>
</html>
<?php
require 'db.php';
require 'vendor/autoload.php';
use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
$stmt = $pdo->query("SELECT * FROM promotion");
$rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
$sheet = $spreadsheet->getActiveSheet();
// Header
// Table Header
$sheet->setCellValue('B5', 'Name');
$sheet->setCellValue('C5', 'Sex');
$sheet->setCellValue('D5', 'Age');
$sheet->setCellValue('G5', 'Average');
$rowNum = 6;
$rowNum++;
$filename = 'Class_Roster_Report.xlsx';
header('Content-Type: application/vnd.ms-excel');
header('Cache-Control: max-age=0');
$writer->save('php://output');
exit;