Preview

Chapter 3 Programming Logic and Design Tony Gadis Partial

Satisfactory Essays
Open Document
Open Document
620 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Chapter 3 Programming Logic and Design Tony Gadis Partial
Assignment #3 – Chapter #3
Wharton Class Due: Tuesday, September 16th @ 8:45am
FBTC Class Due: Wednesday, September 17th @ 10:15am

M/C Questions 1 – 15, pp. 113-4 (30 pts. total – 2 pts. ea.)
1. c
2. a
3. d
4. b
5. d
6.a
7.d
8. b
9. c
10. a
11. d
12. b
13. a
14. d
15. b

T/F Questions 1 – 12, p.115 (12 pts. total – 1 pt. ea.)
1. f
2. t
3. t
4. f
5. f
6. t
7. f
8. t
9. t
10.f
11. f
12. t

Algorithm Workbench #1 - #7, pp.115-6 – Write pseudocode (not Java) (21 pts. total)
1. Module Main()
Declare userNum as Integer
Display "Enter a number" input userNum call TimesTen(userNum)
Display userNum
End

Function TimesTen(integer userNum) userNum = (userNum * 10) return userNum
End Function

Algorithm Workbench #1 - #7, pp. 115-6 (continued) – Write pseudocode (not Java)

2. def main(): showvalue() def showvalue(): print '12'

main()

3.
The value stored in ‘a’ will be: 3
The value stored in ‘b’ will be: 2
The value stored in ‘c’ will be: 1
4.

5.

6.

7.

Debugging Exercises, p.117 (3 pts. Ea. / 12 pts. Total )

1.

2.

3.

4.

Programming Exercises, (#1 - p.117) (10 points total)
#1. Kilometer Converter
Design a modular program that asks the user to enter a distance in kilometers, and the converts that distance to miles. The conversion formula is as follows:
Miles = Kilometers * 0.6214
Additional Instructions:
1. Design using pseudocode.
2. Use the following module names: getKilometers – read kilometers from user keyboard input and store in ‘kilometers’ variable showMiles – accepts ‘kilometers’ variable as input argument and displays the equivalent value in miles
Module main () Declare Real kilometers Call getKilometers (kilometers) Call showMiles (kilometers)
End Module
Module getKilometers (Real Ref kilometers) Display “Enter distance in kilometers” Input kilometers
End Module
Module

You May Also Find These Documents Helpful

  • Satisfactory Essays

    BCA SEM I / BCA 1040 / Unit 1 Logic Design Self Assessment Questions 1.2 1. Decimal means base __________. 2. The decimal value of the bit pattern 11111111 is _________. 3.…

    • 4533 Words
    • 19 Pages
    Satisfactory Essays
  • Satisfactory Essays

    a. The time in hours, minutes, and seconds is to be passed to a function named totsec().…

    • 720 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    IT205 Week 4 Assignment

    • 641 Words
    • 2 Pages

    The way the system is installed where I work is Internet is set with a LAN to WAN. I have a space where I utilize email trade, server controls enact registry. Now with the LAN server with a activate directory set permission control for user and the system administrator is responsible for the performance and operation. Are Administrator sign me to a computer this is one form of security here. Another way to prevent people from coming to the server or network, For example if we have important information it will go through a router then you will have a firewall this will prevent people from interring are network. Also every employee in the company as a CAT card, A CAT card as a pin number associate with every employee. This pin number allow you access the computer and also getting in the building but the mean point with the CAT card allow you to access computer and emails. By this will let the company know whom using the computer and access the web and emails. It prevents dishonesty with the company. Now getting that out the way I will explain what I do for work.…

    • 641 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    IF You Want To Purchase A+ Work Then Click The Link Below , Instant Download…

    • 503 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Comp 122 Week 1 Ilab

    • 662 Words
    • 3 Pages

    Shirlee is working with a measurement tool that reports measurements in centimeters. Since Shirlee is unfamiliar with centimeters, she would like her centimeter measurements to be converted into yards, feet, and inches. She would also like the result to be properly rounded to the nearest inch. As an example, if the measurement is 312 centimeters, this should be converted to 3 yards, 1 foot, and 3 inches.…

    • 662 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    unit 3

    • 313 Words
    • 2 Pages

    Design a program that calculates the total amount of meal purchased at a restaurant. The program should ask the user to enter the charge for the food, and then calculate the amount of a 15% tip and 7% sales tax. Display each of these amounts and the total.…

    • 313 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    1. Flash cards: It is similar to the traditional note cards but in electronic bases. It helps students to recall the terms and definitions of the textbook.…

    • 695 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    UNIT 2

    • 470 Words
    • 3 Pages

    5.) Write the pseudocode for a program that will determine the average miles per gallon a car gets. (Inputs should be miles driven and gallons of gas used)…

    • 470 Words
    • 3 Pages
    Satisfactory Essays
  • Better Essays

    1) You can call the module several times instead of writing it out each time.…

    • 1580 Words
    • 11 Pages
    Better Essays
  • Good Essays

    Unit 6 Assignment 2 Choosing the right programming language. (P2) There are several factors to consider when choosing the right programming language, these include Organisational policy, suitability in terms of available features and tools, availability of trained staff and development and maintenance costs. Organisational policy Organisations which make and develop loads of computer software’s and programs tend to have a policy of using a certain language, a reason for this might be because that language allows them to make all their software consistent and easier to maintain.…

    • 1542 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    Comm 1310 Exam 1

    • 4222 Words
    • 17 Pages

    Source- The originator of a thought or emotion who puts it into a code that can be understood by a receiver…

    • 4222 Words
    • 17 Pages
    Satisfactory Essays
  • Satisfactory Essays

    It is not uncommon for people to say that relationships are based upon trust. Although love alone plays a major role in a successful relationship, obstacles found within trust boundaries are often tested and played out. It is equally important to express your self-disclosure as it is to receive your partners. Communication can either make or break a relationship depending on how far one is willing to trust the other. After reading “Can We Talk? Researcher Talks About the Role of Communications in Happy Marriages” and reviewing on my own personal relationship status, I am in conclusion that good communication between interpersonal relations are key to a successful relationship/marriage.…

    • 575 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    english

    • 846 Words
    • 4 Pages

    H I G H E R S C H O O L C E R T I F I C AT E…

    • 846 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Com 101 Paper

    • 879 Words
    • 4 Pages

    Friendship can mean so much to a person. You always hear about people saying that their soul mate is their boyfriend or husband but in some cases you hear people say that a girl friend is their soul mate and someone they tell everything to and share all life’s big moments with. In my case I do have that kind of friendship with my best friend Shelby Fullerton.…

    • 879 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Senior Science Syllabus

    • 3171 Words
    • 13 Pages

    General Instructions * Reading Time – 5 minutes * Working Time – 2 hours *…

    • 3171 Words
    • 13 Pages
    Good Essays