Programming – Example of a Selection Structure

Introduction:

The purpose of this paper is to provide a simple example of a selection structure that is contained as part of the Programming Solution Proposal I am developing throughout the course of this programming class. The selection structure I chose to make an example of isn’t really inclusive as part of my original programming proposal due in week 5, however, I devised a very simple “If-Then-Else” structure that uses somewhat of the same information and calculation as what I may use in my final proposal. I’ve written the pseudocode for a section that at this time appears to make sense to use, given the selection structure I chose, and I also paralleled that with a Visual Logic flowchart.

The visual logic flowchart was executed correctly with specific values that are to be used in order for others to properly test it. These values will change as the program gets fine-tuned, however, for now there are specific values that must be used to obtain the correct percentages. Purpose of the structure

The reason I chose the “If-Then-Else” structure is because it seemed to make the most sense for my program and it didn’t appear to be too complicated a structure to master. Even though this structure may not be included as part of my final proposal paper, I thought it would be good to work with and verify if I could somehow make it work. The program I’ll ultimately be creating is one where seasonal stats will be entered in by an assistant coach, for athletes on any given basketball team.

Through this they will be able to determine a players overall field goal average, free throw percentage, rebound average, etc. However, for now, I’ve decided to simply use an If-Then-Else structure that displays a friendly output message of what the user might see if he/she entered their “field goals attempted” value and “field goals made” value. The pseudocode for the If-Then-Else structure

Again, I must reiterate, that the selection structure I chose to use may not be part of my final proposal paper, however, the pseudocode that is displayed below is a simple and short example of how I used the information for my original proposal, using the If-Then-Else structure: Write “Enter amount of field goals attempted: “

Input FGA
Write “Enter amount of field goals made: “
Input FGM
Set Average = FGM / FGA
If Average => 50 Then
Set FieldGoalAverage = Average
Write “Your field goal average is: ” + FieldGoalAverage + “%” Else
Write “Your field goal average is: ” + FieldGoalAverage + “%” Write “You need to work on your shooting game!”
End If

Visual Logic flowchart
The Visual Logic flowchart I put together, which parallels the pseudocode above, has been executed successfully. The field goal average in this VL example is calculated using the following values: FieldGoalAttempts (FGsAttempted): 5000

FieldGoalsMade (FGsMade): 50
The values for the variables above test the ‘True’ decision statement. Entering the following values below execute and test the ‘False’ decision statement: FieldGoalAttempts (FGsAttempted): 2000

FieldGoalsMade (FGsMade): 50
The .vls file has been uploaded as a separate attachment in the Assignments tab of the UoP Student website.

Calculate the price
Make an order in advance and get the best price
Pages (550 words)
$0.00
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
How it works
Receive a 100% original paper that will pass Turnitin from a top essay writing service
step 1
Upload your instructions
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
Pro service tips
How to get the most out of your experience with MyStudyWriters
One writer throughout the entire course
If you like the writer, you can hire them again. Just copy & paste their ID on the order form ("Preferred Writer's ID" field). This way, your vocabulary will be uniform, and the writer will be aware of your needs.
The same paper from different writers
You can order essay or any other work from two different writers to choose the best one or give another version to a friend. This can be done through the add-on "Same paper from another writer."
Copy of sources used by the writer
Our college essay writers work with ScienceDirect and other databases. They can send you articles or materials used in PDF or through screenshots. Just tick the "Copy of sources" field on the order form.
Testimonials
See why 20k+ students have chosen us as their sole writing assistance provider
Check out the latest reviews and opinions submitted by real customers worldwide and make an informed decision.
LEADERSHIP
excellent job
Customer 452773, August 12th, 2023
Nursing
thank you so much
Customer 452749, June 10th, 2021
FIN571
excellent
Customer 452773, March 15th, 2024
English 101
IThank you
Customer 452631, April 6th, 2021
English 101
great summery in terms of the time given. it lacks a bit of clarity but otherwise perfect.
Customer 452747, June 9th, 2021
Criminal Justice
This has been the greatest help while I am recovering from an illness. Thank your team so much.
Customer 452671, May 2nd, 2021
Human Resources Management (HRM)
excellent, great job
Customer 452773, June 19th, 2023
History
Looks great and appreciate the help.
Customer 452675, April 26th, 2021
Data 564
excellent work
Customer 452773, April 11th, 2024
Business and administrative studies
perfect
Customer 452773, February 23rd, 2023
Leadership Studies
awesome work as always
Customer 452773, August 19th, 2023
Sociology
THANK YOUUUUU
Customer 452591, March 18th, 2021
11,595
Customer reviews in total
96%
Current satisfaction rate
3 pages
Average paper length
37%
Customers referred by a friend
OUR GIFT TO YOU
15% OFF your first order
Use a coupon FIRST15 and enjoy expert help with any task at the most affordable price.
Claim my 15% OFF Order in Chat
Close

Sometimes it is hard to do all the work on your own

Let us help you get a good grade on your paper. Get professional help and free up your time for more important courses. Let us handle your;

  • Dissertations and Thesis
  • Essays
  • All Assignments

  • Research papers
  • Terms Papers
  • Online Classes
Live ChatWhatsApp