0% found this document useful (0 votes)
19 views

C# Pop Calculator

C# program

Uploaded by

Elma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

C# Pop Calculator

C# program

Uploaded by

Elma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

CMPE1300 – ICA 1

You will create a console application that will calculate a the cost of purchasing cans of pop.
Your program will perform the following operations:

• display a title with the assignment number and your name


• input the number of cans using an appropriate data type
• input the cost per can using an appropriate data type
• calculate and display the gst (5%)
• calculate and display the total cost of the purchase

Your program will produce the output shown for the example values of 7 cans and $0.85 per
can.

You will use variable names in your program that are descriptive and use camelCase notation.
Your program must be fully documented as per the documentation specifications. Your
instructor will inspect your program to ensure that all specifications are met.

Zip Your program and submit the zip file on Moodle.


Rubric: 20 Marks
Item Max Marks Penalty
ICA Number and Name 3 Centering not done: -2
displayed and centered
Inputs 4 Prompts missing (-1 per
missing prompt)
GST properly calculated and 2
displayed
Total Cost properly calculated 4
and displayed
“Press <Enter> To Exit” 2
displayed and program waits
for key pressed
Documentation 5
(Programmer block,
comments, proper variable
names, indentation, spacing
between blocks of Code)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy