Answered step by step
Verified Expert Solution
Question
1 Approved Answer
import sqlite 3 class Student: def _ _ init _ _ ( self , StudentID,StudentName ) : self.StudentID = StudentID self.StudentName = StudentName def print
import sqlite
class Student:
def initself StudentID,StudentName:
self.StudentID StudentID
self.StudentName StudentName
def printstudentdetailsself:
printStudent Id: self.StudentID, Student Name:self.StudentName
def printallstudentsdetailscursorconnection:
pass
def addnewstudentselfcursor,connection:
cursor.executeINSERT INTO StudentsCoursesRegistraions StudentIDStudentName VALUES selfStudentID, self.StudentName
connection.commit
printStudent Added Successfully'
def updatestudentselfcursor,connection:
cursor.executeUPDATE StudentsCoursesRegistraions SET StudentName WHERE StudentID selfStudentName, self.StudentID
connection.commit
printStudent Updated Successfully'
def deletestudentStudentIDcursor,connection:
cursor.executeDELETE FROM StudentsCoursesRegistraions WHERE StudentID StudentID
connection.commit
printStudent Deleted Successfully'
def createtables:
cursor.executeCREATE TABLE IF NOT EXISTS StudentsCoursesRegistraions
StudentID INTEGER PRIMARY KEY,
StudentName TEXT,
CourseID INTEGER,
CourseDetails TEXT,
TeacherID INTEGER,
Teachername TEXT,
RegistrationDate TEXT
connection.commit
def mainmenu:
printwhat would you like to manage:
press for Students,
for teachers,
for courses,
for enrollment'
choice inputInput your choice:
if choice :
print
You have chosen Student Management,
press to add a new student,
to update an exsiting student,
to delete a student,
to view all students details'
studentmanagementchoice inputInput your choice:
if studentmanagementchoice :
StudentID inputinput student id:
StudentName inputinput student name:
s StudentStudentIDStudentName
saddnewstudentcursorconnection
sprintstudentdetails
elif studentmanagementchoice :
StudentID inputWhich student detail you want to update: input student id:
StudentName inputinput an updated student name:
s StudentStudentIDStudentName
supdatestudentcursorconnection
sprintstudentdetails
elif studentmanagementchoice :
Student.deletestudentcursor,connection
elif studentmanagementchoice :
Student.printallstudentsdetailscursorconnection
else:
printinput is not valid'
connection sqliteconnectschooldb
cursor connection.cursor
createtables
mainmenu
connection.close
Assignment Task
Introduction
This assessment comprises enhancing an existing codebase to create an application that addresses a practical problem. It will assess the student's understanding of software development and implement relational database and the ability to document the development process.
The objective is to enhance this codebase by incorporating supplementary features and functionalities that contribute to the overall functionality and usability of the application
Assignment Description:
This assessment task focuses on the process of improving and refining an existing codebase that has been provided. The codebase serves as the ground work for a school management application. The application will be developed using an OOP Object Oriented Programming Language Python that supports CRUD Create Read, Update, and Delete operations.
A Artefact Marks
Student will be provided with codebase for a School Management Application. The student task is to perform the following steps by utilising the provided code to:
Create an application in an OOP Object Oriented Programming Language Python that supports CRUD Create Read, Update, and Delete operations for each of the database tables using Stored Procedures.
Adding more features and functionalities to align with a problem for a given scenario.
Build a simple database using a DBMS DataBase Management System application such as MSSQL MySQL and Oracle. The application must successfully include a connected database that host tables.
Understand the design of your application with the help of ERD Entity Relational Diagrams Conceptual, Logical and physical diagrams for the completed database.
The database need to be normalised to NF Normal Form at minimum.
Your application should use sorting and searching algorithms to filter and sort loaded data.
Please note that the given codebase is not complete and require improvements and implementation of extra features and functionalities:
Required improvement to the codebase:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started