# Essay on Unit 3 Assignment 1

733 Words Apr 10th, 2013 3 Pages
Short Answer: 1. What two things must you normally specify in a variable declaration? a. variable type b. identifier i. int n; // type - int, identifier - n 2. What value is stored in uninitialized variables? c. is a variable that is declared but is not set to a definite known value before it is used.
Algorithm Workbench Review: 3. Write assignment statements that perform the following operations with the variables a, b, and c. d. Adds 2 to a and stores the result in b e. Multiplies b times 4 and stores the result in a f. Divides a by 3.14 and stores the result in b g. Subtracts 8 from b and stores the result in a ii. b = a + 2 iii. a = b * 4
…show more content…
* Declare Integer total=0 * Set total=10+14 9. Write a pseudo code statement that subtracts the variable downpayment from the variable total and assigns the result to the variable due. * Declare Integer downPayment * Declare Integer Total * Declare Integer Due * Set Due = Total - downPayment 10. Write a pseudo code statement that multiplies the variable subtotal by 0.15 and assigns the result to the variable totalfee. l. set totalfee = subtotal * 0.15
Programming Exercise: 1. Sales Tax a. Design a program that will ask the user to enter the amount of a purchase. The program should then compute the state and county sales tax. Assume the state sales tax is 4% and the county sales tax is 2%. The program should display the amount of the purchase, the state sales tax, the county sales tax, the total sales tax, and the total of the sale (which is the sum of the amount of purchase plus the total sales tax.) 1. # Stating the TAX rates 2. STATE_TAX = 0.04 3. COUNTY_TAX = 0.02 4. # Asking the user for price of item 5. price = float(input('How much is the item?: ')) 6. # Calculating both taxes to 1 item 7. total_tax = STATE_TAX + COUNTY_TAX 8. # Calculating the tax with the users price 9. taxed = price * total_tax 10. # Adding the total price with the total

## Related Documents

• ###### Unit 3 Assignment for Micoeconomics Essay

Unit 3 Assignment: Problem 1 and 2 Name: - Course Number: - AB224 Section Number: - Unit Number: - 3 Date: - 1/28/14 Problem 1: Suppose that the supply schedule of Belgium Cocoa beans is as follows: Price of cocoa beans(per pound) | Quantity of cocoa beans supplied(pounds) | \$40 | 900 | \$35 | 700 | \$30 | 500 | \$25 | 400 | \$20 | 200 | Suppose that Belgium cocoa beans can be sold only in Europe. The European demand schedule for Belgium cocoa beans is as follows:…

Words: 1052 - Pages: 5
• ###### Essay UNIT 2 ASSIGNMENT 1

NT1210 Unit 2 Assignment 1 1. Which of the following terms is the closest synonym to the term computer networking? c. Datacom 2. Ann uses her email address, me@here.com, to send an email to Bob, whose email address is you@there.com. The message contains a few paragraphs of text. Which of the following will be important to the process of making sure that Bob receives this email? b. Bob’s incoming email server 3. According to this chapter, which of the following concepts happens in…

Words: 1073 - Pages: 5
• ###### Essay Unit 1 (4dep) Activity 3

Certificate in HR Practice Unit 1 (4DEP) – Developing Yourself as an Effective Human Resources Practitioner Activity 3 – Ability to reflect on own practice and development needs and maintain a plan for personal development Assessment Activity – 4DEP-F301A-(HR) Issued in September 2013 Name: To be inserted CIPD No: To be inserted Contents Ability to reflect on own practice and development needs and maintain a plan for personal development 3 Self-assessment against the CIPD Associate…

Words: 1134 - Pages: 5
• ###### Essay Unit 3 Exercise 1 Nt1310

| Unit 3. Exercise 1. | | Specifications - Definitions | | Unit 3. Exercise 1. | | Specifications - Definitions | NT1310: physical networking April 15, 2014 Authored by: Nicholas Rapisardi NT1310: physical networking April 15, 2014 Authored by: Nicholas Rapisardi 1. Application (in terms of cabling infrastructure): The application layer is the OSI layer closest to the end user, which means both the OSI application layer and the user interact directly with the…

Words: 1327 - Pages: 6
• ###### Essay Cache Level 3 Unit 1 Assignment

Unit 1- An introduction to working with children There are three different types of settings which provide care and education for children in my area. One of them is called the statutory sector, this is a service that has to be available by law. Legislations have been passed which requires either the government or local authorities to provide them. This service gets payed for by people paying taxes so if we didn’t pay our taxes then these services would no longer be funded. An example of a statutory…

Words: 3855 - Pages: 16
• ###### Essay AGray MT355 Assignment Unit 1

Unit 1 Assignment Adam Gray Kaplan University MT-355 Unit 1 Unit 1 Assignment Today, marketing research managers must fully take into account the marketing research process and marketing ethics while conducting their research. According to Brown (2014), the marketing research process is the process of gathering and interpreting data for use in developing, implementing, and monitoring the firm’s marketing plans; whereas marketing ethics are the principles, values, and…

Words: 1812 - Pages: 8
• ###### Unit 1 Assignment Essay

Problem #1: Using either a graph or table (Refer to page 22 for help with graphs and tables) use two goods to construct a production possibilities curve. Clearly explain what a variety of different points on the curve mean. What would make the curve expand or contract? Why is efficiency lost at the extremes, as when substantially more of one good and very little of another is produced? Cars (1000's/year) Milk (1000's of gallons/ year) 0 60 1 50 2 30 3 0 The PPF illustrates a negative slope…

Words: 971 - Pages: 4
• ###### Unit 5 Assignment 1 Essay

Baldeo Persaud NT 1210 Unit 5 Assignment 1 Ethernet LANs: A collection of devices, including user devices, LAN switches, routers, old hubs, and cables, all of which use IEEE Ethernet standards at the physical and data link layers, so that the devices can send Ethernet frames to each other. 802.3: The name of the original IEEE Ethernet standard, as well as the overall base name of all IEEE Ethernet LAN working committees. Fast Ethernet: The informal name for one particular Ethernet standard, originally…

Words: 1275 - Pages: 6
• ###### IS3120 Unit 1 Assignment 1 Essay

IS3120 Unit 1 Assignment 1 Johnson Company provides networking components and services. Today we are using the yellow pages for advertising, which is still useful but outdated. In most businesses today use other methods such as In person by using sale representatives. Mostly all the businesses today use the internet to reach out to customers, either by having a website, social media, sending emails or even newsletters. There are some that use a totally different approach, some of which include video…

Words: 817 - Pages: 4
• ###### Essay Equality and Diversity Unit 1 Assignment

NCFE Level 2 Certificate in Equality and Diversity Unit 1: Exploring Equality and Diversity Assessment You should use this file to complete your Assessment. • The first thing you need to do is save a copy of this document, either onto your computer or a disk • Then work through your Assessment, remembering to save your work regularly • When you’ve finished, print out a copy to keep for reference • Then, go to www.vision2learn.com and send your completed Assessment to your tutor via your…

Words: 4057 - Pages: 17