Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For each of the following programs, start your code with three comment lines explaining your program does, your name as the author, and today's date.

image text in transcribed
image text in transcribed
For each of the following programs, start your code with three comment lines explaining your program does, your name as the author, and today's date. 1. Define and call a void function displayMark The function has three parameters: a name, a mark and a letter grade. The function will print a sentence similar to the one in the example below. The CSCI 120 final mark for Rita is 81.0% (A-) Call the function with your name, your current mark and your current letter grade as arguments. (n) define the function - make it! dos in head and body of the function i) call the function by name use 1t1 Save your program as: DisplayMark.py and submit. 2. Define and call a void function splitBill The function has three parameters: the amount of a restaurant bill, a tip amount and the number of persons who split the bill. The function will print out the total amount (bill + tip) and the amount that each person has to pay. Call the function with any three numbers of your choice. Save your program as: SplitBill.py and submit

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

What is sampling?

Answered: 1 week ago

Question

How is the NDAA used to shape defense policies indirectly?

Answered: 1 week ago