Question

You are required to demonstrate the four-stage process of program development: analysis, design, implementation and testing...

You are required to demonstrate the four-stage process of program development: analysis, design, implementation and testing and as such your service is retained as a business analysis to design the following basic application using C#. Write a program that achieve the following objectives:

Allow the user to: - Enter a Customer Name - Enter an Item name - Enter the last 5 purchases - Computer the average cost of the last 5 purchases - Using a tax of 8% derive the final cost. - The final cost will be 5% lower if purchases are over $1000 - Use message boxes, if conditions coupled with appropriate forms and relevant controls to achieve the above objectives.

Your deliverables are: A. State any assumptions made. B. A completed program that depicts the above expressed requirements. C. Remember to submit both the screen capture and the code in a word doc

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Dear Student ,

As per requirement submitted above kindly find below solution.

Here new windows forms application in C# is created using visual studio 2019 with name "PurchaseApp". This application contains a form with name "Form1.cs".Below is the details of this form.

Form1.cs[Design] :

**************************

Form1.cs :

//namespace
using System;
using System.Windows.Forms;
//application namespace
namespace PurchaseApp
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
//calculate button click
private void btnCalculate_Click(object sender, EventArgs e)
{
//taking customer name entered by user
string name = txtCustomerName.Text;
//taking item name entered by user
string itemName = txtItemName.Text;
//taking purchase to find total amount
double purchaseAmount = double.Parse(txtPurchase1.Text) + double.Parse(txtPurchase2.Text) + double.Parse(txtPurchase3.Text) + double.Parse(txtPurchase4.Text) + double.Parse(txtPurchase5.Text);
//calculate average cost
double avgCost = purchaseAmount / 5;
//calculating final cost
double finalCostwithTax = purchaseAmount + purchaseAmount * 0.08;
//checking final cost
if (finalCostwithTax > 1000)
{
//then give additional discount of 5%
finalCostwithTax = finalCostwithTax - finalCostwithTax * 0.05;
}
//display details in the Message box
MessageBox.Show("Customer Name :" + name + Environment.NewLine + "Item Name : " + itemName + Environment.NewLine + "Average Purchase Amount : " + avgCost.ToString("0.00") + Environment.NewLine + "Purchase Amount : " + purchaseAmount.ToString("0.00") + Environment.NewLine + "Final Cost : " + finalCostwithTax.ToString("0.00"));
}
}
}

==================================

Output :Run application using F5 and will get the screen as shown below

Screen 1:

Screen 2:Screen showing purchase amount details

NOTE :PLEASE FEEL FREE TO PROVIDE FEEDBACK ABOUT THE SOLUTION.

Add a comment
Know the answer?
Add Answer to:
You are required to demonstrate the four-stage process of program development: analysis, design, implementation and testing...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • GUI Program Development Activity (C#) You are required to demonstrate the four-stage process of program development:...

    GUI Program Development Activity (C#) You are required to demonstrate the four-stage process of program development: analysis, design, implementation and testing and as such your service is retained as a business analysis to design a simple student grade program. The program should achieve the following objectives: 1. Design an interface and implement the following. 2. Records the students name. 3. Accepts 7 test scores for the student. 4. Calculates the sum of the scores. 5. Calculates the average of the...

  • CS 215 Program Design, Abstraction, and Problem Solving Programming Project #3 INTRODUCTION The goal of this...

    CS 215 Program Design, Abstraction, and Problem Solving Programming Project #3 INTRODUCTION The goal of this programming project is to enable the student to practice designing a program that solves a problem using a class and a linked-list and developing a C++ program to implement the solution. PROJECT TASKS 1. Read the problem definition below and then analyze it before designing a solution. You will produce a document (external documentation) of this definition, analysis, and design. 2. Write a C++...

  • C PROGRAM, A FOPEN FILE NEED TO BE CREATED Objective To review reading from a file....

    C PROGRAM, A FOPEN FILE NEED TO BE CREATED Objective To review reading from a file. To use records (an instance of a struct) To use Dynamic Memory Allocation To create and use a dynamically allocated array of structs To use enumerated types in a useful manner (more info given on Discussion board!) The Problem Bad economic times has forced the UCF administration to think outside the box for alternative methods of income. Specifically, we now have a UCF lottery,...

  • Project Description In this project, you will design and implement a database for keeping track of...

    Project Description In this project, you will design and implement a database for keeping track of information for an online “SOCIAL NETWORK” system (e.g. a simplified version of Facebook!). You will first design an EER schema diagram for this database application. Then, you will map the EER schema into a relational database schema and implement it on ORACLE or MySQL or some other relational DBMS. Finally, you will load some data into your database (via user Interface) and create some...

  • Use program control statements in the following exercises: Question 1 . Write pseudocode for the following:...

    Use program control statements in the following exercises: Question 1 . Write pseudocode for the following: • Input a time in seconds. • Convert this time to hours, minutes, and seconds and print the result as shown in the following example: 2 300 seconds converts to 0 hours, 38 minutes, 20 seconds. Question 2. The voting for a company chairperson is recorded by entering the numbers 1 to 5 at the keyboard, depending on which of the five candidates secured...

  • This project will allow you to write a program to get more practice with the stack...

    This project will allow you to write a program to get more practice with the stack and queue data structures, as well as more practice with object-oriented ideas that we explored in the previous projects. In this assignment you will be writing a simulation of an order-fulfillment system for a company like Amazon.com. These companies take orders for products and ship them to customers based on what they have in inventory. For this assignment you will be performing a scaled-back...

  • Please help writing a well structured document using the below Agile Runbook - Our Overall Delivery Process How do we initiate a Project? Any project is a response to a pain point or desire expresse...

    Please help writing a well structured document using the below Agile Runbook - Our Overall Delivery Process How do we initiate a Project? Any project is a response to a pain point or desire expressed by either customers, internal stakeholders, employees, or regulatory authorities. In short, a project is a time bound and specific goal oriented task-system that is born out of an ask from any stakeholder. Project initiation is laying down a new project by defining its goals, objectives,...

  • Title: Partners Health Care Systems (PHS): Transforming Health Care Services Delivery through Information Management According to...

    Title: Partners Health Care Systems (PHS): Transforming Health Care Services Delivery through Information Management According to government sources, U.S. expenditures on health care in 2009 reached nearly $2.4 trillion dollars ($2.7 trillion by the end of 2010).[1] Despite this vaunting national level of expenditure on medical treatment, death rates due to preventable errors in the delivery of health services rose to approximately 98,000 deaths in 2009.[2] To address the dual challenges of cost control and quality improvement, some have argued...

  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

  • Summary should briefly analyze the central problems and issues of the case and provide some analysis...

    Summary should briefly analyze the central problems and issues of the case and provide some analysis and suggestions. Thank you. Lean Initiatives and Growth at Orlando Metering Company It was late August 2002 and Ed Cucinelli, vice president of Orlando Metering Company (OMC), sat in his office on a late Saturday morning. He had come in to prepare for some strategic planning meetings that were scheduled for the upcoming week. As he noticed the uncommon silence in the building, Ed...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT