Computer Science—Python Programming

In this assignment, you will write a program that asks the user to enter 8 numeric tests scores (out of 100 for each test). The program should calculate the average of the 8 numeric scores and then display a corresponding letter grade.
Write the following functions in the program:
calc_average – this function should ask the user for 8 test scores and return the average.
determine_grade – this function should accept a test score average as an argument and return a letter grade for the score based on the following grading scale:
90-100 A
80-89 B
70-79 C
60-69 D
Below 60 F
# The autograder will look for It is also case-sensitive
# So even changing the file name to will score you a zero
### Programming Assignment ###
# Complete the calc_average() and determine_grade() functions
# Compare with the expected result given in the assignment description
# IMPORTANT: Before you submit, make sure your program produces the expected result
# as shown in the assignment description
# Do NOT change the function header calc_average()
def calc_average():
# Use a loop and ask the user to enter EIGHT scores
# Use “Please enter score #{}:”.format() to construct the message for input()
# so that it matches the expected output.
# DO NOT change the the text, otherwise you may not receive the desired credit
# convert avg to integer and return the value. Do NOT change
return int(avg)
# Do NOT change the function header determine_grade(score)
def determine_grade(score):
# Convert the numeric score into letter grade
# 90-100: A
# 80-89: B
# 70-79: C
# 60-69: D
# below 60: F
return grade
# Do NOT change any of the lines below
def main():
avg = calc_average()
grade = determine_grade(avg)
print (“Your average grade is:”, grade)
if __name__ == “__main__”:


Question 2: Java Program

Need assignment help for this question?

If you need assistance with writing your essay, we are ready to help you!






Why Choose Us: Cost-efficiency, Plagiarism free, Money Back Guarantee, On-time Delivery, Total Сonfidentiality, 24/7 Support, 100% originality

General considerations
A scope is delivered with a brief description of each practical work. The student will be
responsible for the design, business considerations, database design (if necessary).
Keep in mind that there should not be less than 4 nor more than 6 entities in total.
Keep in mind that this subject does not assess database design or SQL handling.
Object-oriented design is evaluated in the course. Special emphasis is placed on concepts
seen in the subject such as Coupling/Cohesion and code reuse.
The first delivery, which fulfils the function of a second partial, will consist of a limited scope,
namely: taking a single entity from the entire system, a complete CRUD must be performed,
including exception handling and screens in Swing.
Each practical work must be “defended” on the day of the final evaluation, explaining what
the design considerations were and justifying them.
( If I could have detailed comments so I can understand the code and know how to explain
each step of it)
Particular considerations of each practical work
– The practical works, like any evaluation instance, are approved with 4 (four).
– Basic functionality: without this functionality, at least, the TP does not pass. If it is
and applies the concepts seen in the subject, then it will be considered simply
“approved” (4 – four).
– Additional: to begin to make the TP a more complete job and begin to add above
what was delivered in point 2.
– Bonus points: the extra effort to fulfill those points will be valued (only if point 2 and 3
are completed).
Work: Clone Outlook Express
An email client must be developed, with functionality similar to the classic Outlook express.
Basic functionality:
Send and receive emails from/to a server, show inbox, outbox and sent.
Sending and receiving should NOT be developed from scratch, but a library should be used.
The most common is JavaMail (look for it on the Java site).
Must have contact management against a database.
Messages received in the inbox and drafts in the outbox can be saved to a database or to
Graphic interface: buttons at the top to send and receive and manage contacts, list of trays
on the left. Mailing list to the right. Reading pane at the bottom of the screen.
Have a server configuration screen (host, port, etc.).
Manage email folders, displaying them as a tree on the left.
Have the menus and buttons with the same options (Example: Mail Menu >
Send and Receive that do and reuse the same send and receive event).
Buttons with mnemonics or key combinations.
Add icons to buttons.
Bonus points:
Autocomplete previously used addresses.
Manage a calendar.
Manage profiles (different users log in and load different
server configurations).
Status bar at the bottom of the screen indicating what is being done.
doing (sending and receiving… connecting… etc.).

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply