Checkout
checkout
view
Your Cart Your Cart: item(s)
Add to Shopping Cart
$2.19 Instant Download
Computer Science, Software Design and Architecture
Year 3

Need example of a flow chart and written specification of a C program


I need an example of a flow chart and specification sheet of a C program.

Here is an example of a C program:

/*Currency conversion.*/
#include
#include
#include
#include
main ()
{
/* Data Declaration statements*/

int Curr_type;
float For_curr;
float Equ_curr;

printf("CURRENCY CONVERTERn");
printf("Choose currency optionn");
printf("Press 1 for MXN: Mexican Peson");
printf("Press 2 for JPY: Japanese Yenn");
printf("Press 3 for HKD: Hong Kong Dollarsn");
printf("Press 4 for KRW: Korean Wonn");
printf("Press 5 for PHP: Philippine Peson");
printf("Enter the type of currency:");
scanf("%d", &Curr_type);/* & symbol assigns L-H and R-H to the left hand quantity*/
printf("Enter the amount of money that you would like to convert to USD:");
scanf("%f", &For_curr);

/* Switch statement to Case Curr_type (1, 2, 3, 4, 5)*/
switch(Curr_type)
{

/* MXN: Mexican Peso */
case 1:
Equ_curr = ((For_curr) * (0.08764));
printf ("The equivalent of %.2f MXN is %.2f USD n", For_curr, Equ_curr);
break; /* Jump to end of switch*/

/* JPY: Japanese Yen */
case 2:
Equ_curr = ((For_curr) * (0.009093));
printf ("The equivalent of %.2f JPY is %.2f USD n", For_curr, Equ_curr);
break; /* Jump to end of switch*/

/* HKD: Hong Kong Dollars */
case 3:
Equ_curr = ((For_curr) * (0.1283));
printf ("The equivalent of %.2f HKD is %.2f USD n", For_curr, Equ_curr);
break; /* Jump to end of switch*/

/* KRW: Korean Won */
case 4:
Equ_curr = ((For_curr) * (0.0008591));
printf ("The equivalent of %.2f KRW is %.2f USD n", For_curr, Equ_curr);
break; /* Jump to end of switch*/

/* PHP: Philippine Peso */
case 5:
Equ_curr = ((For_curr) * (0.01791));
printf ("The equivalent of %.2f PHP is %.2f USD n", For_curr, Equ_curr);
break; /* Jump to end of switch*/

} /*end switch */
getch ();
return (0);
}

By OTA:  Yaohua Zhu, MSc

OTA Rating:  5/5

Your Price:  $2.19  (original value ~$15.96)

What's included:

  • Plain text response
  • Attachment(s):
    • flowchart.doc
$2.19 Download Add to Cart

Add to Shopping Cart
$2.19 Instant Download
Expand the "Currency Conversion" program - Expand the "Currency Conversion" program to accept one input currency, which is error checked (using case or multiple if statements) as a valid entry, and then display its equivalency in US dollars. Insert comments in the program to document the program internally. /*program for currency conversion.*/ #include /*stdio.h - standard buffered ...
Wrong output displayed in Java Program - My output display this: Mortgagecalculator@7ced01 The output should display Years: 30, Loan Amount $200000.00, Interest Rate: .0575, and Monthly Payment: Calculated by Math.POW. Then a list of loan balance and interest paid for each payment over the term of the loan should scroll off the screen, but need loops to display a partial list, hesitate and then...
Java Programming - • Explain how methods with multiple parameters are declared. • Describe two examples of Java-based applications that might use methods that have two or more parameters. • Provide detail about where those applications would be used.
Do not know how to write this code - Write a C program that displays a title, "Currency Conversion", and then writes the names of five currencies and their equivalents to a US dollar. The conversions are hard coded equations. Insert comments in the program to document the program internally.
Identify 1 (one) task you perform regularly, such as cooking, mowing the lawn, or driving a car - Identify 1 (one) task you perform regularly, such as cooking, mowing the lawn, or driving a car: • Write a short, structured design (pseudocode only) that accomplishes this task. • Think about this task in an object-oriented way, and identify the objects involved in the task.

Page generated in 0.027 seconds

About Us ·  Contact Us ·  Samples ·  Solutions ·  Legal Terms and Conditions ·  Privacy Policy

©2008 SolutionLibrary.com

Search for Solutions About Us Samples