07 Jun DEVRY CIS170B all weeks ilabs [ all 7 weeks ]
iLab 1 of 7: Getting Started (Your First C# Programs) – (45 points)
Note!
Submit your assignment to the Dropbox located on the silver tab at the top of this page.
(See the Syllabus section “Due Dates for Assignments & Exams” for due dates.)
Remember This!
ILAB OVERVIEW
Scenario and Summary
Welcome to Programming with C#. The purpose of this three-part lab is to walk you through the following tutorial to become familiar with the actions of compiling and executing a C# program.
Deliverables
Submit the following to this week’s Dropbox:
-
- A zipped Visual Studio project folder for each programming exercise. Refer to the Deliverables section of the Week 1 iLab page for detailed instructions on how to zip a project folder.
- A single MS Word file named YourLastName_Lab1_ex1.docx, containing the following items:
-
- The source code for each part/exercise: Your source code should use proper indentation, include meaningful comments, and be error free. Start each with a specification that includes your name, the lab and exercise number, and a description of what the program accomplishes, similar to this:
/* Specification:
First Name Last Name
Lab 1 Exercise #
This program does X */- Labeled screenshot(s) demonstrating that each exercise produces correct results
-
NOTE: A screenshot of a window can be created by first clicking on it to activate it. Next, press the key or key combination your specific computer uses to do a “print screen” (typically the Prnt Scrn or Prnt key in combination with the ctrl or FN key). Then, click the MS Word “paste” option to paste the screenshot into the MS Word file.
Objectives and Grading
Lab Objectives:
- How to create a project
- How to enter and save a program
- How to compile and run a program
- Given a simple problem using input and output, be able to code and test a program that meets the specifications.
- Be able to debug a simple program of any syntax and logic errors.
Your lab grade will be based upon:
- the formatting of your source code;
- the use of meaningful identifiers;
- the extent of internal documentation; and
- the degree to which an exercise’s specifications are met.
Preparation: If you are using the Citrix remote lab, follow the login instructions located in the iLab tab in Course Home.
iLab Steps
Part A: Getting Started
| Step 1:Start the Application |
| Locate the Visual Studio 2010 icon and double click to open. Under Applications, click on the Microsoft Visual Studio.NET 2010 icon to open the C# software. |
| Step 2:Create a C# Console Project |
| Choose File->New Project, and click Console Application. In the project name box, enter LAB1A. Your screen should look like the screen below. If so, press the OK button. |
| Step 3:Delete All Code in Program.cs |
| Your screen should now look like what you see below. Now, highlight all of the code that you see [Ctrl + A] and press the Delete key. You will not need this code because you will now be getting experience writing every line of a new program. |
| Step 4:Type in Program |
Now enter the following C# program exactly as you see it. Use the tab where appropriate. (Note: C# is case sensitive.) Instead of John Doe, type your name.
|
| Step 5:Save Program |
| Save your program by clicking File on the menu bar and then clicking Save Program.cs, or by clicking the Save button on the toolbar or Ctrl + S. |
| Step 6:Build Solution |
| To compile the program, click Debug on the menu bar and then click the Build Solution or Build LabAoption. You should receive no error messages in the Error List window below the program. If you see some error messages, check the code above to make sure you didn’t key in something wrong. You can double click on each error message to better navigate to the area where the problem might be. Once you make your corrections to the code, go ahead and build the solution again. |
| Step 7:Execute the Program |
Once you have no compile errors, to execute or run your program, either:
|
| Step 8:Capture the Output |
| Print a picture of your screen output. (Do a print screen and paste this into your MS Word document.) |
| Step 9: Print the Source Code |
| Copy your source code and paste it into your Word document. |
| End of Part A |
Part B: Calculate Total Tickets
| Step 1:Create New Project | ||||||||||
| Make sure you close your previous program by clicking File >> Close Solution. Now, create a new project and name it LAB1B. | ||||||||||
| Step 2:Type in Program | ||||||||||
Like before, delete the code that is automatically created and enter the following program. Type in your name for Developer and current date for Date Written.
|
||||||||||
| Step 3:Save Program | ||||||||||
| Save your program by clicking File on the menu bar and then clicking Save Program.cs, or by clicking the Save button on the toolbar or Ctrl + S. | ||||||||||
| Step 4:Build Solution | ||||||||||
| To compile the program, click Build on the menu bar and then click the Build Solution or Build LabBoption. You should receive no error messages. If you see some error messages, check the code above to make sure you didn’t key in something wrong. Once you make your corrections to the code, go ahead and click Build >> Build Solution again. | ||||||||||
| Step 5:Execute the Program | ||||||||||
| Once you have no syntax errors, to execute or run your program, click Debug on the menu bar and then click Start Debugging. | ||||||||||
| Step 6:Comment the Program | ||||||||||
| Go back to the editor and insert meaningful comments that show that you understand what each line of code does. | ||||||||||
| Step 7:Capture the Output | ||||||||||
|
||||||||||
| End of Part B |
Part C: Payroll Program
| Step 1:Create a New Project | ||||||||||||||||||
Include a comment box like what you coded in Part B at the very top of your program. |
||||||||||||||||||
| Step 1a:Write Your Own Program | ||||||||||||||||||
Write a program that calculates and displays the take-home pay for a commissioned sales employee after deductions are taken. The employee receives 7% of his or her total sales as his or her gross pay. His or her federal tax rate is 18%. He or she contributes 10% to his or her retirement program and 6% to Social Security. Use the Processing Logic provided in Step 2 below as a guide. The program’s output should look something like this:
|
||||||||||||||||||
| Step 2:Processing Logic | ||||||||||||||||||
| Basic Logic and FlowchartInput: Prompt the user for the weekly sales. Process: Perform the calculations. The employee receives 7% of his or her total sales as his or her gross pay. His or her federal tax rate is 18%. He or she contributes 10% to his or her retirement program and 6% to Social Security. Output: Display the results. Pseudocode:
|
||||||||||||||||||
| Step 3:Save Program | ||||||||||||||||||
| Save your program by clicking File on the menu bar and then clicking Save Program.cs, or by clicking the Save button on the toolbar or Ctrl + S. | ||||||||||||||||||
| Step 4:Build Solution | ||||||||||||||||||
| To compile the program, click Debug on the menu bar and then click the Build Solution or Build LabCoption. You should receive no error messages. If you see some error messages, check the code above to make sure you didn’t key in something wrong. Double-click on an error to navigate to its location in the code. Once you make your corrections to the code, go ahead and click Debug >> Build Solution again. | ||||||||||||||||||
| Step 5:Execute the Program | ||||||||||||||||||
| Once you have no syntax errors, to execute or run your program, click Debug on the menu bar and then click Start Debugging, or press the right arrow icon or the F5key | ||||||||||||||||||
| Step 6:Capture the Output | ||||||||||||||||||
|
||||||||||||||||||
| End of Part C | ||||||||||||||||||
| END OF LAB |
After you have completed your lab, complete the following for each part of the lab (if there are multiple parts).
- Capture a screen print of your output. (Do a PRINT SCREEN and paste into an MS Word document.)
- Copy your code and paste it into the same MS Word document that contains the screen print of your output.
- Save the Word document as CIS170B_Lab01_B_LastName_FirstInitial.docx.
- Upload all three projects folder and save the compressed file as CIS170B_Lab01_B_LastName_FirstInitial.Zip.
- Submit both the compressed project file and the Word document to the weekly Dropbox for this lab.
Zipping and Submitting Your Project Files
When you submit your project files, you will want to send the entire project folder that is created by MS Visual Studio when you create the project, along with your MS Word file. Use your favorite compression tool to zip the full contents of both projects, zip the single zip file, and submit the zip file to your Dropbox.
| The following illustrates how to zip up a sample project folder using Winzip. | If you do not have a compression tool, you can use the Windows Explorer “Send to Compressed (zipped) Folder” command by performing the following steps. |
|---|---|
|
|
Lab 2 of 7: Decisions – (45 points)
Note!
(See the Syllabus section “Due Dates for Assignments & Exams” for due dates.)
Submit your assignment to the Dropbox located on the silver tab at the top of this page. For instructions on how to use the Dropbox, pleaseclick here.
Remember This!
ILAB OVERVIEW
Scenario and Summary
You will code, build, execute, debug, and test two programs using decision structures. The first program will calculate the shipping charge based on a given purchase amount. The second program translates a given TV channel to its call sign.
Deliverables
Submit the following to this week’s Dropbox:
-
- A zipped Visual Studio project folder for each programming exercise. Refer to the Deliverables section of the Week 1 iLab page for detailed instructions on how to zip a project folder.
- A single MS Word file named YourLastName_Lab1_ex1.docx containing the following items:
-
- The source code for each program in the lab: Your source code should use proper indentation, include meaningful comments, and be error free. Start each with a specification that includes your name, the lab and exercise number, and a description of what the program accomplishes, similar to this:
/* Specification:
First Name Last Name
Lab 1 Exercise #
This program does X */- Labeled screenshot(s) of the output windows for each program, showing that each program produces correct results
-
NOTE: A screenshot of a window can be created by first clicking on it to activate it. Next, press the key or key combination your specific computer uses to do a “print screen” (typically the Prnt Scrn or Prnt key in combination with the ctrl or FN key). Then, click the MS Word “paste” option to paste the screenshot into the MS Word file.
Objectives and Grading
Lab Objectives:
- To be able to design program logic using either a flowchart or pseudocode
- To be able to define and use data types
- To be able to prompt the user for input
- To be able to use the assignment statement for calculations
- To be able to display output to the console in a formatted manner
- To be able to debug a program of syntax and logic errors
- To be able to make decisions
Your lab grade will be based upon:
- the formatting of your source code;
- the use of meaningful identifiers;
- the extent of internal documentation; and
- the degree to which an exercise’s specifications are met.
Preparation:
If you are using the Citrix remote lab, follow the login instructions located in the iLab tab in Course Home.
iLab 2
| Part A: Calculate Shipping Charge | ||||||||||
| Requirements | ||||||||||
Your mission: Write a program that gets the amount of a purchase from the user and then calculates the shipping charge, based on the following table:
Sample output from program: Enter a purchase amount to find out your shipping charges. Please enter the amount of your purchase: 234.65 |
||||||||||
| Tips | ||||||||||
| Best practice: Put yourself in the place of the program. What questions would you ask a customer in order to get the best input? How would you determine the correct shipping charges if you had to make the decisions yourself? Write out the questions you would ask yourself on paper as pseudocode and/or in Visual Studio as C# comments, and then implement them one by one, testing as you go. Remember to not write too much at one time. Always add and test functionality incrementally!
You can use the pseudocode below as a guide: Prompt the user for the sale amount If shipping is $0.00Display “Error incorrect input”If notDisplay sale amount and shipping charge |
n
| Part B: TV Channel to Call Sign |
| Requirements |
| Your mission: Write a program that translates a TV channel (1 through 10) in your area to its respective call sign. For example, in the New York metropolitan area, channel 2 translates to WCBS. If a channel is unused in your area, tell the user that this is the case.
Sample output from program: Translate TV Channel Number to Call Sign Enter channel number: 1 Enter channel number: 2 Enter channel number: 6 |
| Tips |
| Best practice: Put yourself in the place of the program. What steps would you personally need to perform in order to process a channel translation yourself? Write out those steps on paper as pseudocode and/or in Visual Studio as C# comments, and then implement them one by one, testing as you go. Remember to not write too much at one time. Always add and test functionality incrementally!
Pseudocode:Although there are several valid ways to write the program, the following is an outline of one way to design the overall logic.
|
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
About Writedemy
We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.
How It Works
To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Are there Discounts?
All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.
