0% found this document useful (0 votes)
16 views3 pages

Project Guide PDF

This project guide provides step-by-step instructions for creating a simple program that welcomes users, prompts for service selection, and executes BMI calculations or currency exchange. It emphasizes the importance of user input, decision-making with if/else statements, and maintaining clean, organized code through functions. The guide also includes submission instructions for the completed project on the platform.

Uploaded by

stemdigest23
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views3 pages

Project Guide PDF

This project guide provides step-by-step instructions for creating a simple program that welcomes users, prompts for service selection, and executes BMI calculations or currency exchange. It emphasizes the importance of user input, decision-making with if/else statements, and maintaining clean, organized code through functions. The guide also includes submission instructions for the completed project on the platform.

Uploaded by

stemdigest23
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Project Guide

This guide will give you hints for every step of completing the
project, these will help you scratch the surface so you can
dive straight into crafting your project. If you need additional
help, check out my own solution to writing this program

Programming 101: A Programming Journey for Absolute Beginners -


https://skl.sh/3m1gsAy
Prepared by Basil Habash - https://www.skillshare.com/r/profile/Basil-
Habash/524360941?gr_tch_ref=on&gr_trp=on
Step 1:
Welcome the user to the program and introduce the services it
offers.

This is a very basic step that demands the use of one of the most core concepts of
programming, displaying text. Try using the print function to display a string. This
string should be very simple, along the lines of:
Hello! Welcome to this program...
Then try printing a string that explains in your own way what the program does.

Step 2:
Prompt the user to choose one of the services.

This step requires obtaining data from the user, which is done using input(). Prompt
the user to enter which service they wish to use. There are many ways to do this, you
can ask the user for the name of the service, the number you labelled it with, etc...

Step 3:
Execute the code for the service they chose,
a. If the user decides to find their BMI, have them enter their mass
in kg and height in meters, then calculate their BMI using the
formula BMI=mass divided by the height squared (BMI=kg/m^2).
b. If the user chooses to exchange currencies, ask them to enter an
amount of money in a particular currency of your choice, and
convert it to the equivalent amount in your country's currency.

This step requires a decision to be made, so an if/else statement should be used to


determine which code should be executed: The one for calculating the BMI of the
user, or the one for currency exchange. The code for each of these 2 services is very
simple and requires input, printing strings and simple mathematical calculation.
Remember that you cannot use strings in mathematical calculations, so be sure to
set the input values to floats.(Since they could all take decimal values e.g.
height=1.78m, mass=76.5kg, amount=12.99$)
You can get the formulae for calculations from your search engine.
Please note that currency exchange rates differ from time to time, therefore the one
I used in the sample may not be accurate.
Step 4:
Finally, ask the user if they wish to use the program again, then
either repeat the code or terminate the program, depending on
their choice.

For this step you first have to ask the user if they want to use the program again
using input(), and storing their answer inside a variable. Then create a while loop
using that variable, so that you loop through the code you've written in steps 1,2 and
3, each time asking the user if they want to use the program again, and storing their
answer inside the variable.

Step 5:
Making your code visually simple and organized is essential for
programmers, so be sure to check that off your list!

Consider creating functions for each of the services in (a) and (b), and then calling
these functions when you need to execute them. This should make your code simple
to read. Also consider adding empty spaces along the program using print(""), so it is
visually more presentable to the user

Submitting your Project:


Submitting your class project should be a breeze. Just take a
screenshot(s) of your program file and a screenshot(s) of the result
in the shell, then upload them to the project gallery to get feedback

Here's how to submit your class project:


Head to the "Projects & Resources" tab within the class. From here, click Create
Project, follow the prompts relevant for your project, and then click Publish once
finalized.

You might also like