Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Use GUI for input and output and in Windows Form . I\'m stuck on how to build th

ID: 3871253 • Letter: U

Question

Use GUI for input and output and in Windows Form. I'm stuck on how to build the GUI and program accordingly so it Thank you for any help I can get.

(Find the Two Largest Number) The process of finding the maximum value (i.e., the largest of a group of values) is used frequently in computer applications. For example, an app that determines the winner of a sales contest would input the number of units sold by each salesperson. The salesperson who sells the most units wins the contest. Suggestion: first Write pseudocode, then a C# app that takes a user inputs: a series of 10 integers, then determines and displays the largest integer. < Your app should use at least the following three variables: a) counter: A counter to count to 10 (i.e., to keep track of how many numbers have been input and to determine when all 10 numbers have been processed). b) number: The integer most recently input by the user. c) largest: The largest number found so far d) find the second largest value

Explanation / Answer

#include<stdio.h>

intmain()

{

intcounter;

intnumber;

intlargest;

printf("Enter the first number: ");

scanf("%d", &largest );

counter =2;

while( counter <=10) {

printf("Enter next number: ");

scanf("%d", &number );

if( number > largest ) {

largest = number;

}

counter++;

}

printf("Largest is %d ", largest );

return 0;

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote