Get Guided CIS170 Lab 2 in C#

$3.99

Get Guided CIS170 Lab 2 in C Hash

 

L A B O V E R V I E W
Scenario/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:
1. 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.
2. 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:
1. To be able to design program logic using either a flowchart or pseudocode
2. To be able to define and use data types
3. To be able to prompt the user for input
4. To be able to use the assignment statement for calculations
5. To be able to display output to the console in a formatted manner
6. To be able to debug a program of syntax and logic errors
7. To be able to make decisions
Your lab grade will be based upon:
1. the formatting of your source code;
2. the use of meaningful identifiers;
3. the extent of internal documentation; and
4. 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 purchase from the user and then calculates the shipping charge, based on the following table:
$0.00 – $250.00: $5.00
$250.01 – $500.00: $8.00
$500.01 – $1,000.00: $10.00
$1,000.01 – $5,000.00: $15.00
over $5,000.00: $20.00
Sample output from the program:
Enter a purchase amount to find out your shipping charges.
Please enter the amount of your purchase: 234.65
The shipping charge on a purchase of $234.65 is $5.00.
Press any key to continue . . .
Tips

Best practice: Put yourself in the place of the program. What questions would you ask a customer 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
Is the sale amount greater than $5,000.00?
If so, shipping is $20.00
If not, is the sale amount greater than $1,000.00?
If so, shipping is $15.00
If not, is the sale amount greater than $500.00?
If so, shipping is $10.00
If not, is the sale amount greater than $250.00?
If so, shipping is $8.00
If not, is the sale amount greater than $0.00
shipping is $5.00
If not
shipping is $0.00
If shipping is $0.00
Display “Error incorrect input”
If not
Display the sale amount and shipping charge

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 the program:
Translate the TV Channel Number to Call Sign
Enter channel number: 1
Channel 1 is undesignated in your area
Enter channel number: 2
The call sign for channel 2 is WCBS
Enter channel number: 6
The call sign for channel 6 is WRNNDT

Tips

Best practice: Put yourself in the place of the program. What steps would you personally need to perform 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.
• Declare variables for channel and call sign
• Get the channel number from the user
• Use appropriate decision structure to translate number to call sign
• If the number is valid in the area
o Print out the translation
• If not
o Tell the user this is the case

Need to Purchase Labs?

We understand the dire situation of students. If you are wondering, can I pay someone to do my exam, then we have got you covered. Time is of the essence, and students can’t take any risks when it comes to exams. To help our students in these circumstances, we have updated our operations from an hourly basis to 24/7, addressing students’ pay someone to take my exam now concerns. Our experts work round the clock on your order. Moreover, our customer representatives are always online to take in your hire someone to take my exam queries. Get online classes, exams, and course assistance from Get Exam Done. For custom, help email us at [email protected] or WhatsApp us at +1(657)366-7486

Scott Belmont from NYC, USA
Hired a tutor to take programming class and final exam
40 minutes ago
Ebony Nicole from Bronx, USA
Hired a tutor to take history and algebra final exams
2 hours ago
Randy Wells from Texas, USA
Hired an expert to take chemistry proctored exam
1 hour ago
Kurt LeBlanc from Iowa, USA
Hired an expert to take statistics online exam
1 hour ago