answersLogoWhite

0


Best Answer

#include<stdio.h>

#include<conio.h>

#include<stdlib.h>

#include<math.h>

void main()

{

float amt,bal=0,min=500,cor;

char name[50];

int ch,ano;

clrscr();

printf("\nDetails of new account holder");

printf("\nEnter the Name:");

scanf("%s",name);

printf("\nEnter your account number maximum 4digit:");

scanf("%d",&ano);

printf("\n\tThank you %s.\n\tYour account is created t oour bank.",name);

printf("\nMinimun account balance Rs.500");

do

{

printf("\n\t1.Deposite\n\t2.Withdrawal\n\t3.Balance enqiury\n\t4.Exit" );

printf("\nEnter your chioce:");

scanf("%d",&ch);

switch(ch)

{

case 1:

printf("\nEnter the amount to deposite:");

scanf("%f",&amt);

bal=bal+amt;

printf("\nYour transaction is successful.amount debited your acount");

break;

case 2:

printf("\nEnter the amount to withdrawal:");

scanf("%f",&amt);

cor=bal-amt;

if(cor>=min)

{

printf("\nThe amount credited your account");

bal=bal-amt;

}

else

{

printf("\nThe Minimun balance is to low");

}

break;

case 3:

printf("\nYour Account balance is:%.2f",bal);

break;

case 4:

printf("\nThe transaction is close");

exit(0);

}

}while(ch<=4);

getch();

}

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: C prigram to create sales report using arrays?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Vba code to create a sales order in pastel evolution SDK?

Contact me via email akwasi2 at gmail dot com


What if your company sells twenty five different products you've been ask to write a pseudo code that will display the no of products whose sales are above the average sales value?

First you need to work out the average sales value. For that you need to know the sale price of each of the 25 products and the total number of each product sold. Multiply the sale value by the number sold, then add all 25 totals together. Divide the total value of the sales by the total number of sales to get the average sales value. From that you can determine which of the 25 product lines have a selling price greater than the average selling price. Then simply add the total number of sales from each of those product lines. For a simplified example, consider the following five products: Product #1 #2 #3 #4 #5 Selling price $1.00 $2.00 $1.50 $3.00 $2.50 Quantity sold 50 40 10 1 4 Total $50.00 $80.00 $15.00 $3.00 $10.00 From this we can see the total sales value was $50 + $80 + $15 + $3 + $10 which is &pound;158.00. The quantity total is 50 + 40 + 10 + 1 + 4 which is 105. So the average sales value is $158 / 105 = $1.50 The products with a sales value greater than $1.50 are #2, #4 and #5, with sales of 40, 1 and 4 respectively. Therefore there were 40 + 1 + 4 = 45 sales above the average sales value.


Do you have to pay sales tax for performing a service?

It depends on the State you live in.


Can you show me the CRM process flow diagram for sales?

please answer my question


What do teachers use spread sheets for?

Spreadsheets are used for a number of things. Here are some examples: Supermarkets for sales, wages and staff Scientists for experiments and predicted.

Related questions

What is a sales analysis report?

A sales analysis report basically shows the trends of sales that have occurred within a business over a period of time. This report will show you if sales are decreasing or increasing.


How do you write a sales report?

i went to supply pharmacuitical drugs and i have been as to write sales report


What should you learn from sales report?

your sales maybe?


What is an example of a responsibility report generated by an accounting information system?

Responsibility reports --such as a weekly sales report for a regional sales manager


What is a review of literature report on sales promotion?

The review of literature report on sales promotion can be found by doing an internet search. The review of literature on sales promotion basically talks about various factors that affects the sales promotion.


How can you create a spreadsheet using sales invoice template?

how you can create a spreadsheet using sales invoice template


As an intern in a marketing department Rachel uses her laptop to get data off her company's computer network and then uses the data to create a report about weekly sales. She wants to ask a question a?

server


How was Car sales report worldwide for 2009?

BRILL


What is the purpose of the sales budget report?

The purpose of the sales budget report is to ascertain what the year's budget status would have on the next year's anticipated budget. In order to anticipate what the next year's sales might be, one needs to find out what the last year's sales were.The purpose of the sales budget report is to help plan for the future. The budget can be used to control expenditure and increase revenue for the next financial year.


Report illegal sale of prescription drugs?

You can report illegal sales of prescription drugs to your local law enforcement agency. How can one report to a doctor


Questionnaires on effectiveness of sales promotion for MBA project report?

yes


In quickbooks an accounts recievable report summarizes sales by items?

False