answersLogoWhite

0

/////////START OF PROGRAM/////////// //the main module Module Main() //declare constant variable Constant Integer SIZE=10 Constant String DAY=10 Set DAY[1] = first Set DAY[2] = second Set DAY[3] = third Set DAY[4] = forth Set DAY[5] = fifth Set DAY[6] = sixth Set DAY[7] = seventh Set DAY[8] = eighth Set DAY[9] = ninth Set DAY[10] = tenth //global variables Declare Integer scores[SIZE] Declare String scores[DAY] Declare Integer index //body of the module //sets the constants in the scores array to 1 Set scores[DAY=1] Set scores Do Display "Please enter the ", scores[DAY]," Golf score :" Set scores[DAY+1] Input scores[SIZE+1] until scores[SIZE==10] End Do //calls the insertionSort module Call insertionSort(scores, SIZE) //display the scores sorted ascendedly Display "You golf scores sorted ascendedly are: " For index = 0 to SIZE - 1 Display scores[index] End For End Module

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

How do you enter integer in python?

In Python, you can enter an integer using the input() function, which captures user input as a string. To convert this string to an integer, you can use the int() function. For example: user_input = input("Enter an integer: ") integer_value = int(user_input) This will convert the input string to an integer, assuming the user enters a valid integer.


Sort array in ascending descending order in python?

Using sorted(array,reverse=True)


What is the largest integer value that can be represented in Python?

In Python, the largest integer value is limited by the available memory, as Python's int type can grow as large as the system's memory allows. Unlike some programming languages with fixed-width integer types, Python's integers are arbitrary-precision, meaning they can handle very large values without a predefined upper limit. Therefore, the largest integer is effectively determined by the constraints of your machine rather than a specific numeric value.


What has the author Wesley Chun written?

Wesley Chun has written: 'Python fundamentals' -- subject(s): Python (Computer program language) 'Core Python programming' -- subject(s): Python (Computer program language)


Do you need Python in your PC?

Python is just a programming software, you don't actually need it to run your computer. You can use Python if you'd like to program something, or learn how to program.


How do you open a Python program with MS-DOS?

open MS-DOS in the directory you have the python file in. type "python [INSERTNAMEOFSCRIPT]"


Where does the program python run?

Python is a runtime interpreter. It usually runs on the web server.


Write a line of code that asks the python user to input an integer greater than 0 and store this value in a variable and display its value?

integer = input("Please input an integer greater than 0: ") print(integer)


Where did the computer language called PYTHON get its name?

Python is named after the comedy troupe Monty Python, not the genus of snake. The creators of Python intended it to be fun to program in, and hoped to reflect that in its name.


How do you convert float into string in python program?

str(3.1415)


How do you program a python 488p car alarm?

488P Is the remote to a Python car alarm, need to be more specific on the alarm you have.


How do you get python?

Python, the snake, requires special licences as well as expert care and feeding. The programming language Python, the computer program, can be downloaded for free for most operating systems at the Org site for Python or at sourceforge