Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Code Challenge

Learning Goals

  • creating a student grade generator
  • creating Speed Detector

Introduction

Challenge 1: Student Grade Generator Write a program that prompts the user to input student marks. The input should be between 0 and 100. Then output the correct grade:

  • A > 79
  • B - 60 to 79
  • C - 59 to 49
  • D - 40 to 49
  • E - less than 40.

Challenge 2: Speed Detector Write a program that takes as input the speed of a car e.g 80. If the speed is less than 70, it should print “Ok”. Otherwise, for every 5 km/s above the speed limit (70), it should give the driver one demerit point and print the total number of demerit points. For example, if the speed is 80, it should print: “Points: 2”. If the driver gets more than 12 points, the function should print: “License suspended”.

Solution

-Read and follow the comments in the code provided. The steps provided will guide you through the making of a student grade generator .

Contribution

  • One can open the git repository
  • Fork the repo
  • create a new branch
  • commit changes
  • push to branch
  • open a pull request
  • wait for the pull request to be reviewed and merged

Contacts

License

This codechallenge is licensed under the MIT License

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages