Script 1 Specification:
You work for a medium size wholesale book publisher as the system administrator. This year management has decided, at the last minute, to sell books at its annual book conference. The company as a rule does not sell its books retail, consequently management does not want to purchase an off the shelve retail sales program. Rather, you have been assigned the task of writing a PowerShell text-based program called LearnName_SalesProgram.ps1 which will do the following.
Allow the sales clerk to the following at the console:
1. Enter the book title –data type string
a. If the user enters a null string, the program should beep and redisplay the needed value
2. Enter a one sentence description of the book -- data type string
3. Enter the book’s ID number. Code numbers are alpha-numeric (e.g. ROM482,SCI233,BUS400)
a. If the user enters a numeric value, the program should prompt for alphanumeric
4. Enter the list price of the book and include a dollar sign in the prompt. Make the list price a decimal data type or test to ensure that the user entered a numerical value.
5. Calculate the harmonized tax rate (HST) of 12% (list price X .12 = tax payable) – data type constant
6. Display the tax payable and total purchase price for the book to the customer.(tax + list price = purchase price)- data type decimal
7. Output the above information to a file called BookSalesConference2014.txt in the following
8. Optional: include a running total called “Total Book Sales:” which is saved to the file
9. The file format should look like the following:
______________________________________
Title of Book:
Description:
Code Number:
List Price:
Tax Payable:
Purchase Price:
_______________________________________
Total Book Sales: (optional)
Script 2 Specification:
It has been a couple of years since the wholesale book company inventoried its computer systems. You have been assigned to write a script which will run on the local system and capture the following information. Design your script so that it checks for a file called SystemInventory.log in the C:\backup\log directory. If the file does not exist, the program creates it, and if the file exits, the local information is appended to the file. In this way, the script can be run on each machine, and the log file summarizes the information for each system. Name your program LearnName_SysInventory.ps1
The output file should report the following information as below:
Today’s Date
Local Host Computer Name:
BIOS name and version number:
Size of Hard Drive in Gigabytes
Amount of Ram in Gigabytes
Operating System name and version number
Name of Installed software with Global Identifier
The date and ID of the last installed Hot Fix:
Name of Registered User who uses the system
Number of all users registered on the system (not Active Directory)
The information should be saved to the log file in the following format
Date:
======================================================================
Computer Name
================ ======================================================
BIOS Name:
BIOS Version:
HD Size:
RAM Size:
Operating System:
Operating System Version:
Installed Software Name:
Installed Software GUID:
Last Installed Hot Fix:
Name of Registered System User:
Names of All Registered System Users on the System:
========================================================================
========================================================================
To complete the inventory script you must use a combination of the Environment variables, WMIObjects, properties, and a DO Loop. If the user enters a null string, the program should prompt for the correct information. (Note: the goal is to create output that is easy to read. Use your discretion to improve the output)
Grading Criteria:
Your scripts will be graded out of 10 marks based on the following criteria:
Specification met 2 marks
Comments 2 marks
Neatness 2 marks
Originality 2 marks
Organization 2 marks Total 10 marks
Optional bonus 1 mark
Grading:
1. Save the PS1 files as text files and submit using the Safe Assign link on My Seneca in the Graded Work folder. Each file will be checked for source documents and plagiarism. Please Note, Plagiarized text will be handed over to the Academic Dishonesty Committee for Resolution.
2. Zip the following files together and submit using the link in the Graded Work\Assignments folder
LearnName_SalesProgram.ps1
BookSalesConference2014.txt
LearnName_SysInventory.ps1
SystemInventory.log
Student Declaration form (Standards Course Web Site)
You May Also Find These Documents Helpful
-
BE 5-3 Prepare the journal entries to record the following transactions on Ramirez Company's books using a perpetual inventory system…
- 360 Words
- 5 Pages
Satisfactory Essays -
No programmable calculators are permitted. Please show all calculations in an orderly and clear format for part marks. Time management is crucial. Be sure to attempt each question. No questions will be permitted during this examination. If you need to make an assumption, state it and continue. Read the questions carefully before making any assumptions. Question 1 (18 marks; suggested time 18 minutes) Revenue Recognition…
- 5099 Words
- 21 Pages
Better Essays -
g. Following the format in Exhibit 20 -2, prepare a tax basis balance sheet for the…
- 1342 Words
- 6 Pages
Good Essays -
Caution. Include only trade or business income and expenses on lines 1a through 22 below. See the instructions for more information.…
- 3552 Words
- 41 Pages
Good Essays -
1. A user boots his or her computer and hears a sequence of six beeps. The computer uses AMI BIOS. What error is indicated by the six beeps?…
- 254 Words
- 2 Pages
Satisfactory Essays -
|Accounting data will be collected through the point-of-sale terminals. All items, quantities, prices, and totals will be determined on a daily basis and…
- 603 Words
- 3 Pages
Satisfactory Essays -
Insert a new row between Retail Price and Price to Bookstore. Enter Standard Discount Rate in cell A14, 0.55 in cell B14, and 0.5 in cell C14. Format the range B14:C14 with Percent Style.…
- 639 Words
- 3 Pages
Satisfactory Essays -
Comprehensive QuickBooks Problems ACCT 205 Complete the following: 1. Open a Sample file -Retail who tracks individual sales (this can also be download through Canvas) 2. Receive the following (without a bill) Replace * with your initials Vendor PO…
- 339 Words
- 5 Pages
Powerful Essays -
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.…
- 320 Words
- 3 Pages
Satisfactory Essays -
Assume there are no allowances, transfers or discounts. Solve all problems for 2 decimal places (x.xx)…
- 689 Words
- 3 Pages
Satisfactory Essays -
1. The data can be put in first normal form by repeating the purchase order information as…
- 371 Words
- 10 Pages
Satisfactory Essays -
4. The actual annual sales of each are identified under the TYD Inventory Analysis TAB on the spreadsheet Column H.…
- 703 Words
- 4 Pages
Satisfactory Essays -
Refer to Table UGA24UF20. What is the price paid by consumers after a $30 per unit tax is imposed?…
- 2541 Words
- 11 Pages
Powerful Essays -
b. Write an execute the command using the PLUME view to retrieve the book code, title, and price for every book with a price of less than $13.…
- 912 Words
- 6 Pages
Good Essays -
1. Liza needs to buy a textbook for the next economics class. The price at the college bookstore is $65. One online site offers it for $55 and another site, for $57. All prices include sales tax. The accompanying table…
- 893 Words
- 4 Pages
Satisfactory Essays