Home » Computer Science Question

Computer Science Question

Assignment Instructions

In this assignment you will complete a program to demonstrate the skills presented in this lesson using C#. Please keep in mind that with all the assignments in this course, any given scenarios are hypothetical and intended solely to demonstrate specific skills.

Using the C# programming language, please complete the following assignment:

In this hypothetical scenario, you will create a program that will allow a student to register for certification classes in HVAC. The school offers a $150 discount if the student signs up for twenty or more unit-hours. Students may also pay the tuition costs over a twelve-month period.

Assignment Requirements

  1. Your program should declare variables using the appropriate data types to store the following string values.

Name

: “John Smith”

Address

: “101 N. Main Street”

City

: “AnyTown”

State

: “TX”

Zip: “11111”

Units Taken: “19”

  1. For the price per unit, declare a constant numeric variable to contain the decimal value 100.50.
  2. For the twenty unit-hour discount, declare a constant numeric variable to contain the whole number 150.
  3. Convert the string value for Units Taken to an integer data type and place the converted numeric value into a separate numeric variable.

Hint: Use the same name but add the prefix ‘int’ such as intUnitsTaken.

  1. Using the increment operator, increment the variable above by 1 so that the value 19 will now be 20.
  2. Multiply the constant variable for price per unit by the units taken and place the answer in a variable named tuition.
  3. Subtract the constant discount value from tuition and store the answer in a variable named afterDiscount.
  4. Divide the discounted tuition by 12 and store the answer in a variable named monthlyPayment.
  5. Finally, your program will display the following data using the respective variables for each item:

NameAddressCityState

Zip Code

Number of units taken (numeric value that was incremented)

Tuition before discount

Tuition after discount

Monthly Payment

Include labels for each item as shown in expected output. Format the tuitionvalues and monthly payment as currency.

EXPECTED OUTPUT

Name: John Smith

Address: 101 N. Main Street

City: Anytown

State: TX

Zip Code: 11111

The number of units taken is: 20

The tuition before discount is $2,010.00

The tuition after twenty-unit discount is $1,860.00

Your monthly payment is $155.00

Directions for Submitting Your Assignment

The source code file is the file in your project that contains the code you wrote. You will only need to submit the source code file (the file in your project folder that ends in .cs is the source code file) for your program and not the entire project folder or any additional project files.

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Order your essay today and save 30% with the discount code ESSAYHELP