Premium Essay

Homework Assignment 2

In: Computers and Technology

Submitted By trvs92
Words 307
Pages 2
Short Answers

1. 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. An informal language that has no syntax rules, and is not meant to be compiled or
executed

3. Computer programs usually follow the following three steps:
1) Input is received.
2) Some process is performed on the input.
3) Output is produced.

4. Commonly known in the software business to describe programs that are easy to use.

Algorithm Workbench

1. Dim height as double = 0 Console.Writeline(“ Enter your height.”) Height = console.readline()

2.
Dim color as String = “NO VALUE”
Console.Writeline(“What is your favorite color?”)
Color = Console.Readline()

Programming Exercises

1. Personal Information

// declare variables
Name
Address
City
State
Zip
Phonenumber
Major

//prompt user for information and store as variables
Display “enter your name”
Input Name
Display “what is your address”
Input Address
Display “what city”
Input City
Display “what state”
Input State
Display ‘what is the zip code”
Input Zip
Display “What is your phone number”
Input Phonenumber
Display “What is your major”
Input Major
//Display the information back to user
Display name
Display address
Display city
Display state
Display zip
Display phonenumber
Display major

4. Total Purchase //declare variables
Itemone
Itemtwo
Itemthree
Itemfour
Itemfive

Subtotal
Salestax
Totalcost

//user input of item information
Display “what is the cost of item 1”
Input itemone
Display what is the cost of item 2
Input itemtwo
Display what is the cost of item 3
Input itemthree
Display what is the cost of item 4
Input itemfour
Display what is the cost of item 5
Input itemfive

//calculate the subtotal, salestax and…...

Similar Documents

Free Essay

Homework Assignments

...SCI/162 PRINCIPLES OF HEALTH AND WELLNESS 2/9/2014 Foodborne Illness Short Answer Questions Norovirus * What is the infectious agent (pathogen) that causes this infectious disease? I choose the Norovirus to discuss and how this foodborne illness is spread. This illness is viral and lives not only in contaminated foods or drinks but also on surfaces that have been contaminated with the virus by direct contact with an individual or food. The infectious agent are known as noroviruses and sapoviruses which cause acute gastroenteritis. The norovirus (NV) is a member of the Caliciviridae family which causes the acute gastroenteritis in people worldwide. * What is an example of a real life outbreak of this foodborne illness in the United States? An outbreak of this type of foodborne illness comes when one is in contact with when an individual who is infected and handles food preparation or shares food or eating utensils. The norovirus (NV) is an extremely contagious illness that is spread by the ingestion of contaminated food such as raw oysters or water. This is spread from person-to-person transmission such as hospitals, schools, nursing homes and most recently cruise ships. There has recently been an outbreak of this type of illness of several cruise lines that have caused trips to be cancelled and returned to port early. * What are the clinical symptoms, duration of the disease, and treatment if any? The clinical symptoms of this......

Words: 482 - Pages: 2

Premium Essay

Homework Assignment

...Nick Berardi Homework Assignment #1 Due at start of class – Wednesday, September 17, 2014 Country Focus & Five Questions Chapter #2-Country Focus: Chavez’s Venezuela Page 42 Hill - Global Business Today 8th Edition Type each question and give answer below question. Answer the question consistent with the homework guidelines on page 4 of the syllabus. Management 470-International Business Management Fall 2014 Question 1: Under Chavez’s leadership, what kind of economic system is being put in place in Venezuela? How would you characterize the political system? (3 points) Under Hugo Chavez’s leadership, a democratic socialist system was formed. Chaves was a huge advocator for global capitalism beginning when he ran for office. Chavez’s first step toward holding power over the government was when he took over the distribution of resources around Venezuela. In 2005, he announced an increase in the royalties the government would collect from oil sales. He also seized control over the court system when he fired Supreme Court justices. Chavez also extended government control over the media as well. Lastly, Hugo Chavez took various enterprises into state ownership and required that other enterprises be restructured as “workers’ cooperatives” in return for government loans. Question 2: How do you think that Chavez’s unilateral changes to contracts with foreign oil companies will impact upon future investment by foreigners in Venezuela? Discuss each concept......

Words: 1166 - Pages: 5

Free Essay

Homework 2

...Kenneth jones CMIS 102 15 February 2015 Pseudo code /* This is a pseudo code for calculating the GPA for students each registered for different no of courses */ CalculateStdntGpa (int NoStudents, int NoCourses, char StudentNames[],char CourseGrade[]) //INPUT: No of students, Name of students, No of courses and Grades for each course //OUTPUT: The GPA for each student for(int i = 0: i < NoStudents: i++){ StudentNames[i] <- StdntName; for(int j=1: j<= NoCourses: j++){ if(CourseGrade = ”A”){ GradePoint <- 4; } if(CourseGrade = ”B”){ GradePoint <- 3; } if(CourseGrade = ”C”){ GradePoint <- 2; } if(CourseGrade = ”D”){ GradePoint <- 1; } if(CourseGrade = ”F”){ GradePoint <- 0; } GradePoints[j-1] <- GradePoint; } Return GPA } 1. Analysis The following is a brief analysis of the program being built * Inputs The inputs for the program are: I. No of students which should be an integer value to hold the number of students II. Names for students which would be an array structure to hold all student names. This array would be of data type character III. No of courses for each student which is of data type integer IV. Grade for each course registered by each......

Words: 796 - Pages: 4

Free Essay

Unit 2 Assignment 1 : Homework

...programmer usually begins by creating a design of the program to gain an understanding of the problem. 2. Pseudocode is a fake code. 3. The three steps that the computer programs typically perform are input is received, some process is performed on the input, and output is produced. 4. “user friendly” means programs that are easy to use. Algorithm Workbench 1. Display “What is your height?” Input height Display “Here is the height you entered:” Display height 2. Display “What is your favorite color?” Input color Display “Here is the color you entered:” Display color Programming Exercise 1.Personal Information Display “What is your name?” Input name Display “What is your address, city, state, and zip?” Input address, city, state, zip Display “What is your telephone number?” Input telephoneNumber Display “What is your college major?” Input collegeMajor Display name,address,city,state,zip,telephoneNumber,collegeMajor 2. Sales Prediction Display “Enter the projected amount of total sales” Input totalSales Set dollars =0.23 Display totalSales*setdollars 3. Land Calculation Display “Enter total square feet of land” Input squareFeet Set 43,560 == one acre Declare / squareFeet by 43,560 to get acres 4 Total Purchase Display “What is the price of this item” Input price Display “What is the price of item 2” Input price 2 Display “What is the price of item 3” Input price3 Display “What is the price of item......

Words: 264 - Pages: 2

Premium Essay

Gm520 Homework Week 2

...Week 2 Homework – GM520. By Sam Jhonson 1. The Federal Trade Commission and the Federal Reserve Board was seeking amendments to the Risk-Based Pricing Rule that would require creditors, as of July 21, 2011. I am starting my own business so this interests me as to how the credit scores are reported to the consumers. 2. The proposal makes the creditors to disclose the credit score information to the consumers when a credit score is used in setting or adjusting credit terms. Also consumers who receive the notice can obtain a free credit report to check the report’s accuracy. As an alternative to providing the notice, the Rule permits creditors to provide credit applicants with a free credit score and information about their score. 3. The agencies should provide additional information related to credit scores to the risk-based pricing notices. Specifically, the risk-based pricing notice include an explanation that the consumer does not have a single credit score, and that the credit score may vary with the consumer reporting agency and a particular credit product for which the consumer applied. Most consumers need this information to help them understand why they are receiving a particular score that may not be the same as a FICO score. 4. All the comments must be received by 04/14/10 and comments on he Paperwork Reduction Act analysis set forth in Section III.A. of this Federal Register notice must be received on or before May 16, 2011. 5. a. 1. Go to the......

Words: 375 - Pages: 2

Free Essay

Gm522 Week 2 Homework

...Roopen Patel 7/18/11 Week 2 Homework Help – GM520. Here is an example to get you started on the Week 2 Homework: 1. State the administrative agency which controls the regulation. Explain why this agency and your proposed regulation interests you (briefly). Will this proposed regulation affect you or the business in which you are working? If so, how? Submit a copy of the proposed regulation along with your responses to these five questions. The proposed regulation can be submitted as either a separate Word document (.doc) or Adobe file (.pdf). This means you will submit two attachments to the Week 2 Dropbox: (1) a Word doc with the questions and your answers and (2) a copy of the proposed regulation you used for this assignment. (10 points) Department of Health and Human Services- Since I work in the healthcare field and use Electronic Health Records documenting patients medical history, diagnoses, and treatment. http://www.regulations.gov/#!documentDetail;D=HHS-OCR-2011-0011-0001 2. Describe the proposal/change. (10 points) A Notice of Proposed Rulemaking concerning the accounting of disclosures requirement under the Health Insurance Portability and Accountability Act (HIPAA) Privacy Rule. The proposed rule would give people the right to get a report on who has electronically accessed their protected health information. The U.S. Department of Health and Human Services’ (HHS) Office for Civil Rights (OCR) is proposing changes to the Privacy Rule, pursuant to the......

Words: 1128 - Pages: 5

Premium Essay

Unit 2 Assignment 1: Homework

...Short Answers Page 71 1. What does a professional programmer usually do first to gain an understanding of a problem? They begin by creating a design of the program. 2. What is pseudocode? Programs used during the design process 3. Computer programs typically perform what three steps? Input process output 4. What does the term “user-friendly” mean? Programs that are easy to use Algorithm Workbench 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. 1. Dim Height As Double 2. Console.writeline(“Enter your Height:”) Save height as 3. Height = Console.readline() 4. Console.writeline(“Your Height Is: “ & Height) 5. Console.writeline(“Press Enter To Close.”) 6. Console.writeline() 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. 1. Dim Color As Double 2. Console.write(“Enter Your Favorite Color:”) Save color as 3. color = Console.readline() 4. Console.writeline(“Your Favorite Color Is: “&color) 5. Console.writeline(“Press Enter To Close.”) 6. Console.readline() Programming Exercises 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 Dim Color As Double Console.write(“Enter Your Name:”) Name = Console.readline() Console.write (“Enter your......

Words: 441 - Pages: 2

Premium Essay

Homework 2

...as a violation of the Title VII including: race, sex, national origin, sexual orientation, disability, and criminal background. When interviewing the potential hire, you will want to prepare questions that explore the actual job skills and experience you have identified as essential for the position (Heathfield, 2015). Most people will agree that the best strategy is to ask questions that will inspire and motivate the candidate to speak openly without adding stress or pressure to answering the question. 10 Legal Questions 1. Explain what makes you the best candidate to fill this position? * This question is considered appropriate because it falls within the EEOC guidelines. The candidate is selling themselves pretty much. 2. Are you willing to relocate? * This question cannot be considered discriminating because it is informing the candidate that they may have to relocate 3. Can you explain to me a time when you went above and beyond to provide the best customer service possible? * This question falls within the guidelines to the EEOC when it comes to discrimination. They are simply asking the individual about a time they went the extra mile to help out a customer. 4. Can you describe a time when you work was criticized? How were you able to handle the situation? * Staying within the EEOC guidelines, they want to make sure that the individual does not make the same mistakes they had made at the other company they worked at. 5. Can......

Words: 1425 - Pages: 6

Free Essay

Mat 510 Week 2 Homework Assignment 2

...MAT 510 WEEK 2 HOMEWORK ASSIGNMENT 2 To purchase this visit following link: http://www.activitymode.com/product/mat-510-week-2-homework-assignment-2/ Contact us at: SUPPORT@ACTIVITYMODE.COM MAT 510 WEEK 2 HOMEWORK ASSIGNMENT 2 MAT510 Homework Assignment 2 Strayer Due in Week 2 and worth 30 points Answer the following questions in the space provided below: Explain the importance of variation to health-care organizations and answer the following questions. 1. a. What might be the key processes for health-care organizations? 2. b. key processes of health-care organizations What are the potential common causes of variation that would have an impact on the? 3. c. What special causes might be more important than the others? 4. d. How might health-care organizations’ business environment be dynamic and change over time? Activity Mode aims to provide quality study notes and tutorials to the students of MAT 510 Week 2 Homework Assignment 2 in order to ace their studies. MAT 510 WEEK 2 HOMEWORK ASSIGNMENT 2 To purchase this visit following link: http://www.activitymode.com/product/mat-510-week-2-homework-assignment-2/ Contact us at: SUPPORT@ACTIVITYMODE.COM MAT 510 WEEK 2 HOMEWORK ASSIGNMENT 2 MAT510 Homework Assignment 2 Strayer Due in Week 2 and worth 30 points Answer the following questions in the space provided below: Explain the importance of variation to health-care organizations and answer the following questions. 1. a. What might...

Words: 1631 - Pages: 7

Free Essay

Mat 510 Week 2 Homework Assignment 2

...MAT 510 WEEK 2 HOMEWORK ASSIGNMENT 2 To purchase this visit following link: http://www.activitymode.com/product/mat-510-week-2-homework-assignment-2/ Contact us at: SUPPORT@ACTIVITYMODE.COM MAT 510 WEEK 2 HOMEWORK ASSIGNMENT 2 MAT510 Homework Assignment 2 Strayer Due in Week 2 and worth 30 points Answer the following questions in the space provided below: Explain the importance of variation to health-care organizations and answer the following questions. 1. a. What might be the key processes for health-care organizations? 2. b. key processes of health-care organizations What are the potential common causes of variation that would have an impact on the? 3. c. What special causes might be more important than the others? 4. d. How might health-care organizations’ business environment be dynamic and change over time? Activity Mode aims to provide quality study notes and tutorials to the students of MAT 510 Week 2 Homework Assignment 2 in order to ace their studies. MAT 510 WEEK 2 HOMEWORK ASSIGNMENT 2 To purchase this visit following link: http://www.activitymode.com/product/mat-510-week-2-homework-assignment-2/ Contact us at: SUPPORT@ACTIVITYMODE.COM MAT 510 WEEK 2 HOMEWORK ASSIGNMENT 2 MAT510 Homework Assignment 2 Strayer Due in Week 2 and worth 30 points Answer the following questions in the space provided below: Explain the importance of variation to health-care organizations and answer the following questions. 1. a. What might...

Words: 1631 - Pages: 7

Premium Essay

Pt1420 Unit 2 Assignment 1: Homework

...programmer usually does first in programming is design flowcharts and pseudocode which will help with process. 2.) Pseudocode code is a fake code used as a model for programs; it has no syntax rules and is well written making it easy to translate to actual codes. 3.) Computer programs typically perform a three step process 1 input is received, 2 some process is performed on the input, 3 output is produced. 4.) “User-friendly” is commonly used in the software business to describe programs that are easy to use. Algorithm Workbench: 1.) 1 Display “Height” 2 Input height 3 Display “here is the height that you entered:”, height 2.) 1 Display “Favorite color” 2 Input favorite color 3 Display “Here is your favorite color you entered:”, color Programming Exercises: 1.) Personal Information 1 Display “Name” 2 Input Name 3 Display “Here is the name you have entered:”, name 4 Display “Address with city, state, and ZIP” 5 Input address with city, state, and ZIP 6 Display “This is the address you have entered:”, address with city, state, and ZIP 7 Display “Telephone number” 8 Input telephone number 9 Display “This is the telephone number you have entered:”, telephone 10 Display “College Major” 11 Input college major 12 Display “This is the college major you have entered:”, college major 4.) Total Price 1 Display “enter the items original price” 2 Input originalPrice 3 Set SalePrice = OriginalPrice * 0.06 4 Display “the sale price is $”,......

Words: 251 - Pages: 2

Premium Essay

Acct 550 Week 2 Homework Assignment

...ACCT 550 Week 2 Homework Assignment To Buy This material Click below link http://www.uoptutors.com/acct-550/acct-550-week-2-homework-assignment E4-4 (Multiple-Step and Single-Step) Two accountants for the firm of Allen and Wright are arguing about the merits of presenting an income statement in a multiple-step versus a single-step format. The discussion involves the following 2012 information related to Webster Company ($000 omitted). Administrative expense | | Officers’ salaries | $ 4,900 | Depreciation of office furniture and equipment | 3,960 | Cost of goods sold | 63,570 | Rent revenue | 17,230 | Selling expense | | Transportation-out | 2,690 | Sales commissions | 7,980 | Depreciation of sales equipment | 6,480 | Sales revenue | 96,500 | Income tax expense | 7,580 | Interest expense | 1,860 | Instructions (a) Prepare an income statement for the year 2012 using the multiple-step form. Common shares outstanding for 2012 total 40,550 (000 omitted). (b) Prepare an income statement for the year 2012 using the single-step form. (c) Which one do you prefer? Discuss. E4-12 (Earnings per Share) At December 31, 2011, Schroeder Corporation had the following stock outstanding. 8% cumulative preferred stock, $100 par, 107,500 shares | $10,750,000 | Common stock, $5 par, 4,000,000 shares | 20,000,000 | During 2012, Schroeder did not issue any additional common stock. The following also occurred during 2012. Income from continuing operations......

Words: 463 - Pages: 2

Premium Essay

Bsop 209 Week 2 Homework Assignment

...BSOP 209 Week 2 Homework Assignment To Buy This material Click below link http://www.uoptutors.com/bsop-209/bsop-209-week-2-homework-assignment 4.24 Howard Weiss, owner of a musical instrument distributorship, thinks that demand for bass drums may be related to the number of television appearances by the popular group Stone Temple Pilots during the previous month. Weiss has collected the data shown in the following table: Stone Temple Pilot’s TV Appearances | Demand for Bass Drums | 3 | 3 | 4 | 6 | 7 | 7 | 6 | 5 | 8 | 10 | 5 | 7 | a)    Graph these data to see whether a linear equation might describe the relationship between the group’s television shows and bass drum sales. b)   Use the least-squares regression method to derive a forecasting equation. c)    What is your estimate for bass drum sales if the Stone Temple Pilots performed on TV nine times last month? d)   What are the correlation coefficient (r) and the coefficient of determination (r2) for this model, and what do they mean? 4.46 Thirteen students entered the business program at Hillcrest College 2 years ago. The following table indicates what each student scored on the high school SAT math exam and their grade-point averages (GPAs) after students were in the Hillcrest program for 2 years. Student | SAT Score | GPA | A | 421 | 2.90 | B | 377 | 2.93 | C | 585 | 3.00 | D | 690 | 3.45 | E | 608 | 3.66 | F | 390 | 2.88 | G | 415 | 2.15 | H | 481 | 2.53 | I | 729 | 3.22 | J...

Words: 315 - Pages: 2

Premium Essay

Bsop 209 Week 2 Homework Assignment

...BSOP 209 Week 2 Homework Assignment To Buy This material Click below link http://www.uoptutors.com/bsop-209/bsop-209-week-2-homework-assignment 4.24 Howard Weiss, owner of a musical instrument distributorship, thinks that demand for bass drums may be related to the number of television appearances by the popular group Stone Temple Pilots during the previous month. Weiss has collected the data shown in the following table: Stone Temple Pilot’s TV Appearances | Demand for Bass Drums | 3 | 3 | 4 | 6 | 7 | 7 | 6 | 5 | 8 | 10 | 5 | 7 | a)    Graph these data to see whether a linear equation might describe the relationship between the group’s television shows and bass drum sales. b)   Use the least-squares regression method to derive a forecasting equation. c)    What is your estimate for bass drum sales if the Stone Temple Pilots performed on TV nine times last month? d)   What are the correlation coefficient (r) and the coefficient of determination (r2) for this model, and what do they mean? 4.46 Thirteen students entered the business program at Hillcrest College 2 years ago. The following table indicates what each student scored on the high school SAT math exam and their grade-point averages (GPAs) after students were in the Hillcrest program for 2 years. Student | SAT Score | GPA | A | 421 | 2.90 | B | 377 | 2.93 | C | 585 | 3.00 | D | 690 | 3.45 | E | 608 | 3.66 | F | 390 | 2.88 | G | 415 | 2.15 | H | 481 | 2.53 | I | 729 | 3.22 | J...

Words: 315 - Pages: 2

Free Essay

Module 6 Homework Assignment

...Module 6 Homework Assignment Click Link Below To Buy: http://hwcampus.com/shop/module-6-homework-assignment/ An investigator analyzed the leading digits of the amounts from 200 checks issued by three suspect companies. The frequencies were found to be 68, 40, 18, 19, 8, 20, 6, 9, 12 and those digits correspond to the leading digits of 1, 2, 3, 4, 5, 6, 7, 8, and 9, respectively. If the observed frequencies are substantially different from the frequencies expected with Benford's law, the check amounts appear to be the result of fraud. Use a 0.05 significance level to test for goodness-of-fit with Benford's law. 1. Calculate the ?2 test statistic. Solution: Instructor Comments: 2. Calculate the ?2 critical value. Solution: Instructor Comments: 3. Is there sufficient evidence to conclude that the checks are the result of fraud? Solution: Instructor Comments: Alert nurses at the Veteran's Affairs Medical Center in Northampton, Massachusetts, noticed an unusually high number of deaths at times when another nurse, Kristen Gilbert, was working. Kristen Gilbert was arrested and charged with four counts of murder and two counts of attempted murder. When seeking a grand jury indictment, prosecutors provided a key piece of evidence consisting of the table below. Use a 0.01 significance level to test the defense claim that deaths on shifts are independent of whether Gilbert was working. Shifts With a Death Shifts Without a Death Gilbert Was......

Words: 289 - Pages: 2