This website uses cookies to ensure you have the best experience. Learn more

Unit 3 Assignment 1

731 words - 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
...view middle of the document...

Write a pseudo code statement that assigns the sum of 10 and 14 to the variable total.
* 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...

Other Papers Like Unit 3 Assignment 1

Business Unit 2 Assignment 1

4430 words - 18 pages Recruiting and retaining the right people Edexcel BTEC L3 Business Studies Unit 2 Business Resources I have gained an internship at my school, and I will spend 6 weeks supporting the human resources department. Currently the most experienced member of the human resources department, is away on long term sick leave. The school is looking to make sure I can help maintain its ability to recruit the right staff and control their financial and non

Nt1230 Unit 3. Assign 1 – Ipv6 Addressing

505 words - 3 pages . This includes Domain names, number resources and Protocol assignments. 1-C APNIC – An organization that manages the assignment of internet number resources within the Asian continent. Provides number resource allocation and registration services that support the global operation of the Internet. 2. Approximately how many Ipv4 addresses are possible? An IPv4 uses 32 bit IP address and with 32 bits the maximum number of IP addresses is

Unit 2. Assignment 1. Dhcp Troubleshooting

287 words - 2 pages Unit 2. Assignment 1. DHCP Troubleshooting Dear Junior Admin: My first question would be what have you done to this point about the issue? What OS are the computers running that have not picked up the new DHCP scope? Start by checking the DHCP setting and configurations are they all correctly configured? Try renewing the IP addresses on the workstations that have not picked up the scope it maybe do to the IP lease agreement. The

Unit 3 Assignment 2-Reflection On Essay Wriiting

413 words - 2 pages Reflections on Essay Writing EN 1320 Composition 1 Class 8 Oct 2014 Unit 3 Assignment 2: Refelerctions on Essay Writing EN1320 Where to start; to explain about what I have learned about writing in composition 1 class. I have always been a pretty good writer, I think. As long as I like the genre that I’m writing on, I can usually produce a good product. Composition one has helped me slower but surely, I think it will just take a

Pt2520 Unit 5 Assignment 1,Unit 5 Research Paper 1 And Quiz 4

1792 words - 8 pages Lab 5.1 Unit 5 Assignment 1 1) Choosing a database management system requires a great deal of analysis. TRUE 2) When choosing a database management system, you should consider system compatibility and hardware requirements. TRUE 3) Only insert and update statements are part of a database transaction. FALSE 4) Physical design is independent of any particular database management system. FALSE 5) A data type is a column specification that

Unit 2 Assignment 1: Strengths And Challenges Reflection Letter

285 words - 2 pages Unit 2 Assignment 1: Strengths and Challenges Reflection Letter Course Objectives and learning Outcomes • Define terms and concepts related to strategies for technical professionals. • Communicate information using Microsoft Office productivity tools and email. Assignment Requirements This assignment coordinates with Unit 2 Lab 1: Introductory Word Lab. Create and send a letter to your instructor executed in MS Word that discusses

Unit 1 Assignment 1 Is3110

361 words - 2 pages For YieldMore Executives, We here in your IT department have recently audited our infrastructure for our company’s network. Upon the review we did find several threats and vulnerabilities. First off is the fact we do not have a backup system in place for any natural disaster to our headquarters. This is an exploit found in the systems and application domain that can cripple our whole company. A second system found in one of the production

Unit 1 Assignment 1 Voice Vs Data

450 words - 2 pages Cell Phones- Use a combination of Voice and Data network to communicate with the service provider. Depending on your service provider you will be using CDMA or GSM Technology which operates on the 850Mhz and 1900Mhz. CDMA is used by Sprint, Verizon Cellular, and U.S. Cellular. GSM is used by AT&T, T-Mobile, and operates with a SIM card in conjuncture with the phone’s IMEI. Landline phones- A Landline phones uses voice networks. Transmits

Business Level 3 Unit 1 P1

409 words - 2 pages P1: Describe the main reason of accounting within an organization The purpose of accounting in Sainsbury’s it to record financial transactions, actual or planned. By using the figures given you can produce financial information. Here are some reasons why accounting in a business is important. Recording transactions is important for Sainsbury’s because by keeping up to date records this will allow them to have a smooth running business

Assignment 3-1 Persuasive Message - Draft Version

401 words - 2 pages cent more than you are paying now. For example, let’s say you buy two display ads in the same publication. Ad 1 costs you $5,000 and it generates 7 leads and 2 sales that total $700. Ad 2 also costs $5,000 and it generates 78 leads and 24 sales that total $8,400. Which ad would you rather have? The answer is obviously Ad 2. However, most businesses do no realize that their advertising could be producing far better results if it was written

Health And Socail Care Level 3 Yr 1 Unit 9

2212 words - 9 pages assessment process relies on a series of discussions which involve everyone in the support planning process. M2: In M2 I am going to be describing how 3 different professionals could be involved in planning support for the individuals. The 3 different individuals I have chosen to talk about of whom could be involved in planning support include; •Social Workers. •Probation workers (officers) •Family support workers. Social Workers: A

Related Essays

Unit 3. Assignment 1. Network Topology Paper

396 words - 2 pages Unit 3. Assignment 1. Network Topology Paper Hierarchical layout defines how the network topology is structured physically and logically. In physical topology all devices and components are placed in various locations depending on the layout. Logical topology is the flow of data throughout the layout. There are many variations of network topologies that can be implemented. The most common network topologies are star, bus, and ring. Star

Unit 1 Assignment 1

272 words - 2 pages Tina Nunez NT1330 Unit 1. Assignment 1 Windows 2008 Network Services Domain name system (DNS) is a naming service used on any device that can connect to the internet. It translates fully qualified domain names of websites into IP addresses for the device. There are DNS records such as address (A, AAAA) records, name server (NS) records and mail exchanger (MX) records stored in the DNS server. Regardless of how many hosts, the DNS is a

Is3230 Unit 1 Assignment 1

642 words - 3 pages ITT TECHNICAL INSITITUTE Access Security / IS3230T Unit 1 Assignment 1.1 Identification, Authentication, and Authorization Techniques. Access Security / IS3230T There are numerous techniques that the Information Technology industry can use in order to substantiate an entities identity, have the ability to authenticate that entity and provide the appropriate authorization for that entity to have access to a

Nt1210 T Unit 1 Assignment 1

352 words - 2 pages Chapter Review Activities for Chapter 1 1. C. Represents one Binary digit. 2. D. Kilobyte. 3. C. 64 bits per quadruple word. 4. A. Used for short-term memory E. Is installed onto the motherboard. 5. A. The CPU tells the RAM which address holds the data that the CPU wants to read. 6. C. Character Set. 7. D. The Binary equivalent of Decimal 123456789. 8. A. An actuator arm. 9. B. Provides a convenient way to name a set