SlideShare a Scribd company logo
SOLUTIONJUG.COM
CIS/170 - iLab 2 of 7
Screenshot 1
CLICK HERE TO GET THE SOLUTION !!!!!!!
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 a 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 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 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
Is sale amount greater than $5,000.00?
If so, shipping is $20.00
If not, is sale amount greater than $1,000.00?
If so, shipping is $15.00
If not, is sale amount greater than $500.00?
If so, shipping is $10.00
If not, is sale amount greater than $250.00?
If so, shipping is $8.00
If not, is 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 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 program:
Translate TV Channel Number to Call Sign
Enter channel number: 1
Channel 1 is undesignated in your area
Enter channel number: 2
Call sign for channel 2 is WCBS
Enter channel number: 6
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
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.
 Declare variables for channel and call sign
 Get channel number from user
 Use appropriate decision structure to translate number to call sign
 If number is valid in area
 Print out translation
If not
 Tell user this is the case
For instructions on how to use the Dropbox, read these Step-by-Step Instructions or watch this Dropbox
Tutorial.
Screenshot 1
CLICK HERE TO GET THE SOLUTION !!!!!!!

More Related Content

What's hot

From Concrete to Abstract: Motivating Contexts for Novice Programmers
From Concrete to Abstract: Motivating Contexts for Novice ProgrammersFrom Concrete to Abstract: Motivating Contexts for Novice Programmers
From Concrete to Abstract: Motivating Contexts for Novice Programmers
Peter Donaldson
 
CIS 170 Inspiring Innovation -- cis170.com
CIS 170 Inspiring Innovation -- cis170.comCIS 170 Inspiring Innovation -- cis170.com
CIS 170 Inspiring Innovation -- cis170.com
kopiko104
 
CIS 170 Become Exceptional--cis170.com
CIS 170 Become Exceptional--cis170.comCIS 170 Become Exceptional--cis170.com
CIS 170 Become Exceptional--cis170.com
claric131
 
SDL Trados Studio 2014 Masterclass
SDL Trados Studio 2014 MasterclassSDL Trados Studio 2014 Masterclass
SDL Trados Studio 2014 Masterclass
SDL Trados
 

What's hot (8)

Lecture 8
Lecture 8Lecture 8
Lecture 8
 
From Concrete to Abstract: Motivating Contexts for Novice Programmers
From Concrete to Abstract: Motivating Contexts for Novice ProgrammersFrom Concrete to Abstract: Motivating Contexts for Novice Programmers
From Concrete to Abstract: Motivating Contexts for Novice Programmers
 
CIS 170 Inspiring Innovation -- cis170.com
CIS 170 Inspiring Innovation -- cis170.comCIS 170 Inspiring Innovation -- cis170.com
CIS 170 Inspiring Innovation -- cis170.com
 
CIS 170 Become Exceptional--cis170.com
CIS 170 Become Exceptional--cis170.comCIS 170 Become Exceptional--cis170.com
CIS 170 Become Exceptional--cis170.com
 
Lecture 25
Lecture 25Lecture 25
Lecture 25
 
my_resume
my_resumemy_resume
my_resume
 
The best scanner for a small law office
The best scanner for a small law officeThe best scanner for a small law office
The best scanner for a small law office
 
SDL Trados Studio 2014 Masterclass
SDL Trados Studio 2014 MasterclassSDL Trados Studio 2014 Masterclass
SDL Trados Studio 2014 Masterclass
 

Viewers also liked

Presentación en ingles
Presentación en inglesPresentación en ingles
Presentación en ingles
lunny avila
 
Letter of Vivek ji to district collector of Betul for joining Pad yatra at Be...
Letter of Vivek ji to district collector of Betul for joining Pad yatra at Be...Letter of Vivek ji to district collector of Betul for joining Pad yatra at Be...
Letter of Vivek ji to district collector of Betul for joining Pad yatra at Be...
Ananda Hi Ananda
 
Letter of Vivek ji to district administrator of Betul District
Letter of Vivek ji to district administrator of Betul DistrictLetter of Vivek ji to district administrator of Betul District
Letter of Vivek ji to district administrator of Betul District
Ananda Hi Ananda
 
Letter of Vivek ji to Hon Chief minister of Madhya pradesh Shri Shivraj singh...
Letter of Vivek ji to Hon Chief minister of Madhya pradesh Shri Shivraj singh...Letter of Vivek ji to Hon Chief minister of Madhya pradesh Shri Shivraj singh...
Letter of Vivek ji to Hon Chief minister of Madhya pradesh Shri Shivraj singh...
Ananda Hi Ananda
 
Practica 2 Pedagogía Educación y Sociedad
Practica 2  Pedagogía Educación y SociedadPractica 2  Pedagogía Educación y Sociedad
Practica 2 Pedagogía Educación y Sociedad
Sara García
 
Designs for Future Learning
Designs for Future LearningDesigns for Future Learning
Designs for Future Learning
University of Wisconsin - Superior
 
Cis 170 ilab 5 of 7
Cis 170 ilab 5 of 7Cis 170 ilab 5 of 7
Cis 170 ilab 5 of 7comp274
 
Cis 170 ilab 1 of 7
Cis 170 ilab 1 of 7Cis 170 ilab 1 of 7
Cis 170 ilab 1 of 7comp274
 
формирование культуры общения со сверстниками у воспитанников
формирование культуры общения со сверстниками у воспитанниковформирование культуры общения со сверстниками у воспитанников
формирование культуры общения со сверстниками у воспитанников
kity90
 
Cis 170 ilab 4 of 7
Cis 170 ilab 4 of 7Cis 170 ilab 4 of 7
Cis 170 ilab 4 of 7comp274
 
Salary Negotiations, Knowing Your Worth and Not Settling for Less
Salary Negotiations, Knowing Your Worth and Not Settling for LessSalary Negotiations, Knowing Your Worth and Not Settling for Less
Salary Negotiations, Knowing Your Worth and Not Settling for Less
Joshua Hoskins
 
32 formacic3b3n-reticular
32 formacic3b3n-reticular32 formacic3b3n-reticular
32 formacic3b3n-reticular
Fabi Garces
 
RECURSO DE QUEJA DEL LETRADO FABIÁN NSUE NGUEMA ANTE LA AUTORIDAD MILITAR DEL...
RECURSO DE QUEJA DEL LETRADO FABIÁN NSUE NGUEMA ANTE LA AUTORIDAD MILITAR DEL...RECURSO DE QUEJA DEL LETRADO FABIÁN NSUE NGUEMA ANTE LA AUTORIDAD MILITAR DEL...
RECURSO DE QUEJA DEL LETRADO FABIÁN NSUE NGUEMA ANTE LA AUTORIDAD MILITAR DEL...
Diario Rombe
 

Viewers also liked (15)

Presentación en ingles
Presentación en inglesPresentación en ingles
Presentación en ingles
 
Trabajo iso 9000 (1)
Trabajo iso 9000 (1)Trabajo iso 9000 (1)
Trabajo iso 9000 (1)
 
Letter of Vivek ji to district collector of Betul for joining Pad yatra at Be...
Letter of Vivek ji to district collector of Betul for joining Pad yatra at Be...Letter of Vivek ji to district collector of Betul for joining Pad yatra at Be...
Letter of Vivek ji to district collector of Betul for joining Pad yatra at Be...
 
Letter of Vivek ji to district administrator of Betul District
Letter of Vivek ji to district administrator of Betul DistrictLetter of Vivek ji to district administrator of Betul District
Letter of Vivek ji to district administrator of Betul District
 
Strategies in childrens services
Strategies in childrens servicesStrategies in childrens services
Strategies in childrens services
 
Letter of Vivek ji to Hon Chief minister of Madhya pradesh Shri Shivraj singh...
Letter of Vivek ji to Hon Chief minister of Madhya pradesh Shri Shivraj singh...Letter of Vivek ji to Hon Chief minister of Madhya pradesh Shri Shivraj singh...
Letter of Vivek ji to Hon Chief minister of Madhya pradesh Shri Shivraj singh...
 
Practica 2 Pedagogía Educación y Sociedad
Practica 2  Pedagogía Educación y SociedadPractica 2  Pedagogía Educación y Sociedad
Practica 2 Pedagogía Educación y Sociedad
 
Designs for Future Learning
Designs for Future LearningDesigns for Future Learning
Designs for Future Learning
 
Cis 170 ilab 5 of 7
Cis 170 ilab 5 of 7Cis 170 ilab 5 of 7
Cis 170 ilab 5 of 7
 
Cis 170 ilab 1 of 7
Cis 170 ilab 1 of 7Cis 170 ilab 1 of 7
Cis 170 ilab 1 of 7
 
формирование культуры общения со сверстниками у воспитанников
формирование культуры общения со сверстниками у воспитанниковформирование культуры общения со сверстниками у воспитанников
формирование культуры общения со сверстниками у воспитанников
 
Cis 170 ilab 4 of 7
Cis 170 ilab 4 of 7Cis 170 ilab 4 of 7
Cis 170 ilab 4 of 7
 
Salary Negotiations, Knowing Your Worth and Not Settling for Less
Salary Negotiations, Knowing Your Worth and Not Settling for LessSalary Negotiations, Knowing Your Worth and Not Settling for Less
Salary Negotiations, Knowing Your Worth and Not Settling for Less
 
32 formacic3b3n-reticular
32 formacic3b3n-reticular32 formacic3b3n-reticular
32 formacic3b3n-reticular
 
RECURSO DE QUEJA DEL LETRADO FABIÁN NSUE NGUEMA ANTE LA AUTORIDAD MILITAR DEL...
RECURSO DE QUEJA DEL LETRADO FABIÁN NSUE NGUEMA ANTE LA AUTORIDAD MILITAR DEL...RECURSO DE QUEJA DEL LETRADO FABIÁN NSUE NGUEMA ANTE LA AUTORIDAD MILITAR DEL...
RECURSO DE QUEJA DEL LETRADO FABIÁN NSUE NGUEMA ANTE LA AUTORIDAD MILITAR DEL...
 

Similar to Cis 170 ilab 2 of 7

Devry cis-170-c-i lab-6-of-7-menu
Devry cis-170-c-i lab-6-of-7-menuDevry cis-170-c-i lab-6-of-7-menu
Devry cis-170-c-i lab-6-of-7-menu
noahjamessss
 
Devry cis-170-c-i lab-6-of-7-menu
Devry cis-170-c-i lab-6-of-7-menuDevry cis-170-c-i lab-6-of-7-menu
Devry cis-170-c-i lab-6-of-7-menu
cskvsmi44
 
Cis 170 i lab 1 of 7
Cis 170 i lab 1 of 7Cis 170 i lab 1 of 7
Cis 170 i lab 1 of 7helpido9
 
Devry cis-170-c-i lab-2-of-7-decisions
Devry cis-170-c-i lab-2-of-7-decisionsDevry cis-170-c-i lab-2-of-7-decisions
Devry cis-170-c-i lab-2-of-7-decisions
govendaagoovenda
 
Devry cis-170-c-i lab-2-of-7-decisions
Devry cis-170-c-i lab-2-of-7-decisionsDevry cis-170-c-i lab-2-of-7-decisions
Devry cis-170-c-i lab-2-of-7-decisions
noahjamessss
 
CIS 170 Inspiring Innovation/tutorialrank.com
 CIS 170 Inspiring Innovation/tutorialrank.com CIS 170 Inspiring Innovation/tutorialrank.com
CIS 170 Inspiring Innovation/tutorialrank.com
jonhson110
 
CIS 170 Effective Communication - tutorialrank.com
CIS 170 Effective Communication - tutorialrank.comCIS 170 Effective Communication - tutorialrank.com
CIS 170 Effective Communication - tutorialrank.com
Bartholomew19
 
CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   
llflowe
 
CIS 170 Imagine Your Future/newtonhelp.com   
CIS 170 Imagine Your Future/newtonhelp.com   CIS 170 Imagine Your Future/newtonhelp.com   
CIS 170 Imagine Your Future/newtonhelp.com   
bellflower42
 
Cis247 a ilab 1 of 7 creating a user interface
Cis247 a ilab 1 of 7 creating a user interfaceCis247 a ilab 1 of 7 creating a user interface
Cis247 a ilab 1 of 7 creating a user interfaceccis224477
 
CIS 170 Focus Dreams/newtonhelp.com
CIS 170 Focus Dreams/newtonhelp.comCIS 170 Focus Dreams/newtonhelp.com
CIS 170 Focus Dreams/newtonhelp.com
bellflower82
 
Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com  Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com
amaranthbeg143
 
Week 2PRG 218 Variables and Input and Output OperationsYou w.docx
Week 2PRG 218   Variables and Input and Output OperationsYou w.docxWeek 2PRG 218   Variables and Input and Output OperationsYou w.docx
Week 2PRG 218 Variables and Input and Output OperationsYou w.docx
melbruce90096
 
Cis247 i lab 1 of 7 creating a user interface
Cis247 i lab 1 of 7 creating a user interfaceCis247 i lab 1 of 7 creating a user interface
Cis247 i lab 1 of 7 creating a user interfacesdjdskjd9097
 
POS/408 ENTIRE CLASS UOP TUTORIALS
POS/408 ENTIRE CLASS UOP TUTORIALSPOS/408 ENTIRE CLASS UOP TUTORIALS
POS/408 ENTIRE CLASS UOP TUTORIALS
Sharon Reynolds
 
Cis247 a ilab 1 of 7 creating a user interface
Cis247 a ilab 1 of 7 creating a user interfaceCis247 a ilab 1 of 7 creating a user interface
Cis247 a ilab 1 of 7 creating a user interfacecis247
 
Cis247 i lab 1 of 7 creating a user interface
Cis247 i lab 1 of 7 creating a user interfaceCis247 i lab 1 of 7 creating a user interface
Cis247 i lab 1 of 7 creating a user interfacesdjdskjd9097
 
Week 2
Week 2Week 2
Week 2
EasyStudy3
 
COMP 122 Entire Course NEW
COMP 122 Entire Course NEWCOMP 122 Entire Course NEW
COMP 122 Entire Course NEW
shyamuopeight
 

Similar to Cis 170 ilab 2 of 7 (20)

Devry cis-170-c-i lab-6-of-7-menu
Devry cis-170-c-i lab-6-of-7-menuDevry cis-170-c-i lab-6-of-7-menu
Devry cis-170-c-i lab-6-of-7-menu
 
Devry cis-170-c-i lab-6-of-7-menu
Devry cis-170-c-i lab-6-of-7-menuDevry cis-170-c-i lab-6-of-7-menu
Devry cis-170-c-i lab-6-of-7-menu
 
Cis 170 i lab 1 of 7
Cis 170 i lab 1 of 7Cis 170 i lab 1 of 7
Cis 170 i lab 1 of 7
 
Devry cis-170-c-i lab-2-of-7-decisions
Devry cis-170-c-i lab-2-of-7-decisionsDevry cis-170-c-i lab-2-of-7-decisions
Devry cis-170-c-i lab-2-of-7-decisions
 
Devry cis-170-c-i lab-2-of-7-decisions
Devry cis-170-c-i lab-2-of-7-decisionsDevry cis-170-c-i lab-2-of-7-decisions
Devry cis-170-c-i lab-2-of-7-decisions
 
CIS 170 Inspiring Innovation/tutorialrank.com
 CIS 170 Inspiring Innovation/tutorialrank.com CIS 170 Inspiring Innovation/tutorialrank.com
CIS 170 Inspiring Innovation/tutorialrank.com
 
CIS 170 Effective Communication - tutorialrank.com
CIS 170 Effective Communication - tutorialrank.comCIS 170 Effective Communication - tutorialrank.com
CIS 170 Effective Communication - tutorialrank.com
 
CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   
 
CIS 170 Imagine Your Future/newtonhelp.com   
CIS 170 Imagine Your Future/newtonhelp.com   CIS 170 Imagine Your Future/newtonhelp.com   
CIS 170 Imagine Your Future/newtonhelp.com   
 
Cis247 a ilab 1 of 7 creating a user interface
Cis247 a ilab 1 of 7 creating a user interfaceCis247 a ilab 1 of 7 creating a user interface
Cis247 a ilab 1 of 7 creating a user interface
 
CIS 170 Focus Dreams/newtonhelp.com
CIS 170 Focus Dreams/newtonhelp.comCIS 170 Focus Dreams/newtonhelp.com
CIS 170 Focus Dreams/newtonhelp.com
 
Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com  Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com
 
Week 2PRG 218 Variables and Input and Output OperationsYou w.docx
Week 2PRG 218   Variables and Input and Output OperationsYou w.docxWeek 2PRG 218   Variables and Input and Output OperationsYou w.docx
Week 2PRG 218 Variables and Input and Output OperationsYou w.docx
 
Cis247 i lab 1 of 7 creating a user interface
Cis247 i lab 1 of 7 creating a user interfaceCis247 i lab 1 of 7 creating a user interface
Cis247 i lab 1 of 7 creating a user interface
 
POS/408 ENTIRE CLASS UOP TUTORIALS
POS/408 ENTIRE CLASS UOP TUTORIALSPOS/408 ENTIRE CLASS UOP TUTORIALS
POS/408 ENTIRE CLASS UOP TUTORIALS
 
Cis247 a ilab 1 of 7 creating a user interface
Cis247 a ilab 1 of 7 creating a user interfaceCis247 a ilab 1 of 7 creating a user interface
Cis247 a ilab 1 of 7 creating a user interface
 
Cis247 i lab 1 of 7 creating a user interface
Cis247 i lab 1 of 7 creating a user interfaceCis247 i lab 1 of 7 creating a user interface
Cis247 i lab 1 of 7 creating a user interface
 
MPP-UPNVJ
MPP-UPNVJMPP-UPNVJ
MPP-UPNVJ
 
Week 2
Week 2Week 2
Week 2
 
COMP 122 Entire Course NEW
COMP 122 Entire Course NEWCOMP 122 Entire Course NEW
COMP 122 Entire Course NEW
 

More from comp274

Itco 620 unit 4 project 1
Itco 620 unit 4 project 1Itco 620 unit 4 project 1
Itco 620 unit 4 project 1comp274
 
Itco 620 unit 2 project 2
Itco 620 unit 2 project 2Itco 620 unit 2 project 2
Itco 620 unit 2 project 2comp274
 
Itco 620 unit 1 project 1
Itco 620 unit 1 project 1Itco 620 unit 1 project 1
Itco 620 unit 1 project 1comp274
 
Itco 620 unit 5 project
Itco 620 unit 5 projectItco 620 unit 5 project
Itco 620 unit 5 projectcomp274
 
Cis 355 ilab 4 of 6
Cis 355 ilab 4 of 6Cis 355 ilab 4 of 6
Cis 355 ilab 4 of 6comp274
 
Cis 355 ilab 2 of 6
Cis 355 ilab 2 of 6Cis 355 ilab 2 of 6
Cis 355 ilab 2 of 6comp274
 
Cis 355 ilab 1 of 6
Cis 355 ilab 1 of 6Cis 355 ilab 1 of 6
Cis 355 ilab 1 of 6comp274
 
Cis 355 ilab 6 of 6
Cis 355 ilab 6 of 6Cis 355 ilab 6 of 6
Cis 355 ilab 6 of 6comp274
 
Cis 336 ilab 5 of 7
Cis 336 ilab 5 of 7Cis 336 ilab 5 of 7
Cis 336 ilab 5 of 7comp274
 
Cis 336 ilab 2 of 7
Cis 336 ilab 2 of 7Cis 336 ilab 2 of 7
Cis 336 ilab 2 of 7comp274
 
Cis 115 week 6 exercise
Cis 115 week 6 exerciseCis 115 week 6 exercise
Cis 115 week 6 exercisecomp274
 
Cis 115 i lab 4 of 7
Cis 115 i lab 4 of 7Cis 115 i lab 4 of 7
Cis 115 i lab 4 of 7comp274
 

More from comp274 (14)

Week 4
Week 4Week 4
Week 4
 
Week 3
Week 3Week 3
Week 3
 
Itco 620 unit 4 project 1
Itco 620 unit 4 project 1Itco 620 unit 4 project 1
Itco 620 unit 4 project 1
 
Itco 620 unit 2 project 2
Itco 620 unit 2 project 2Itco 620 unit 2 project 2
Itco 620 unit 2 project 2
 
Itco 620 unit 1 project 1
Itco 620 unit 1 project 1Itco 620 unit 1 project 1
Itco 620 unit 1 project 1
 
Itco 620 unit 5 project
Itco 620 unit 5 projectItco 620 unit 5 project
Itco 620 unit 5 project
 
Cis 355 ilab 4 of 6
Cis 355 ilab 4 of 6Cis 355 ilab 4 of 6
Cis 355 ilab 4 of 6
 
Cis 355 ilab 2 of 6
Cis 355 ilab 2 of 6Cis 355 ilab 2 of 6
Cis 355 ilab 2 of 6
 
Cis 355 ilab 1 of 6
Cis 355 ilab 1 of 6Cis 355 ilab 1 of 6
Cis 355 ilab 1 of 6
 
Cis 355 ilab 6 of 6
Cis 355 ilab 6 of 6Cis 355 ilab 6 of 6
Cis 355 ilab 6 of 6
 
Cis 336 ilab 5 of 7
Cis 336 ilab 5 of 7Cis 336 ilab 5 of 7
Cis 336 ilab 5 of 7
 
Cis 336 ilab 2 of 7
Cis 336 ilab 2 of 7Cis 336 ilab 2 of 7
Cis 336 ilab 2 of 7
 
Cis 115 week 6 exercise
Cis 115 week 6 exerciseCis 115 week 6 exercise
Cis 115 week 6 exercise
 
Cis 115 i lab 4 of 7
Cis 115 i lab 4 of 7Cis 115 i lab 4 of 7
Cis 115 i lab 4 of 7
 

Recently uploaded

Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
Fwdays
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
CatarinaPereira64715
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 

Recently uploaded (20)

Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 

Cis 170 ilab 2 of 7

  • 1. SOLUTIONJUG.COM CIS/170 - iLab 2 of 7 Screenshot 1 CLICK HERE TO GET THE SOLUTION !!!!!!! 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
  • 2. 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 a 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 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 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!
  • 3. You can use the pseudocode below as a guide: Prompt the user for the sale amount Is sale amount greater than $5,000.00? If so, shipping is $20.00 If not, is sale amount greater than $1,000.00? If so, shipping is $15.00 If not, is sale amount greater than $500.00? If so, shipping is $10.00 If not, is sale amount greater than $250.00? If so, shipping is $8.00 If not, is 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 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 program: Translate TV Channel Number to Call Sign Enter channel number: 1 Channel 1 is undesignated in your area Enter channel number: 2 Call sign for channel 2 is WCBS Enter channel number: 6 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 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
  • 4. 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 channel number from user  Use appropriate decision structure to translate number to call sign  If number is valid in area  Print out translation If not  Tell user this is the case For instructions on how to use the Dropbox, read these Step-by-Step Instructions or watch this Dropbox Tutorial. Screenshot 1 CLICK HERE TO GET THE SOLUTION !!!!!!!