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
  • Powerful Essays

    Mktg308 Week 4

    • 1470 Words
    • 6 Pages

    The big four banks managed to slightly improve their customer satisfaction rankings last month, although ratings are expected to come under pressure following the decision by most to hold back some of the December cash rate cut.…

    • 1470 Words
    • 6 Pages
    Powerful 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

    Fp 101 Week 5

    • 333 Words
    • 2 Pages

    1. You place $5,000 in a savings account earning 2.50% interest compounded annually. Assuming you do NOT make additional monthly deposits (set that to $0), how much will you have at the end of four years? How much would you have at the end of four years if interest is compounded semiannually? 5,524.14 are what will be after four years with Simi annual intrust compound.…

    • 333 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
  • Better Essays

    POS421 Week 5 Individual

    • 1789 Words
    • 5 Pages

    In the Week 4, a domain model was created for Company Beta. When the domain model was created, it was thought to cover all the security concerns associated with the information contained on the network. Unfortunately, this is not the case. Recently, there has been some compromising activity to allow sensitive information to possibly get into the wrong hands. To help aid in eliminating the possibility of this occurring again, the entire domain model will be re-evaluated. This will provide security enhancements that are not present in the current domain model. In order to re-evaluate the current domain model, there are several aspects that we will have to discuss. These aspects include the type of domain model used for current domain model, the affects subnets may or may not have, how a new domain model can provide better security, how to improve the domain name system, the Internet domain name and its effect on the DNS name-resolution process, and can ISDN be improved. In addition, it will also be noted how domain controllers can be utilized to provide the company with adequate expansion in the future due to user population increase.…

    • 1789 Words
    • 5 Pages
    Better 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
  • 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
  • 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
  • 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