How would you go about combining Insertion sort and Selection sort thou, using the same method?

whats so nice bout them?

Hey guys does anyone knows how to generate a 4-1 dual multiplexer truth table i know how a single 4-1 looks but can't seem to get the dual one asked my lecturer and its wrong .

I attached the diagram i derived

well not on a plate was hoping for some direction to some information or something usable

I got this assignment today and need as much help as possible please it is attached in the provided pdf document

Does anyone know how to convert a jk flip flop to a d flipflop in computer architecture or circuits?

thanks much.

[QUOTE=BestJewSinceJC;1147770]Do you think you might be able to use De Morgan's laws? [url]http://en.wikipedia.org/wiki/De_Morgan%27s_laws[/url][/QUOTE]

oh kool thanks. how do you go about applying it though?

Hey does any one knows how to solve an expression as follows:

(a+b)' (a+b')

I am suppose to draw a circuit diagram for the original expression
Simplify the expression with Boolean algebra to a minimum number of gates
Draw a circuit diagram for the simplified expression.

Thsnks in advance.

hey thanks yall for your help i got it to work nowthe colans weren't the problem either thank anyways

Hello there am having a little problem i am trying to add some validations to this from i made the form using tables however its not being color coded and when submitted its not checking the appropriate validations? any body can spear to look at it please.

[code=Javascript]

<html>
<head>
<title>Book Information</title>
<script language="javascript">
function check_bcode()
{
var bcode
bcode=document.frbookinfo.txtbcode.value
if(bcode=="")
{
alert("This field is compulsory")
document.frabookinfo.txtbcode.focus()
}

// need more code for ICT starting with

}
function check_name()
{
var name,namlength
name=document.frbookinfo.txtbname.value
namlength=name.length
if (namlength >=20)
{
alert("This field should be less than 20 characters")
document.frbookinfo.txtbname.value=""
document.frbookinfo.txtbname.focus()
}

}
function check_conditions()
{
var versions,cat,month,date,isbn,t_price,gvt,n_price

    versions=document.frbookinfo.version.focus
    if(versions="") 
    {
        alert("Please select a version")
        return false
    }
    var result,count
    result=true

    for(count=0;count<2;count++)
    {
        if(document.frbookinfo.categ.value[count].checked==true )
        {
            result=true 
            return false
        }
        if(result==false) 
        {
            alert("Please select a category")   
            return false
        }
        if(document.frbookinfo.months.value=="")
        {
            alert("Please select a month")
            return false
        }

            var yr,yrlength
            year=document.frbookinfo.txtyear.value
            yrlength=year.length
            if(yrlength>4)
            {
                alert("Please enter a year less than four characters")
                document.frbookinfo.txtyear.value==""
                document.frbookinfo.txtyear.focus
                return false
            }
    ////place is number here

        if(document.frbookinfo.txttotal<500)
        {
            alert("Please ensure that the total price is greater than 500")
            document.frbookinfo.txttotal.value==""
            document.frbookinfo.txttotal.focus

        }

    }

}
</script>
</head>
<body>
<table width="70" border="1" align="center">
<form name="frbookinfo" method="post" action="addbook.html" onSubmit="return check_conditions()">

<tr>
<td>BookCode</td>
<td ><input name="txtbcode" type="text" maxlength="20" onBlur="check_bcode()"></td>
</tr>
<tr>
<td>BookName </td>
<td colspan="4"><input name="txtbname" type="text" maxlength=""></td>
</tr>
<tr>
<td>Description</td>
<td colspan="4"><textarea name="txtdescription" cols="30" rows="4" onFocus="check_name()"></textarea></td>
</tr>
<tr>
<td>Version</td>
<td colspan="4"><selectname="version">
<option value= "V.1"> V.1 </option>
<option value= "V.2"> V.2 </option>
<option value= "V.3"> V.3 </option>
<option value= "V.4"> V.4 </option>
</select></td> ...

yes i've hear of it but i don't know how to do it in vb

[code language=vb]

Private Sub cmdadd_Click()
optftime.Value = False
optptime.Value = False
optict.Value = False
optassessmentprogramme.Value = False
optdbt.Value = False
opttvet.Value = False
optcarrerdev.Value = False
optictinstruc.Value = False
opteventsmanagement.Value = False
opteduandtranng.Value = False
optcnstrudsitemanagement.Value = False
cboparish.Text = "Select Parish"

Adoaddlec.Recordset.AddNew
txtlname.SetFocus

End Sub

Private Sub cmdexit_Click()
Unload Me
End Sub

Private Sub cmdnext_Click()
Adoaddlec.Recordset.MoveNext
If (Adoaddlec.Recordset.EOF = True) Then
Adoaddlec.Recordset.MoveLast
MsgBox "You are at the last record in the database", vbInformation + vbOKOnly, "Atmoic Inc"
End If
Call status
Call department
Call parish
End Sub

Private Sub cmdprevious_Click()
Adoaddlec.Recordset.MovePrevious
If (Adoaddlec.Recordset.BOF = True) Then
Adoaddlec.Recordset.MoveFirst
MsgBox " You are at the first record in the database", vbInformation + vbOKOnly, "Atmoic Inc"
End If
Call status
Call department
Call parish
End Sub

Private Sub cmdsave_Click()
Dim street As String

If (txtlname.Text = "") Then
MsgBox "Last Name is compulsory", vbExclamation + vbOKOnly, "Atmoic Inc"
txtlname.SetFocus

ElseIf (txtfname.Text = "") Then
    MsgBox "First Name is compulsory", vbExclamation + vbOKOnly, "Atmoic Inc"
    txtfname.SetFocus

ElseIf (optftime.Value = False) And (optptime.Value = False) Then
    MsgBox "Please select your status", vbExclamation + vbOKOnly, "Atmoic Inc"

ElseIf (cboparish.Text = "Select Parish") Then
    MsgBox "Please select a parish", vbExclamation + vbOKOnly, "Error"
ElseIf (txtstreet = "") Then

    MsgBox "Street should contain a street address", vbExclamation + vbOKOnly, "Atmoic Inc"
ElseIf (txtphoneno.Text = "") And (txtcellno.Text = "") Then
    MsgBox "Work and Cell number is compulsory", vbInformation + vbOKOnly, "Atomic Inc"

ElseIf (optict.Value = False) And (optassessmentprogramme.Value = False) And (optdbt.Value = False) And (opttvet.Value = ...

i am planning on doing the edit on another form . and i placed the exit sub but after that my save button won't work it checked everything the way i had it before just not after i placed the exit sub is there a way i could mail you the forms and database etc?

i am using if clauses to check those? wouldn't those be sufficient?

irght it works meaning it runs without giving errors and all but in terms a saving those specified fields in the database no it doesnt and thats the aim a the poject really. ahhh idk i sat up all night re code it and stilll the same issue a thinking its just a small problem too just can't see it

ok nother thing i had to change the data type a dip to variant and parish to so too or i was getting an error when i clicked my save button on the form, i assumed its because the fields are empty... the same code i have for dep is the same for status, and it works u know so idk

when i press f1 it says msdn missing i need to reinstall i installed msdn though, and i did a form just the said way using the same conventions and it worked i don't know... the ado controller is correctly connected the connectionstring is set, the recordsource is set and table selected. and everything else except the parish and deparment sends to the database so what else could be the problem.

Thanksfor your help so vb5prgrmr

this dont work as am using a different command button to save and another to add(preparing for save basically)

well i have been trying to get this thing to store in a database i created in mircosoft db any help would be appreciated. Thank you in advance

Private Sub cmdadd_Click()
    optftime.Value = False
    optptime.Value = False
    optict.Value = False
    optassessmentprogramme.Value = False
    optdbt.Value = False
    opttvet.Value = False
    optcarrerdev.Value = False
    optictinstruc.Value = False
    opteventsmanagement.Value = False
    opteduandtranng.Value = False
    optcnstrudsitemanagement.Value = False
    cboparish.Text = "Select Parish"

    Adoaddlec.Recordset.AddNew
End Sub

Private Sub cmdexit_Click()
Unload Me
End Sub

Private Sub cmdnext_Click()
Adoaddlec.Recordset.MoveNext
    If (Adoaddlec.Recordset.EOF = True) Then
        Adoaddlec.Recordset.MoveLast
        MsgBox "You are at the last record in the database", vbInformation + vbOKOnly, "Atmoic Inc"
    End If
    Call status
    Call department
    Call parish
End Sub

Private Sub cmdprevious_Click()
Adoaddlec.Recordset.MovePrevious
    If (Adoaddlec.Recordset.BOF = True) Then
        Adoaddlec.Recordset.MoveFirst
        MsgBox " You are at the first record in the database", vbInformation + vbOKOnly, "Atmoic Inc"
    End If
    Call status
    Call department
    Call parish
End Sub

Private Sub cmdsave_Click()
Dim street As String
street = txtstreet.Text

If (txtlname.Text = "") Then
        MsgBox "Last Name is compulsory", vbExclamation + vbOKOnly, "Atmoic Inc"
        txtlname.SetFocus

    ElseIf (txtfname.Text = "") Then
        MsgBox "First Name is compulsory", vbExclamation + vbOKOnly, "Atmoic Inc"
        txtfname.SetFocus
    ElseIf (optftime.Value = False) And (optptime.Value = False) Then
        MsgBox "Please select your status", vbExclamation + vbOKOnly, "Atmoic Inc"
    ElseIf (cboparish.Text = "Select Parish") Then
        MsgBox "Please select a parish", vbExclamation + vbOKOnly, "Error"
    ElseIf (street = "") Then
        MsgBox "Street should contain a street address", vbExclamation + vbOKOnly, "Atmoic Inc"
    ElseIf (txtphoneno.Text = "") And (txtcellno.Text = "") ...

[QUOTE=vb5prgrmr;825198][code]
If optict.Value = True Then
Adoaddlec.Recordset.Fields("department") = "1"
...
[/code][/QUOTE]
that didn't seem to be the problem here the entire code i types

Private Sub cmdsave_Click()
Dim street As String
street = txtstreet.Text

If (txtlname.Text = "") Then
MsgBox "Last Name is compulsory", vbExclamation + vbOKOnly, "Atmoic Inc"
txtlname.SetFocus

ElseIf (txtfname.Text = "") Then
    MsgBox "First Name is compulsory", vbExclamation + vbOKOnly, "Atmoic Inc"
    txtfname.SetFocus
ElseIf (optftime.Value = False) And (optptime.Value = False) Then
    MsgBox "Please select your status", vbExclamation + vbOKOnly, "Atmoic Inc"
ElseIf (cboparish.Text = "Select Parish") Then
    MsgBox "Please select a parish", vbExclamation + vbOKOnly, "Error"
ElseIf (street = "") Then
    MsgBox "Street should contain a street address", vbExclamation + vbOKOnly, "Atmoic Inc"
ElseIf (txtphoneno.Text = "") And (txtcellno.Text = "") Then
    MsgBox "Work and Cell number is compulsory", vbInformation + vbOKOnly, "Atomic Inc"
ElseIf (optict.Value = False) And (optassessmentprogramme.Value = False) And (optdbt.Value = False) And (opttvet.Value = False) And (optcarrerdev.Value = False) And (optictinstruc.Value = False) And (opteventsmanagement.Value = False) And (opteduandtranng.Value = False) And (optcnstrudsitemanagement.Value = False) Then
    MsgBox "Please select your respective department", vbQuestion + vbOKOnly, "Atomic Inc"

Else
If (optftime.Value = True) Then
Adoaddlec.Recordset.Fields("status") = "ft"
ElseIf (optptime.Value = True) Then
Adoaddlec.Recordset.Fields("status") = "pt"
ElseIf (cboparish.Text = "Clarendon") Then
Adoaddlec.Recordset.Fields("parish") = 1
ElseIf (cboparish.Text = "Hanover") Then
Adoaddlec.Recordset.Fields("parish") = 2
ElseIf (cboparish.Text = "Manchester") Then
Adoaddlec.Recordset.Fields("parish") = 3
ElseIf (cboparish.Text = "Portland") Then
Adoaddlec.Recordset.Fields("parish") = 4
ElseIf (cboparish.Text = "St.Andrew") Then
Adoaddlec.Recordset.Fields("parish") = 5
ElseIf (cboparish.Text = "St.Ann") Then
Adoaddlec.Recordset.Fields("parish") = ...

[QUOTE=vb5prgrmr;825162]Do the reverse of what you are doing...[/QUOTE]

do wat exactly?

[CODE=vb]'

Private Sub department()
Dim dep As String
dep = Trim(Adoaddlec.Recordset.Fields("department"))
If (dep = "1") Then
optict.Value = True
ElseIf (dep = "2") Then
optassessmentprogramme.Value = True
ElseIf (dep = "3") Then
optdbt.Value = True
ElseIf (dep = "4") Then
opttvet.Value = True
ElseIf (dep = "5") Then
optcarrerdev.Value = True
ElseIf (dep = "6") Then
optictinstruc.Value = True
ElseIf (dep = "7") Then
opteventsmanagement.Value = True
ElseIf (dep = "8") Then
opteduandtranng.Value = True
ElseIf (dep = "9") Then
optcnstrudsitemanagement.Value = True
End If
End Sub

[/CODE]

my problem is getting the values to store in the database please help

Hi there am trying to block a user at home from using the internet i am not acting as a server of any kind but the router/ cable box iis in my room along with a cnet ethernet switch 8 port to be exact, i would plug the person in port 3 normally i would like to stop internet access to that port at certain times using commands? i am not sure if it can be done thats why am seeking help so can it be done? and if so how? and is there anyway to actually do this remote? or from the internet away from home?

sorry don't know why that came those words are deca

thesewere some errors

i got theses
quwstion 1 assignment 2.cpp(11,5):Declaration syntax error
quwstion 1 assignment 2.cpp(73,2):unexpected}
quwstion 1 assignment 2.cpp(74,16):Declaration terminated incorrectly
quwstion 1 assignment 2.cpp(74,16):Declaration terminated incorrectly
quwstion 1 assignment 2.cpp(111,40):style of function definition is now obsolete

[QUOTE=Ancient Dragon;559494]post a few errors (and the line numbers they appear on)[/QUOTE]
seriously i don't understand what ur tryingt o say here

The question says Write a menu driven program that finds the minimum, maximum and sum of 3 numbers (integers). All the numbers entered should be unique. (i.e. no two numbers should be same .Check this condition)

Please adhere to the following guidelines.
a. Write a function that finds the smallest of the numbers.
b. Write a function that finds the largest of the numbers.
c. Write a function to display the following menu.
d. Write a function to display the following menu.

  • Please select one of the following :- *
  • *
    1. Sum of the numbers *
    1. Smallest of numbers *
    1. Largest of numbers *
    1. Exit *
  • Enter your choice (1-4) *

The program should use the function to display the above menu. Then, the function should execute based on the selection made by the user. After a function is executed, the menu should appear again (there by allowing the user to perform another action). The program only terminates if 4 is entered.

I did the following in Borland c++:

[code=c]

include <stdio.h>

include <stdlib.h>

include <string.h>

int calculate_sum(int,int,int);
int calculate_maximum(int,int,int);
int calculate_minimum(int,int,int);

void print_results(int,int,int)

void main()
{

char request[20];
char menu[9];
int num1,num2,num3,sum,min,max;
int choice;
do
{
printf("Please enter the word \"menu\" to see the desired request that can be made in this program\n");
scanf("%s",request);
strcpy(menu,request);
// prompting user to input the word menu so that they can see the menu in the calling function ...

what should i have if not so many parentheses i mean i was tryna creat a multiple if using or instead of && get it?, ahh but i fixed the problems u suggest other than the void main thing as i said that how i know to write it and thats it with that it doesn't run do u get it to run?

am using c language and not c++ plus thats how i was thought to write it with void main()
and the struct students student_records;
that just gave me more errors