# PRG 211 Entire Course

https://uopcourses.com/category/prg-211/

PRG/211
Algorithms and Logic for Computer Programming

**********************************************
https://uopcourses.com/category/prg-211/
**********************************************

PRG 211 Week 1 Individual: Visual Logic®
This assignment ensures that the steps in the Week One task, "Visual Logic® Installation", have been completed in preparation for the Visual Logic® exercises and assignments in Weeks Two through Five.
Complete the steps in the Week One task, "Visual Logic® Installation."
Create the Visual Logic® program "Hello Name" outlined in A Guide to Working with Visual Logic®. Also, include an additional output message that displays the current date.
Save the Visual Logic® (vls) file you created in a single folder structure you zip into a single file to submit. The file name should denote your last name (e.g., Smith.vls).
Submit the zip file containing your file using the Assignment Files tab.

PRG 211 Week 1 Individual: Algorithm/Task List
This assignment involves creating an algorithm. An algorithm (pronounced AL-go-rith-um) is a procedure or formula for solving a problem. We will see in future weeks how the detailed steps of this type of procedure relate to pseudocode and, in general, to the development of programming flow and logic.
"An algorithm is a specific set of instructions for carrying out a procedure or solving a problem, usually with the requirement that the procedure terminate at some point. Specific algorithms sometimes also go by the name method, procedure, or technique. The word algorithm is a distortion of al-Khwārizmī, a Persian mathematician who wrote an influential treatise about algebraic methods." Weisstein, E. (n.d.). Algorithm. Retrieved from mathworld.wolfram.com/Algorithm.html
Resources:

• Watch the Khan Academy video "Intro to Algorithms."

• Watch Lesson 1, "Programming Basics," of the Lynda.com® video "Foundations of Programming: Fundamentals" with Simon Allardice.

Identify a common task that might occur regularly. The task should be one that might occur in a business setting rather than one in someone's personal life.
Create a 1-page Memo using the Memo Template that lists the 15 to 20 steps required to perform the identified task. The steps should be written in a clear and easy-to-read format so that someone else could complete them without further explanation. When describing the steps:

• They should be observable

• Use an active verb and object format ("Open the desk drawer", "Ask the user for the amount")

• Use short phrases, as opposed to complete sentences. But, ensure it is clear and understandable to someone not familiar with the process.

Submit your assignment using the Assignment Files tab.

PRG 211 Week 2 Individual: Visual Logic®: Calculations
Select two calculation tasks that a program could perform that could be used by a small business.
Each task must include the following:

• Inputting a value

• Performing a calculation on that value

• Outputting the value

Example calculations include the following:

• Calculating sales tax on a sale

• Converting from Fahrenheit to Celsius

• Figuring a total bulk sale price based on price per unit and number of units

Create a separate 1/2-page Memo using the Memo Template for each of the two tasks. Each document should contain:

• A brief description of the task

• The pseudocode associated with the task. Base the pseudocode on the examples provided in Ch. 3 of Prelude to Programming

Create a separate Visual Logic® file to execute each of the two tasks.
Save all the files in a single folder structure you zip into a single file to submit.
Submit the zip file containing all files using the Assignment Files tab.

PRG 211 Week 3 Individual: Visual Logic®: Choice and Iteration
Select two tasks a program could perform that would be useful to a small business.
Each task must include the following:

• A conditional step

• Some form of iteration

• Entering a number of items and calculating sales tax on a sale; include a step offering a warranty for each item

• Converting from Fahrenheit to Celsius or the reverse over temperatures for several days

• Figuring out a total bulk sale price based on price per unit and number of units

These items may build on the tasks used in your Week Two assignment or may be unique.
Create a 1/2-page Memo using the Memo Template for each of the tasks. Each document should include:

• A brief description of the task

• The pseudocode associated with the task. Base the pseudocode on the examples provided in Chs. 4, 5, and 6 of Prelude to Programming.

Create Visual Logic® files to execute each of the tasks.
Save all files in a single folder structure you zip into a single file to submit.
Submit the zip file containing all files using the Assignments Files tab.

PRG 211 Week 4 Individual: Array Manipulation
Select a task that a program could perform over an array of items that would be used by a small business.

• Declaring array

• Populating the array

• Processing the items in the array

• Outputting the results of the processing (this may or may not include displaying the entire array)

You can build on your effort from a previous week or tackle a new challenge.
Create a 1/2-page Memo using the Memo Template, including the following:

• A brief description of the task

• The pseudocode associated with the task. Base the pseudocode on the examples provided in Ch. 7 of Prelude to Programming.

Create a Visual Logic® file to execute the task.
Save all the files in a single folder structure you zip into a single file to submit.
Submit a zip file containing all files using the Assignment Files tab.

PRG 211 Week 5 Individual: File Processing
The following assignment incorporates the concepts from prior weeks (variables, if-else logic, loops, and arrays), along with this week's topic of file input/output process.
Create a Visual Logic® program that will:

• Create an array of people's first names. Using a loop, read the names from a text (txt) file, and store each one into the array. The array should allow for a maximum of 100 entries. Continue to read in first names and store them into the array. The last entry in the text file, containing "LastOne," will indicate the end of the list of names.

• Prompt the user for a first name.

• Loop through the array to determine if the first name entered exists in the array. If a match is found, display a message that includes the name and a message indicating that there was a match found. If no match is found, display a message so indicating.

• Using a loop, continue to prompt the user for first names and determine if a match in the array is found. The loop should continue until the user indicates "stop" as the first name.

Resources/Tips:

• This program requires the use of nested loops. The outer loop will repeat, prompting the user for a first name until the user indicates to stop. The inner loop will search through the array for a match.

• Review the Sample Program #3 on pages 83-87 in A Guide to Working with Visual Logic® for an example of using files.

• Have the txt files, your Visual Logic® program, the Visual Logic® exe file, and the VLSig file in the same folder.

• Put quotes around each name in the text (txt) file.

Submit the following in a zip file, using the Assignment Files tab:

• Text (txt) file with names

• Visual Logic® (vls) file