Preview

Pt1420 week 2

Satisfactory Essays
Open Document
Open Document
320 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Pt1420 week 2
PT1420
Introduction to Programming

Name: Homework 2

Ch. 2: Short Answer 1-3
(10 points)

1. What does a professional programmer usually do first to gain an understanding of a problem?
The first thing a professional programmer will usually do to gain the understanding of a problem is to work directly with, and interview the customer.

2. What is pseudocode?
Pseudocode is an informal language that has no syntax rules, and is not meant to be compiled or executed.

3. Computer programs typically perform what three steps?
1) Input is received.
2) Some process is performed on the input.
3) Output is produced.

Chapter 2: Algorithm Workbench 1-2
(5 points each)

1. Design an algorithm that prompts the user to enter his or her height and stores the user’s input in a variable named height.
Display “Height”
Input Height
Display “here is the height that you entered:” , height

2. Design an algorithm that prompts the user to enter his or her favorite color and stores the user’s input in a variable named color.
Display “Favorite color”
Input favorite color
Display “Here is your favorite color you entered:” , color

Chapter 2: Programming Exercises 1, 4
(35 points each)

1. Personal Information
Design a program that displays the following information:
Your name
Your address, with city, state, and ZIP
Your telephone number
Your college major

Pseudocode:

Flowchart:

Visual Basic Code:
Display “Matt DeCandia”
Display “1315 kossuth ave”
Display “Everett,WA 98203”
Display “425-299-6474
Display “Intro to Programing”

4. Total Purchase
A customer in a store is purchasing five items. Design a program that asks for the price of each item, and then displays the subtotal of the sale, the amount of sales tax, and the total. Assume the sales tax is 6 percent.

Purpose:

Input:

Process:

Output:

Pseudocode:
Flowchart:
Visual Basic Code:
Module TotalPurchase()
Declare Double amount, total = 0

You May Also Find These Documents Helpful

  • Good Essays

    Proj586 Week 4

    • 660 Words
    • 3 Pages

    What is your total budget for this project? Was the project within the budget as set forth by the board of directors?…

    • 660 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Twbn/123 Week 4

    • 321 Words
    • 2 Pages

    TWBN have uploaded 123 Final account packs on to Asite across 6 contractor’s communications 4 of which LU responded to on the 31/07/2017 conditionally accepting 29 Final account packs with a total value of £110,118.70 (1% of the total Value of the uploaded accounts), rejected 33 Final account packs with a total value of £4,862,956.41 (49% of the total Value of the uploaded accounts). This averages a 115.25 day delay across these four communications (Delay being calculated as the number of days between the final date to respond [Four weeks after the issue date as stated in the Contractor Data Part 1] and the date LU responded). In connection to the two communications which have not been responded to that cover 61 of the uploaded final account packs (50% of the total Value of the uploaded accounts), one of the communications (CONC7243) has a 210 day delay and the other (CONC7377) has a 149 day delay as of 24/11/2017.…

    • 321 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    PT1420 Chapter 3 Review

    • 1062 Words
    • 8 Pages

    7. because it could be a variable conflict, the global variables are inherited throughout the whole program, so it very well could conflict with others…

    • 1062 Words
    • 8 Pages
    Satisfactory Essays
  • Satisfactory Essays

    ISSC362 Week 2

    • 645 Words
    • 3 Pages

    During the scanning step of the hacking attack process, you identified known software vulnerabilities in a Windows XP Professional Workstation. List the name and number of the critical Microsoft® vulnerabilities identified. What is vulnerability “MS08-067”?…

    • 645 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    ops335 lab 2 firewall

    • 695 Words
    • 4 Pages

    6. Display the tax payable and total purchase price for the book to the customer.(tax + list price = purchase price)- data type decimal…

    • 695 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    IT104 Assignment Unit 5

    • 307 Words
    • 2 Pages

    Pseudocode is an informal language that has no syntax rules, and is not meant to be compiled or executed.…

    • 307 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Psy315 Week 4

    • 972 Words
    • 4 Pages

    11. List the five steps of hypothesis testing, and explain the procedure and logic of each.…

    • 972 Words
    • 4 Pages
    Good Essays
  • Good Essays

    PRG/420 Week 3

    • 1025 Words
    • 5 Pages

    /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package commission2; import java.lang. *; import java.text. DecimalFormat; import java.util.…

    • 1025 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Know which prepositions are in the ablative, and which are in the accusative and how they are used.…

    • 743 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Prg421 Week 2 Ia

    • 565 Words
    • 3 Pages

    import java.awt. FlowLayout; import java.awt. GridLayout; import java.awt.event. ActionEvent; import java.awt.event. ActionListener; import java.text.…

    • 565 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    POS 421 Week 1

    • 1116 Words
    • 5 Pages

    When it comes to installing Microsoft Windows Server 2008 R2, there are many different server roles that this software operating system has to offer. The first one is Active Directory Certificate Services and Active Directory Domain Services. Active Directory is a huge component when it comes to a server. This service has all the information about all of the users, the computers, and any other device that is connected to the network. The Active Directory assists IT professionals with being able to manage all of this information, and allows them to be able to facilitate any sharing that is going on between any end user in the company. Another role is the Active Directory Federation Services. This lets users have a web sign in capability, that lets users authenticate to different web applications by just logging in with one single user account. Another role that this has is the application server. This is a major role because the server can be used to hose and manage all of the critical business applications that the company needs to use. One major component also is the DHCP server, which the Windows Server does play a huge role in. The DHCP server is what assigns an IP address to any machine that is connecting to the network. This is critical because if the machine can’t get an IP address, then they won’t be able to communicate with the network. Along with the DHCP server, another role is the capability of being the fax server. This is self-explanatory, the fax server allows the company to send and receive faxes, and also allows IT personnel to be able to manage these jobs, or any settings or reports that are needed to be shown. Another major role is file services. The server basically holds all of the companies information, or software shares, so that when there is the need for a new install, or an employee needs a new piece…

    • 1116 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    POS355 Week 1 Individual

    • 574 Words
    • 2 Pages

    Memory is essential to the operation of any computer system. Memory is comprised of a large collection of bytes, each with its own address. What is memory management? It is the method for controlling and coordinating the computer’s memory, assigns blocks to numerous programs that are running in order to enhance the systems overall performance. Memory management is located in the hardware, in the operating system, within programs and applications.…

    • 574 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Calorie Management

    • 820 Words
    • 4 Pages

    For those of you who may not be computer knowledgeable, I will give you a description of the process the team will use to complete their task. The first step the team will do is analyze the problem by identifying a desired result, determining information is needed to produce these results, and determine what processes must be carried out to proceed from the known data to the desired output. Next step the team will work on is designing the program, which entails creating a detailed description, using relatively ordinary language or special diagrams of the program to be created. Simply…

    • 820 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Phl458 Week 1

    • 536 Words
    • 3 Pages

    Opinions are an intensely personal way to express one's judgment of a particular subject. It is one's own thoughts of what they perceive of the matter and how they interpret a belief or truth.…

    • 536 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    1) Your first task is to examine the code you have been given. Answer specific questions throughout the assignment in a separate Word document. Marks are awarded according to how well your answers reflect an understanding of the concepts involved. The data file, “orders.txt”, consists of a number of lines (records) each of which have six values (fields) separated by spaces: (Open this file in notepad and have a look at it)  A Shoe Style code (e.g. Womens/Mens/Children),  The Shoe Type (e.g. Sandals,Runners,Dress,School,Boat),  A unique Item Code identifying the particular shoe on order (a string of characters NNNNX),  A number representing the shoe size (expected to be between 1 and 13),  The price of the pair of shoes,  The store address code in one word string (e.g.CentralSquare,City,Mall,Stockland). 2) Using your creativity, think of a similar problem to the shoe warehouse problem. For example, a travel scheduling system, a bus /train/plane services system, a cricket/other sport results system, a sales system. The new system that you will create must be based on a similar approach – a menu providing options, some data in a separate text file (similar to orders.txt) and a number of functions that do simple calculations and printing of selected data from…

    • 3019 Words
    • 13 Pages
    Powerful Essays