Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Martin is a commander in the army. An undercover agent shares some secret information with him. The secret information: consists of a text and the name of a terrorist With the given information Martin needs to find the number of terrorists who are going to attack the army base. The agent gave Martin a hint that the number of terrorists is the number of times the terrorists name occurs in the text.





Write an algorithm to help Maan find the number of terrorists who are going to attack the army base.

Write a C++ program that takes up to 10-digit integer input from user (can be 1 digit, 2 digit, and so on..); passes this to a function which reverses the digits. Finally, the reversed number should be displayed in the main function. For example: when user enters 10-digit like 1234567890 your function will reverse it to 987654321. Do not use strings. Be careful for big integer values. [use functions, decision control]


A number is called a happy number, if you start with the given number

and arrive at 1 by repeating the following process (as illustrated in the below example):

(a) compute the sum of the squares of given number digits

(b) if the resultant value is 1, then the number is happy number, else execute point (a) for

the newly produced number.

Note that if a number is not a happy number, there will be an endless loop to this execution.

Goal: In this question, you are required to write a recursive function that checks whether

the number entered by the user is a happy number or not for 10 cycles/iterations only. The

output shown in blue colour should be shown by the function and text in yellow colour

should be displayed by the main function.


a. Write a function convert() that converts a decimal number to a binary, octal, and

hexadecimal equivalents. The function will take two arguments: first argument will be

the number to be converted and second argument will be the base in which this number

is to be converted. Function should return the converted value. You may use strings to

represent converted numbers like “0x3A”, “00101100”, “72” etc. Lower limit must be smaller than upper limit.

b. Call convert() function in the main program to produce the following output.

Example output:

Enter upper limit = 20

Enter lower limit = 10

Decimal Binary Octal Hexadecimal

10 00001010 12 0xA

11 00001011 13 0xB

12 00001100 14 oxC

13 00001101 15 0xD

14 00001110 16 0xE

15 00001111 17 0xF

16 00010000 20 0x10

17 00010001 21 0x11

18 00010010 22 0x12

19 00010011 23 0x13

20 00010100 24 0x14


Using visual studio , use C# format form.cs

this link shows the gui. Copy exactly like this. : https://imgur.com/a/uwCEbTv

also the link will show the project requirements. please do them all

This application consists of 1 form with 30 controls:

           6 Textboxes

           3 Lines (use labels)

         12 Buttons

           7 Labels

           1 List box

           2 Group boxes or panels

and 1additional class that contains the methods

Code must be written to respond to the user clicking on the buttons


  1. Use the following command to install packages required for DNS:
  2. yum -y install bind-chroot bind-utils
  3. There are some sample files on cntserv in /home/exercises/named-config.tgz.  You can scp them from there to your server and extract them.  HINT: If you are running scp on your system to copy the files down you cannot use the cntserv name unless you made the host file entry in module 6.  If not, you need to use cntserv’s private IP: 192.168.240.103
  4. Extract the sample files from named-config.tgz.
  5. Copy the sample named.conf into /etc.  You will overwrite the existing file.  Modify it for your domain and IP.  Your domain should be abc1234.lab where you use your cntserv username for abc1234.
  6. Copy the sample zone file into /var/named/data.  Modify it for your domain and IP.  Your domain should be abc1234.lab where you use your cntserv username for abc1234.
  7. Start the named service.
  8. Modify the firewall to let the DNS traffic in from any source.

Given a linked list containing n nodes. The problem is to insert a new node



with data x at the middle of the list. If n is even, then insert the new node



after the (n/2)th node, else insert the new node after the (n+1)/2th node.

Write a program to take input for n number of employee records and write records of all employees in a file named: “record1”. Also write records of all those employees in another file named: “record2” who are taking salary more than 50,000. After writing records in both files, merge their contents in another file: “finalrecord” and read all records of “finalrecord” file and display on screen. [Attributes of employee: emp_id, emp_name, emp_experience, emp_salary]


Write a program that reads a list of integers, and outputs whether the list contains all multiples of 10, no multiples of 10, or mixed values. Define a function named IsVectorMult10 that takes a vector as a parameter, representing the list, and returns a boolean that represents whether the list contains all multiples of ten. Define a function named IsVectorNoMult10 that takes a vector as a parameter, representing the list, and returns a boolean that represents whether the list contains no multiples of ten.

Then, write a main program that takes an integer, representing the size of the list, followed by the list values. The first integer is not in the list. 

The program must define and call the following two functions. IsVectorMult10 returns true if all integers in the vector are multiples of 10 and false otherwise. IsVectorNoMult10 returns true if no integers in the vector are multiples of 10 and false otherwise.

bool IsVectorMult10(vector<int> myVec)

bool IsVectorNoMult10(vector<int> myVec)



3. Here We Go Again

by CodeChum Admin

This one’s probably one of the most popular recursion problems in programming. Your task is to create a recursive function that prints out the the first up to the nth number in the Fibonacci sequence by going through the numbers using recursion.


In case you forgot, here is the definition of a Fibonacci sequence:

  • fib(n) = 1 if n = 1 or n = 2
  • fib(n) = fib(n-1) + fib(n-2) when n > 2

Instructions:

  1. In the code editor, you are provided with an initial code with a main() that asks the user for an integer n, which represents the number of elements in the Fibonacci sequence to be printed out.
  2. In addition, you are also provided with an initial displayFibonacci() function which contains the code to supposedly display the first n elements in the Fibonacci sequence. However, it is not working as expected.
  3. Your task is to find where the error is and fix the displayFibonacci() function.
LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS