to write pseudocode for a particular problem. • We have provided previous semesters’ quizzes at the end. Take a look at them so you get an idea of the pseudocode we expect. The following exercises cover the material to be covered in Quiz #2. Solutions to these exercises will not be provided, but you are welcome to discuss your solutions with the TA and the instructor during office hours. Keep in mind that in the following exercises you are being asked to provide only pseudocode.
Words: 841 - Pages: 4
Two Pseudocode examples with While loops Problem: Design an algorithm that will prompt for and receive prices of several items. After the last price is entered, the sentinel amount of –1 is entered. The algorithm should calculate the number of items purchased, total cost of the purchase before tax and with the tax of 7.5%, and display the results on the screen. A. Defining diagram: |Input |Processing |Output
Words: 589 - Pages: 3
Pseudo-code is an informal high-level description of the operating principle of a computer program or other algorithm. It uses the structural conventions of a programming language, but is intended for human reading rather than machine reading. Pseudo-code typically omits details that are not essential for human understanding of the algorithm. The programming language is augmented with natural language description details, were convenient, or with compact mathematical notation. The purpose of using
Words: 765 - Pages: 4
declares varaible cost floating= point varaible cost 6.psuedocode that declares the caraible total declare real price= 99.95 display " orginal price" input item orginal price display price 7. pseudocode statement that assign the value 27 count = 27 8. pseudocode statement that assign the value of 10 and 14 declare integar total = 0 set total =10 9. psuedocode statement that subtracts the varaible downpayment declare integar downpayment declare integar
Words: 256 - Pages: 2
sections) Due Date: 23rd Nov 2013 till 8:30am ------------------------------------------------- Note: Those who still not submitted assignment # 1, 2, 3 do submit it with assignment # 4, after that no late submission will accept. Pseudocode & Flowchart Assignment Selection Structure 1. Write pseudo-code and draw flowchart that input any number between 1 and 7 inclusive. If 1 is input, the output should be Monday, for 2 the output should be Tuesday and so on. For invalid input
Words: 282 - Pages: 2
redoing over and over again. Designing a program using algorithm, flowcharts and pseudocode are all very important and I will use all of them but I think that the most important one would be the algorithm. We need to know what steps we need to take in order to get the results that the customer wants. Without the algorithm you really wouldn’t know what to put in the flowchart or what needs to be in the mock up or pseudocode. So for me the algorithm is the most important part of the designing process.
Words: 286 - Pages: 2
PRG/211 – Week 5 Team B – Algorithm Planning Visual Logic CALORIE MANAGEMENT PROGRAM Week 2 Algorithm Planning Week 3 Program Variables for Calorie Management Week 4 Verification & workaround for Calorie Management Week 5 Learning Team Assignment ****************************************************** About the Assignment Imagine that your team of software developers won a contract to develop a program that will identify whether a person is balancing calories consumed with those being
Words: 1400 - Pages: 6
In event that was rather a stir up in the 1920’s was the Harlem Renaissance. The Harlem Renaissance was a time when African Americans all around showcased their artistic talents, showing the whites that they did indeed have talent. Obviously after the name “The Harlem Renaissance” was based in Harlem, New York. The Harlem Renaissance was a movement of writers, artist, actors, musicians, and poets of color expressing themselves through their talents. They used these talents not only to express themselves
Words: 355 - Pages: 2
Main module: Declare Jobs As String Declare Date As String Declare Spring As String Declare Fall As String Declare Winter As String Declare Storm As String Declare Monthly As String Declare Season As INT Write “Choose what tasks you need to check!” Write “Spring………..1” Write “Fall…………..2” Write “Winter……….3” Write “Storm………..4” Write “Monthly……..5” Input = Season If (Season < 0 or Season > 6) Then Write “You need to input a number between 1 – 5.” If input = 1 Then
Words: 411 - Pages: 2
sequence of structure Know all of the processing symbols for flowchart Mathematical operators Pg.46 Order of precedence Know data types Pg.56 What is constant variable (named constant) Know benefits of using modules know pseudocode in sequence same as 23 know about return point (memory address location) what flowchart symbol is the module call (rectangle with 2 lines?) difference between flowchart and hierarchy chart Pg.83 parameter difference know
Words: 259 - Pages: 2