CSS MIcroproject Latest
CSS MIcroproject Latest
Submitted- 2024-25
This micro-project work submitted in partial fulfillment of requirements for the award
of diploma in Computer Technology for subject "Advance Java Programming
(AJP)".
Computer Engineering
SUBMITTED BY
Sr
no. Roll no. Name of Student Enrollment no.
1. 40 Kshitij N. Sangole 2201210154
DEPARTMENT OF COMPUTER ENGINEERING
This is to certify that the following student of this institute have carried out this micro-
project in work “Develop a Temperature Convertor using Java” Under the guidance
of Prof. Ashirwad Ramteke Lect. in the Department of Computer Engineering
during the session 2024-2025 This work has been in the partial fulfillment of the award
for Diploma in Computer Engineering from Maharashtra State Board of Technical
Education, Mumbai.
SUBMITTED BY
2. Brief introduction:
The “Expense Tracker” is a simple web application built with HTML, CSS and JS
to help user manage and track their daily Expenses. It allow user to add, view and
categorize expenses, providing a clear overview of spending.
3. Course Outcome:
a) Create interactive web page using program flow control structure.
4. Literature Review:
The increasing demand for personal finance management tools has led to the
development of web applications that facilitate budgeting and expense tracking.
Studies highlight that digital expense trackers significantly enhance financial
literacy by providing users with real-time insights into their spending habits.
Utilizing HTML, CSS, and JavaScript, developers can create interactive and user-
friendly interfaces, making it easier for individuals to manage their finances.
Previous research demonstrates that these technologies effectively support
customizable budgeting solutions that cater to diverse user needs. This literature
underscores the importance of web-based expense trackers in empowering users
while offering valuable learning opportunities in web development.
5. Proposed methodology:
Discuss the topic with the subject teacher.
Refer to the books called “HTML, CSS, and JavaScript programming books"
to understand basic concepts.
Collect all the required resources for building the Expense Tracker.
Start working on Part A of the micro project.
Proceed with Part B after Part A completion.
HTML:
Create a form for expense name and amount inputs.
Add a button to submit expenses and a table to display them.
Include a section to show the total expense.
CSS:
Style the form, table, and total display for a clean and responsive layout.
JavaScript:
Capture input values, add expenses to the table, update the total, and enable
deleting expenses.
Algorithm:
1. Step 1: Initialize totalExpense to 0.
2. Step 2: Add Expense
o Get name and amount from input fields.
o Check if name is not empty and amount is a positive number.
o If valid:
1. Add a new row to the table with name, amount, and a delete button.
2. Update totalExpense by adding the amount.
3. Call updateTotalExpense() to refresh the total on the screen.
o If invalid, show an alert message.
3. Step 3: Update Total Expense
o Display the updated totalExpense on the page.
4. Step 4: Download Expense Sheet:
o Gather all expenses, format the data (including name, amount, and date).
o Create a downloadable .txt file with the expense data.
o Trigger the download process in the browser.
6. Action plan:
7. Resource required:
Sr. Name of
no. resource/material Specification Quantity Purpose
1. Rational:
The Expense Tracker project aims to address the critical need for personal finance
management by providing a user-friendly web application for tracking expenses. Using
HTML and CSS, the application will offer an intuitive interface that allows users to
easily input and manage their expenses. JavaScript will enable real-time data handling
and calculations, ensuring a smooth user experience.
2. Aim of Micro-project:
Develop an Expense Tracker by using HTML, CSS and JavaScript
HTML:
Create a form for expense name and amount inputs.
Add a button to submit expenses and a table to display them.
Include a section to show the total expense.
CSS:
Style the form, table, and total display for a clean and responsive layout.
JavaScript:
Capture input values, add expenses to the table, update the total, and enable
deleting expenses.
Algorithm:
1. Step 1: Initialize totalExpense to 0.
2. Step 2: Add Expense
o Get name and amount from input fields.
o Check if name is not empty and amount is a positive number.
o If valid:
1. Add a new row to the table with name, amount, and a delete button.
2. Update totalExpense by adding the amount.
3. Call updateTotalExpense() to refresh the total on the screen.
o If invalid, show an alert message.
3. Step 3: Update Total Expense
o Display the updated totalExpense on the page.
4. Step 4: Download Expense Sheet:
o Gather all expenses, format the data (including name, amount, and date).
o Create a downloadable .txt file with the expense data.
o Trigger the download process in the browser.
5. Resources used:
Name of Specification
Resource/Material
Laptop Intel i5, 8 GB RAM, 512 GB
5. Critical Thinking: Students will assess pollution causes and solutions critically.
7. Project Code: -
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Expense Tracker</title>
<style>
body,
form,
#expenses {
font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
margin: 0;
padding: 1em;
background: #f0f0f0;
}
header,
th,
button {
background: #333;
color: #fff;
text-align: center;
}
#expenses,
form {
width: 60%;
margin: 2em auto;
background: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
table {
width: 100%;
margin-top: 1em;
border-collapse: collapse;
}
th,td {
border: 1px solid #ddd;
padding: 12px;
text-align: left;
}
label,
input,
button {
display: block;
margin-bottom: 1em;
}
button {
padding: 0.8em;
border: none;
cursor: pointer;
border-radius: 4px;
}
#totalExpense {
margin-top: 1em;
font-size: 18px;
}
</style>
</head>
<body>
<header>
<h1>Expense Tracker</h1>
</header>
<form id="expenseForm">
<label for="expenseName">Expense Name:</label>
<input type="text" id="expenseName" required>
<div id="expenses">
<h2>Expense List</h2>
<table>
<thead>
<tr>
<th>Name</th>
<th>Amount</th>
</tr>
</thead>
<tbody id="expenseList"></tbody>
</table>
<div id="totalExpense">Total Expense: ₹0</div>
<button id="downloadBtn" onclick="downloadExpenseSheet()">Download Expense Sheet</button>
</div>
<script src="script.js"></script>
</body>
</html>
JS CODE
var totalExpense = 0;
function addExpense() {
var name = document.getElementById("expenseName").value;
var amount = parseFloat(document.getElementById("expenseAmount").value);
totalExpense += amount;
updateTotalExpense();
} else {
alert("Please enter valid values.");
}
}
function updateTotalExpense() {
document.getElementById("totalExpense").textContent = "Total Expense: ₹" + totalExpense;
}
function downloadExpenseSheet() {
var data = "Name \tAmount\n" + generateExpenseData();
var blob = new Blob([data], { type: 'text/plain' });
var a = document.createElement('a');
a.href = window.URL.createObjectURL(blob);
a.download = 'expense_sheet.txt';
a.click();
}
function generateExpenseData() {
var rows = document.getElementById("expenseList").getElementsByTagName("tr");
var data = "";
// Simple for loop to gather row data
for (var i = 0; i < rows.length; i++) {
data += rows[i].innerText + "\n\t"; // Get text for each row
}
return data;
}
OUTPUT :
8. References: -
1. Additional Resources:
GitHub: https://github.com/
- Explore open-source inventory management projects for inspiration.