Git Product home page Git Product logo

csc138_lab5's Introduction

csc138_lab5

Write complete script that will solve the following problems.

Make sure to write complete scripts with appropriate comments. Attach copies of each script to this lab sheet (as lab5_a.py ... lab5_c.py) Remember to utilize the following:

def main(): Main code block goes here

if name == โ€˜mainโ€™: main()

Questions:

A. Write a Python script that takes the grades dictionary and determines who has the highest grade.

B. Write a Python script that creates a dictionary that maps names to telephone numbers. Your dictionary should contain at least 7 entries. The script should prompt the user for a name and determine whether or not the name is stored in the dictionary. If so, the script should print out the associated telephone number. If not, it should print an appropriate message.

C. Write a Python script that utilizes dictionaries to map student A-numbers to their GPA and number of credits. The program should prompt the user for an A-number, and determine whether or not a student is able to graduate. A student is able to graduate if they have at least 64 credits and their GPA is not below 2.0.

csc138_lab5's People

Contributors

sudocreate258 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.