programming assignment listed below. please use a scf for the programming exercises 1 and 2

User Generated

iba1983

Programming

Description

Please complete the Algorithm Workbench 2, 4 and 5, Debugging Exercises 2 and 3, and Programming Exercises 1 and 2 from chapter 6. Use SFC or Flowgorithm for the Programming Exercises. Please create a Word document with your solutions (copy and paste your flowcharts and pseudocode) and upload the Word document and your SCF or Flowgorithm files.

Unformatted Attachment Preview

Decision Structures and Boolean Logic S. Design nested decision structures that perform the following: If amountl is greater than 10 and amount 2 is less than 100, display the greater ofamountl and amount 2. 6. Rewrite the following If-Then-Else If statement as a select case statement. If selection 1 Then Display "You selected A." Else If selection 2 Then Display "You selected 2." Else If selection == 3 Then Display "You selected 3." Else If selection 4 Then Display "You selected 4." Else Display "Not good with numbers, eh?" End If 1.o | alternative decision ats - Sprins x Sign In | Pearson P Pearson Collections X arsoned.com/student/#player/0ac608fa-5f23-11cd-815f-35fd7eff0520/0ac608fa-5f23-11cd-815f-35fc ogic Alyomum-wurden 1. Design an If-Then statement (or a flowchart with a single all ative decision structure) that assigns 20 to the variable y and assigns 40 to the variable z if the variable x is greater than 100. 2. Design an If-Then statement (or a flowchart with a single alternative decision structure) that assigns 0 to the variable b and assigns 1 to the variable c if the variable a is less than 10. 3. Design an If-Then-Else statement (or a flowchart with a dual alternative deci- sion structure) that assigns 0 to the variable b if the variable a is less than 10. Oth- erwise, it should assign 99 to the variable b. 4. The following pseudocode contains several nested If-Then-Else statements. Unfortunately, it was written without proper alignment and indentation. Rewrite the code and use the proper conventions of alignment and indentation. If score < 60 Then Display "Your grade is F 1. IDE If score < 70 Then Display "Your grade is D." Else If score < 80 Then Display "Your grade is Else If score < 90 Then Display "Your grade is B. Else Display "Your grade is A End If End If End If End If soned.com/student/#player/0ac608fa-5f23-11cd-815f-35fd7eff0520/0ac608fa-5f23-11cd-815f-35fd7f000525 gic Decision Structures and Boolean Logic 3. The intended purpose of the following module is to determine whether the value parameter is within a specified range. The module will not work, however. Find the problem. Module checkRange ( Integer value, Integer lower, Integer upper) If value < lower AND value > upper Then Display "The value is outside the range Else Display "The value is within the range End If End Module Programming Exercises 1. Roman Numerals Design a program that prompts the user to enter a number within the range of 1 through 10. The program should display the Roman numeral version of that num- ber. If the number is outside the range of 1 through 10, the program should display an error message. 2. Areas of Rectangles The area of a rectangle is the rectangle's length times its width. Design a program that asks for the length and width of two rectangles. The program should tell the user which rectangle has the greater area, or whether the areas are the same. 3. Mass and Weight Scientists measure an object's mass in kilograms and its weight in Newtons. If you Page 46 of 51 . M End If End Module 2. The intended purpose of the following module is to set the temp parameter to the value 32.0 if it is not already equal to 32.0. This will not work as the programmer expects, however. Find the problem. Module resetTemperature (Real Ref temp) If NOT temp 32.0 Then Set temp = 32.0 End If End Module AMALAN SANAAN Page 45 of 51 e е с H wi
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

This question has not been answered.

Create a free account to get help with this and any other question!

Related Tags