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

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

    • 720 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    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)…

    • 453 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Newport News County has a T-Ball league in Hampton, VA situated in the Mallory community. . This is a part of a large community of the local T-Ball and youth league programs offered in the area. The league is for young children between the ages of four and seven. The league is for building character, teaching team work and development. Each T-ball team consists of 12-14 kids from all the surrounding cities. The league allows for parents to come in and volunteer as a means to save cost. Though all cities don't have a team, those that have teams are named after current MLB team names.…

    • 545 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

    Pt1420 Unit 7 Study Guide

    • 582 Words
    • 3 Pages

    9.Write a program to count the number of characters in an input line. Page: 105…

    • 582 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
  • Satisfactory Essays

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

    • 503 Words
    • 3 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
  • 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
  • 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
  • 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