Question about Computers & Internet

1 Answer

Need to write a simple (no array allowed) to take three inputs from a user and sort it numerically. Not just provide the MAXNUM. via Javascript

Posted by on

Ad

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    MVP:

    An expert that got 5 achievements.

    Vice President:

    An expert whose answer got voted for 100 times.

    Novelist:

    An expert who has written 50 answers of more than 400 characters.

  • Expert
  • 171 Answers

In pCode

Var1 = Input1
Var2 = input2
Var3 = input3

If Var1 > Var2 and Var3
Then Var1 is Max
If Var1 > Var2 and < Var3
then Var3 is Max
Else Var2 is Max

If Var1 is Max and Var 2 > Var3
Then Var1 = Max
Var2 = Mid
Var3 = Min

if Var2 is Max and Var >1 Var3
Then Var2 = Max
Var1 = Mid
Var3 = Min

Repeat the various possibilities and you have got your result without arrays

Posted on Oct 06, 2009

Ad

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

Ad

Add Your Answer

Uploading: 0%

my-video-file.mp4

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

×

Loading...
Loading...

Related Questions:

1 Answer

Roman numerals


Book indexing systems likely require such capabilities. That subject is in the realm of Nancy C. Mulvany (writer of 2005's Indexing Books); but good luck on getting a reply from such lofty heights.

Here is a page referring to how to sort Roman Numerals in Word tables: http://en.community.dell.com/support-forums/software-os/f/3526/t/17598900

Here is some code for sorting Roman numerals: http://stackoverflow.com/questions/6507536/how-to-sort-an-array-of-roman-numerals

Similarly, here is a discussion of use of vlookup: http://www.pcreview.co.uk/forums/sorting-data-using-roman-numerals-t2104212.html and also in the following Excel forum:

http://www.excelforum.com/excel-general/397231-sorting-data-using-roman-numerals.html

I doubt you want to use this online alphabetizer which can handle Roman numerals: http://alphabetizer.flap.tv/

Maybe I have misunderstood the question and you are wondering about something else besides sorting. But here is a link regarding some sql server sorting: http://sql.software.informer.com/download-sql-server-sort-roman-numerals/

Jan 21, 2015 | Games

1 Answer

I need a code of a simple login form with the output


<?php
require("db/config.php");
session_start();
if(isset($_POST["btnLogin"]))
{
$nm=$_POST["txtUid"];
$pas=$_POST["txtPass"];

$q=mysql_query("select * from userinformationtb where user_id='$nm' and password='$pas'");
$data=mysql_fetch_array($q);
$_SESSION["seid"]=$data["user_id"];

// session_id();
if($nm==$_SESSION["seid"])
{


header("location:php/home.php");
//echo "valid";
}
else
{
echo "invalid";
}

}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="../css/style.css" rel="stylesheet" type="text/css" />
type="text/javascript" src="js/script.js">
type="text/javascript" src="js/cufon-yui.js">
type="text/javascript" src="js/arial.js">
type="text/javascript" src="js/cuf_run.js">
<link rel="stylesheet" href="css/validationEngine.jquery.css" type="text/css"/>

src="js/jquery-1.8.2.min.js" type="text/javascript">

src="js/jquery.validationEngine-en.js" type="text/javascript" charset="utf-8">

src="js/jquery.validationEngine.js" type="text/javascript" charset="utf-8">

>
jQuery(document).ready(function(){
// binds form submission and fields to the validation engine
jQuery("#frmLogin").validationEngine();
});

</head>

<body>

<form id="frmLogin" name="frmLogin" method="post" action="">

<table width="548" border="0" id="txtbrder">

<tr>
<td width="90" height="">Enter User Id </td>
<td width="152"><label>
<input name="txtUid" type="text" id="txtUid" class="tnm validate[required,custom[email]] text-input" />
</label></td>
<td width="56"><div align="left">Password</div></td>
<td width="154"><label>
<input name="txtPass" type="password" id="txtPass" class=" tnm validate[required] text-input validate[required,minSize[6]] text-input" />
</label></td>
<td width="74"><label>
<input name="btnLogin" type="submit" id="btnLogin" value="LogIn" style="background:#0000FF;color:#fff;"/>

</label></td>
</tr>
</table>
<a href="php/userinfo.php">Create New Account</a> &nbsp;&nbsp;&nbsp;&nbsp;
<a href="php/forgotpassword.php"> Forgot Password ?</a>
</form>
</div>
</body>
</html>

Oct 31, 2013 | Computers & Internet

2 Answers

C++ poker program


Hi.

I suggest creating an Array of Cards (cardOne,cardTwo,etc. to five)

If you can enter them in one at a time, after declaring the array, assign the values to the array.

cin < cardOne; (Psuedo code by the way, hope you don't mind)

Afterwards, you'll have an array with 5 cards.

Declare what full houses, flushes, etc would require.
Use an if statement (If you don't mind lots of code) to compare the entered Array against possible hands.

I didn't necessarily give you any specific C++ code. However, if you Google C++ user input, you should find plenty of commands that may help you.

Good Luck

(And not sure about Linear search to be honest, you can use a Linear search, but if you did it the way I explained, you just have to compare hand to a series of conditionals.)


Sep 23, 2009 | Computers & Internet

1 Answer

Vb projects


One of the assignments given for a masters
was to provide an input box for english postcodes (zip fer other places) that would filter out ANY invalid input in as few lines as possible.

With entirely numeric that is simple as it is just a string length
but some countries use alpha numeric and the letters have to be in the correct places eg. wf15 9lf or WF15 9LF or W15 would all be valid but W15 9LF would not..

Again minimal code would show an attention to detail because anyone can write a 100 lines of code to do that try get it in 15 or much less and it becomes more impressive


Specific alpha numeric data input and format sorting always seems to go down well with professors.

I havent given you everything to write the abstract bu the bare bones are there and it gives you an idea of the types of thing looked for.

After all if I gave you the whole thing it would not have been your work.

Aug 25, 2009 | Microsoft Computers & Internet

1 Answer

Text box restriction


I hope this helps and thanks for rating my effort...any other questions...shoot em to me....The Fang.

Restricting character input You can use the SetInputTextType command to restrict the characters that the user can enter in the text input dialog box. For example, suppose an application contains an input text field for users to provide a numeric value, such as their age, and that the input text field has the variable name ageVar. To ensure that the user enters only numeric values in the text input dialog box, you could add the following code to your application:
fscommand2("SetInputTextType", "ageVar", "Numeric");
When users open the input text dialog box, they can enter only numeric values in the text fields.
For more information, see SetInputTextType in the fscommand2 function entry in the Flash Lite 2.x ActionScript Language Reference.

May 28, 2009 | Adobe Flash® CS3 Professional Full Version...

1 Answer

I am having a problem with javascript:swap7


Hi, i'm having problems understanding the code for selection sort.

From what i understood the 2 nested for loops keep taking an entry in the array at position i and another entry in the array in position i+1 and comparing them until the the index reaches the end of the array.

i don't understand how do i end up with a sorted list this way.

for instance if i have

5 3 4 1
so after comparing the first two it'll be:
3 5 4 1
then the next two
3 4 5 1
and the last two
3 4 1 5

and then exiting?!

what am i missing ?!

May 06, 2009 | Dell E153FP 15" LCD Monitor

1 Answer

Sorting string and numeric


One simple way to achieve this is using radio button function. Give the user flexibility to change sorting via String or Numeric. As the user clicks on String the result bottom of this option will change the sorting method using String. Otherwise, Numeric.

By the way, please be specific in posting your question. Include the development tools that you use. For example, MS Access 2003.

Regards,
Maha

Feb 04, 2009 | Intelligent Computer Computers & Internet

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

Related Topics:

67 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Doctor PC
Doctor PC

Level 3 Expert

7733 Answers

kakima

Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

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

Answer questions

Manuals & User Guides

Loading...