Order the answer to:  May I ask a question? In case 3, I can search number in a node,but I don’t know how to obtain exactl

net programming

Order the answer to: May I ask a question? In case 3, I can search number in a node,but I don’t know how to obtain exactl

Posted By George smith

Question May I ask a question? In case 3, I can search number in a node,but I don’t know how to obtain exactly value in it.
For example, if I insert those number “1, 1, 2, 2, 2, 5, 6, 7,8, 9”, I want to search 1, then the value should return 2, if Iwant to search 2, then the value should return 3.
But how to write this kind of code??? I think it can be easy butjust don’t have any sense.
you.
Code Below:
#include #include #include #include
using namespace std;
struct Node { Node *previous; Node *next; int number; };
int main() { Node *First = NULL; Node *Last = NULL; Node *n; int opt, element = 0, temp, p;
char ans = ‘y’; while (ans == ‘y’) { system(“cls”); cout cin >> opt;
switch (opt) {
case 1:
system(“cls”); n = new Node;//command ‘new’ create element++; cout cin >> temp; n->previous = NULL; n->number = temp; n->next = First; First = n; if (element == 1) { Last = n; } if (element > 1) { n = n->next; n->previous = First; } break;
case 2:
system(“cls”); n = new Node;//comand ‘new’ create element++; if (element == 1) { First = NULL; } cout cin >> temp; n->previous = Last; n->number = temp; n->next = NULL; Last = n; if (First == NULL) { First = n; n->previous = NULL; } else { n = n->previous; n->next = Last; } break;
case 3:
system(“cls”); cout cin >> temp; n = First; while (temp != NULL) { if (n->number == temp) { cout << “nNumber ” << n->number getch(); break; } else { n = n->next; if ((n->next == NULL) && (n->number != temp)) { cout getch(); break; } } } break;
case 4:
if( element > 0 ) { cout n = First; for (int i = 1; i { cout number n = n->next; } cout } else cout getch(); break;
case 5:
if( element > 0 ) { cout n = Last; for (int i = 1; i { cout number n = n->previous; } cout } else cout getch(); break;
case 6:
cout cin >> temp; n = First;
while (temp != NULL) { if (n->number == temp) { cout cin >> n->number; break; } else { n = n->next; if ((n->next == NULL) && (n->number != temp)) { cout getch(); break; } } } break;
case 7:
system(“cls”); ans = false; break;
default:
system(“cls”); cout cout getch();
} } }

. . .

Subject net programming
Read More
Order the answer to:  it is matlab course, could you explain the coding and theconcepts of it
a. Writea function, called d

net programming

Order the answer to: it is matlab course, could you explain the coding and theconcepts of it a. Writea function, called d

Posted By George smith

Question it is matlab course, could you explain the coding and theconcepts of it
a.      Writea function, called digits_function that is able tocalculate the number of digits of an input and then adds all digitsto find their sum. The input of this function is Nand the outputs are number_digits andsum_digits. The input N should be requested in themain function and should be greater than 4 digits. Assume alldigits are over 0.

b.     Write afunction, called average_function that calculateand prints the average of four numbers. The inputs of this functionare a, b and c and d. If one of the numbers is 0or over 10, it should be excluded from the average calculation.

Example: if input b=12, the averageis and so on.
Note: This function does not have an output since itsprints the average inside the function!
c.      Writea function, called prime_function that receivesone input x, and checks whether the number is prime or not. Theinput of this function is x and the output isresult_prime. A string of ‘prime’ or ‘not prime’should be printed in the main function.

d.     Now afteryou created the three functions, you have to writeone main function that can call the abovefunctions according to the user’s choice. Write amenu that allows the user to select from the following options

1.     To use thedigits function you have to enter 1.
2.     To use theaverage function you have to enter 2.
3.     To use theprime function you have to enter 3.
4.     To Exit theprogram you have to enter 4.

Once the user select one of the above choices you have to readthe value entered by the user and then to call the respectivefunction. If the user entered a number that is not equal to 1 or 2or 3 or 4, the program should ask the user to re-enter again.
Then, you have to use “input” to enter the values of thevariables (inputs of the functions).
Note: The input should be in the mainfunction.
For the digits_function, you have to enter only positive numberand for the prime_function you have to entergreater than 1 values. Otherwise, and error message should appearalong with a request for a new input.
(User entered values are indicated in bold)
—————————————————————————-
———————————————————-
—————————————————–
————————————————–
————————————————————————–

. . .

Subject net programming
Read More
Order the answer to:  Match the different business requirements of an organisationwith the correct network design goal:
Qu

net programming

Order the answer to: Match the different business requirements of an organisationwith the correct network design goal: Qu

Posted By George smith

Question Match the different business requirements of an organisationwith the correct network design goal:
Question 4 options:

. . .

Subject net programming
Read More
Order the answer to:  You’ll create a security infrastructure design document for afictional organization. The security se

net programming

Order the answer to: You’ll create a security infrastructure design document for afictional organization. The security se

Posted By George smith

Question You’ll create a security infrastructure design document for afictional organization. The security services and tools youdescribe in the document must be able to meet the needs of theorganization.
You’ll create a security infrastructure design document for afictional organization. Your plan will be evaluated according tohow well you met the organization’s requirements.
The following elements should be incorporated into yourplan:
*Authentication system
*External website security
*Internal website security
*Remote access solution
*Firewall and basic rules recommendations
*Wireless security
*VLAN configuration recommendations
*Laptop security configuration
*Application policy recommendations
*Security and privacy policy recommendations
*Intrusion detection or prevention for systems containingcustomer data

. . .

Subject net programming
Read More
Order the answer to:  I am learning c++ can you  me ?
a) Create a void function inputArray()to request ten integ

net programming

Order the answer to: I am learning c++ can you me ? a) Create a void function inputArray()to request ten integ

Posted By George smith

Question I am learning c++ can you me ?
a) Create a void function inputArray()to request ten integersfrom the        console topopulate the array.
b) Create a void function outputArray() to outputs all arrayvalues.   
c) Create function maxMin()to diplay the minimum and maximumvalues of the       array.    
d) Test with different array values.
      Output Example     enter 10 integers below. Enter integer#1: 1 Enter integer#2: -2 Enter integer#3: 0 Enter integer#4: 44 Enter integer#5: 789 Enter integer#6: -123 Enter integer#7: 45 Enter integer#8: 96 Enter integer#9: -34 Enter integer#10: 10
Display all array elements ————————– 1 -2 0 44 789 -123 45 96 -34 10 Max: 789 Min: -123

. . .

Subject net programming
Read More
Order the answer to:  I know the answrs, but can you show the steps getting theanswers. i’m getting stuck on some of the t

net programming

Order the answer to: I know the answrs, but can you show the steps getting theanswers. i’m getting stuck on some of the t

Posted By George smith

Question I know the answrs, but can you show the steps getting theanswers. i’m getting stuck on some of the tracing
public class TwoA {
    public static void main(String[] args) {
        final int SIZE =5;
        int [] x = {19, 43,22, -1};
        for (int i=0;i . . .
Subject net programming
Read More
Order the answer to:  i know the answrs, but can you show the steps gettingthe answers. i’m getting stuck on some of the t

net programming

Order the answer to: i know the answrs, but can you show the steps gettingthe answers. i’m getting stuck on some of the t

Posted By George smith

Question i know the answrs, but can you show the steps gettingthe answers. i’m getting stuck on some of the tracing
public class TwoA {
    public static void main(String[] args) {
        final int SIZE =5;
        int [] x = {19, 43,22, -1};
        for (int i=0;i . . .
Subject net programming
Read More
Order the answer to:  Java
Write a program in Java using “Nested For Loop” to printfollowing pattern. . . .

net programming

Order the answer to: Java Write a program in Java using “Nested For Loop” to printfollowing pattern. . . .

Posted By George smith

Question Java
Write a program in Java using “Nested For Loop” to printfollowing pattern.

. . .

Subject net programming
Read More
Order the answer to:  In Java is there a way to improve upon this code using dynamicprogramming or even better memoization

net programming

Order the answer to: In Java is there a way to improve upon this code using dynamicprogramming or even better memoization

Posted By George smith

Question In Java is there a way to improve upon this code using dynamicprogramming or even better memoization to improve it’s runtime? Ithas issues when running a really large matrix.
Code:
import java.util.Arrays;?
Asked Apr. 15, 2018
. . .
Subject net programming
Read More
Order the answer to:  Java Quiz
Which of the following keywords are used to control access to aclass member? A. default B.

net programming

Order the answer to: Java Quiz Which of the following keywords are used to control access to aclass member? A. default B.

Posted By George smith

Question Java Quiz
Which of the following keywords are used to control access to aclass member? A. default B. protected C. interface D. None of the above

. . .

Subject net programming
Read More
Ready to try a high quality writing service? Get a discount here