Question about Computers & Internet

1 Answer

Find largest number given three numbers in visual basic

Posted by on

1 Answer

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

    Vice President:

    An expert whose answer got voted for 100 times.

  • Master
  • 781 Answers

Enter a;
enter b;
enter c;
if a>=b and a>c
print "a is the greatest number"
then if b>=a and b>c
print "b is the greatest number"
then if a=b and a=c
print "a, b, c are equal"
if not print "c is the greatest number"

this is pseudocode.. or my drunken attempt to remember pseudocode... but I think the logic could work.

Posted on Nov 27, 2008

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

What is the greatest possible product of a 3 digit number and a 1 digit number?


The largest three-digit number is 999. The largest one-digit number is 9. The product of 999 and 9 is 8991.

Oct 02, 2014 | Office Equipment & Supplies

1 Answer

Please enter your product's id number


please answer your product's id number.visual basic 6.0
Thanks.....

Feb 26, 2013 | Microsoft Mlf Visual Studio Enterprise...

1 Answer

I have to tutor tasm.exe and i need sample programs with explanation


Write a program to find out the largest number from a
given unordered array of 8-bit numbers. Store the largest
number in largest variable.


52h, 23h, 56h, 45h, 9Ah, ABh

Aug 12, 2011 | Borland Turbo Assembler and Debugger 5.0...

1 Answer

Three times the smalles of theree consecutive odd numbers decreased by 7 equals twice the largest one. find the numbers


The hardest part of a word problem is translating it into the equation or equations you need. This one needs just one equation.

Let N = the smallest number. Since they are consecutive, the next ones will be N+2 and N+4. (It doesn't matter that they are odd, just that each one is 2 greater than the one before.)

So, N = the smallest number and N+4 = the largest. Translate the problem (3 times the smallest, N, decreased by 7, equals twice the largest, N+4) into numbers:

3N - 7 = 2 (N+4)

Then it's simple to find N:

3N - 7 = 2N +8

3N - 2N = 8 + 7

N = 15

The three numbers then are 15, 17, 19. Check the answer by seeing if they fit the original problem. 3 X 15 = 45, 45 - 7 = 38, 2 X 19 = 38, so we got the right values.

Mar 06, 2011 | Office Equipment & Supplies

1 Answer

I want to have the source codes for printing diamond shape asterisk in visual basic


I am pretty sure I got this as a homework assignment in programming class. If I had someone give it to me then I wouldn't be even the limited programmer I am now. That said, I will help, but I will not give you the full out answer.

  1. The number of stars and characters per line are an odd number to make the ASCii look like a diamond. For my example, the maximum number of characters per line is five.
  2. Create a variable called dia_star that will hold the spaces and stars. To figure out the number of spaces that should be put into each star line, use this formula:
number of spaces per star = ( max number of characters per line - number of stars) / 2
dia star = number of lines before star and "*"
print dia star

  1. --*--
  2. -***-
  3. *****
Good Luck,

NOLA Tech

Jan 30, 2010 | Microsoft Visual Basic Enterprise Edition...

1 Answer

Find the three consecutive numbers? such that the smallest is 57 less than three times the largest


Let the three consecutive numbers be x, x+1, x+2.

Now, the smallest is 57 less than three times the largest...

=> x + 57 = 3(x + 2)
=> x + 57 = 3x + 6
=> 2x = 57 - 6
=> 2x = 51
=> x = 25.5

=> x, x+1, x+2 = 25.5, 26.5, 27.5

So, the three consecutive numbers are 25.5, 26.5, 27.5.

May 11, 2009 | The Learning Company Achieve! Math &...

1 Answer

Program of c to find largest and second larhest number of given 50 numbers using array


This code generates some random number to test.


#include <limits.h>
#include <stdio.h>
#include <stdlib.h>

int main()
{ findLargest();
return 0;
}

int findLargest()
{ int someNumbers[50];
int i;

// to generate some numbers for us to test
for(i=0; i<50; i++)
// generate a random number between 0-100
someNumbers[i] = rand() % 100;

// for keeping track of numbers, set as smallest possible
int largest = INT_MIN;
int largest2 = INT_MIN;

// go through each item in the array
for(i=0; i<50; i++)
{ // if bigger than our previous max, set as new max
if (someNumbers[i] > someNumbers[largest])
largest = i;
// if it's not been set as new max, and is bigger than current 2nd largest
else if(someNumbers[i] > someNumbers[largest2])
largest2 = i;

// for printing all numbers in the array
printf("%d | %d\n",i, someNumbers[i]);
}

// print largest numbers and their position in the array
printf("largest %d (pos %d).\n2nd largest %d (pos %d)",
someNumbers[largest],
largest,
someNumbers[largest2],
largest2
);

return 0;

}

May 07, 2009 | Computers & Internet

1 Answer

Where can i find an example program of visual basic that can input an odd and even number and can display the result of highest even and highest odd number and can sort them from minimum to maximum


http://www.microsoft.com/visualstudio/en-us/products/teamsystem/default.mspx?pt_id=-1&WT.mc_id=B66C779D-0907-4EE1-9435-FED85F10C8E2&WT.srch=1&wt.mc_id=vspdsrch
this site has a free sample download

Apr 16, 2009 | Microsoft Visual Basic Professional...

1 Answer

Pls. help me


Q.2#  Dim n, sum as Double
Dim i as Integer
n=100
sum=0

for i=1 to n
sum=sum+1/n
next i

Q.3#  Dim sum as Double
sum=0
for i=1 to 99
if i%2 <> 0 then sum=sum+i end if
next i

Sep 16, 2008 | Microsoft AccRepair DS2 2004 for Fr...

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

128 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

kakima

Level 3 Expert

100304 Answers

David Payne
David Payne

Level 3 Expert

14160 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...