Answer:
See explaination for the program code
Explanation:
The Programming code:
inFile = open("stuff.txt", "r")
num = []
Sum = 0
for val in inFile.readlines():
value = val.split(",")
Sum = Sum + int(value[1])
print("Sum of second number on every line in the file is: ", Sum)
inFile.close()
Please kindly check attachment for output
Answer:
For designing a database suitable for a University registrar, the following information is included which are Information about Students, Information about Departments, Information about Professors, Information about courses, Student Grades,TA's for a course, Department offering different courses.
In creating the database registrar system the following values are defined such as Entity, Attributes of entities,The relationship among entities.
Explanation:
Solution
The following requirements are for designing of database for a University registrar.
The Database Schema includes the following:
- Information about Students
- Information about Departments.
- Information about Professors.
- Information about courses.
- Student Grades.
- TA's for a course.
- Department offering different courses.
Now,
For the design of Database for Registrar System we need to define the following:
(1)Entity: Student, Course, Instructor, Course offering.
(2) Attributes of Entities:
- Student entity has Sid, name, program as its attributes
- Course has Course_n, title, credits, and syllabus as its attributes
- Instructor has iid ,name ,dept, title as its attributes
- Course offering has section_no ,time, room, year,semester as its attributes
(3) Relationship among various entities:
- Enrolls
- Teaches
- © is offered
Note: kindly find an attached copy of the E-R Diagram for University Registrar below, and his diagram shows student entity enrolls various courses which can be having teaches relationship with instructor. Course is being offered by relationship is offered by course offering.
Answer:
Social change in the broadest sense is any change in social relations. Viewed this way, social change is an ever-present phenomenon in any society.
Explanation:
for a word document in an email, you open email and click on the paperclip, then go into your files and find the word document (save it first) then click on that and write the email and send it.