Write the function and call it in the code

Assignment Help DOT NET Programming
Reference no: EM131347002

Assignment

PART 1: A retail store is having a customer appreciation sale. Depending on the total dollars purchased, the customer could receive a discount on his or her total purchases. You are to develop pseudocode or C# code that will obtain the total dollars purchased from the user, determine the discount percentage, and display the total amount due. When the purchases are more than $200, the discount is 20%. When the purchases are $200 or less, the discount is 10%.

 

PART 2: Create a function called calcDiscount that will calculate and return the discount amount. Write the function and call it in the code.

Reference no: EM131347002

Questions Cloud

Determine the upstream and downstream mach numbers : Determine the upstream and downstream Mach numbers and static pressure and temperature ratios across the shock wave.
Write a response about the given post : After extensively getting to know/researching my chosen leader a question to ask onself is what does one take from this example. Mrs. Indra Nooyi was not a person wih a famous/well known name like other peers/CEOs  but has left a mark with me. ..
Determine the maximum density ratio : Using this relation, determine the maximum density ratio (ρy/ρx)max that can occur across a normal shock wave in air.
Summarize the major provisions of the law that you chose : Choose 1 U.S. environmental law. State the name of the law and the date the law was passed and summarize the major provisions of the law that you chose.
Write the function and call it in the code : Create a function called calcDiscount that will calculate and return the discount amount. Write the function and call it in the code.
Explain the evolution of cyberspace through time : Explain the evolution of cyberspace through time. Identify one of the biggest developments that have changed the face of cyberspace. Examine the advent of e-Commerce and its impact on cybersecurity.
Write a program prompt the user for the appropriate input : Write a program using C#, prompt the user for the appropriate input, and display the output as described above. You may assume all data are valid. Provide a program introduction message that tells the user how to use the program.
Determine efficiency of converging diverging diffuser : The test section has a Mach number of 2.70, and the convergingdiverging diffuser section has an exit pressure of 1.00 atm. Determine the efficiency of the converging-diverging diffuser section.
Does player b have a dominant strategy : Does Player B have a dominant strategy? Explain why or why not

Reviews

Write a Review

DOT NET Programming Questions & Answers

  Briefly describe how parameter passing by value

Briefly describe how parameter passing by value and by reference are accomplished in memory. Write statement 1 to call Method A below. Write statement 2 to call Method B. Which method uses pass by value? Which method uses pass by reference?

  What is a connectionstring

What is a ConnectionString. Give a suitable example to illustrate the various part of a ConnectionString

  Design and implement tower of hanoi puzzle program

Task: Design and implement Tower of Hanoi Puzzle program using C# and Windows Presentation Foundation (WPF) template in Visual Studio 2012 or newer.

  Prepare a marymount faculty site

Prepare a Marymount faculty site

  Name some form controls used with dotnet

Managing validation becomes a rather onerous task when you have to design a contact form, an event registration form, a sign in form, etc. What are some form controls used with .NET? Explain your answer.

  Describing get method and post method

The GET method is used for viewing something, without changing its value. The POST method is used for values that are not constant. In terms of security, which method do you think is more secure? Explain your answer.

  Postel s 2001 february safeguarding our water growing more

postel s. 2001 february. safeguarding our water growing more food with less water. scientific american 2842

  Implementing the insurance management system

Implementing the Insurance Management System and implementation of Components as Web Services.

  Build a virtual think-a-dot in visual basic 2010

As originally constructed, a marble could be dropped into one of three holes in the top of the machine. It would then percolate through the machine and come out a hole on the bottom left or right.

  Implement a simple forms-based authentication

In this exercise, you'll implement a simple Forms-based authentication. Create a new ASP.NET application. If the application does not already have a Web.config file in the application root folder, create one.

  How to convert one record into json

Figuring out how to convert one record into JSON and then repeating that process for each record will be easier than trying to just lump convert the whole data set.

  Create a method in the customer class file

In order to access elements of an object individually, you will need to assign "getters" and "setters", and set their protection levels properly. Consider using the auto-implemented property as explained on pp. 256-259.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd