# C program ( #14, #15 )

Anonymous
account_balance_wallet \$15

Question description

please see the attachment in order to know what are the requirements. you should work on the C program, all what you have to do is to type the requirements in the C program , they are really easy

GENG 102 Assignment #14 Sorting numbers Write a program that prompts the user for 3 numbers and a character. The program will display the three numbers either in the ascending or descending order depending on the character input. If the character is A, the three values should be printed out in the ascending order. If the character is D, in the descending order. For example, if the three numbers are 1, -4, 5 and the character input is A, then the program should output the following: The three numbers in the ascending order are -4, 1, and 5. If the character input is D, then the program should output the following: The three numbers in the descending order are 5, 1, and -4. Pre-lab assignment 1. Write down the first three steps of problem solving. 2. Write down the detailed pseudocode. Remember to include error checking.
ECE102 Assignment #15 1. Trace the following loop. After you have traced the loop, write down the complete and exact output that will be shown on the command window. Pay attention to the %4d and %4c in the printf commands. int a = 1, b = 1, counter = 1; int c; printf(“%4c%4c%4c\n’”, ‘a’, ‘b’, ‘c’); /*notice the single quotes?*/ while (counter <=7) { c = a+b; printf(“%4d%4d%4d\n”, a, b, c); a = b; b = c; } 2. Trace the following loop. After you have traced the loop, write down the complete output that will be shown on the command window. int N = 6; int nfactorial = 1, k; k = N; while (k>= 1) { nfactorial = nfactorial *k; k--; } printf(“%d! = %d\n”, N, nfactorial);

School: University of Virginia

=======================================================please find the attachment.this contain answers for assignment 14 and 15if you need separate doc for each assignments let me know. i'll send separate docs.

//Assignment 14
//Ali Almusallam

#include
#include
#include

void ascending_order(i...

flag Report DMCA
Review

Anonymous
Wow this is really good.... didn't expect it. Sweet!!!!

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors