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

Q1. Briefly Explain the following terms:
Classes and objects.
Constructor and its 3 types.
Static Data Members and Static Member Functions.

By using single layer perceptron algorithm classify the following patterns. Where X1 and X2

are inputs Y is the output. Learning rate is 0.5 , output is 1 if weighted sum >=0.5 otherwise

0 and weights w1 =0.2 and w2 = 0.3 [5]

X1 X2 Y

0 0 0

0 1 1

1 0 1

1 1 1


Study codes given below and add your own codes so that the program is able to:

- count and display the number of vowels exist in the array

- replace all those alphabets after ‘q’ with the symbol ‘*’ 

- display the latest contents of the array


#include<iostream>

using namespace std;


int main()

{

  char myArray[] = {'i', 'n', 't', 'e', 'r', 'n', 'a', 't', 'i','o', 'n', 'a', 'l'};


  //add your codes here

    

  cout<<endl;

  system("pause");

  return 0;

}



Rearrange Numbers in String


Given a string, write a program to re-arrange all the numbers appearing in the string in decreasing order. Note: There will not be any negative numbers or numbers with decimal part.


Input


The input will be a single line containing a string.


Output


The output should be a single line containing the modified string with all the numbers in string re-ordered in decreasing order.


Explanation


For example, if the given string is "I am 5 years and 11 months old", the numbers are 5, 11. Your code should print the sentence after re-ordering the numbers as "I am 11 years and 5 months old".


Sample Input

I am 5 years and 11 months old

Sample Output

I am 11 years and 5 months old

Sample Input 2:

I am 11 years 5 months, 26 weeks and 38 days old

Sample output:

I am 38 years 26 months, 11 weeks and 5 days old


  1. There are huge secondary or standard datasets published in the internet for such case studies:

·        Case 1: Texts categorization in any dominoes.

·        Case 2: Images (detection/or recognition) in any dominoes.

·        Case 3: Signals classification in any dominoes.

 

Find ONE (1) of the secondary datasets from the internet. Name the secondary dataset that you have found.




Simulate a two dimensional random walk and provide a picture of it


By using single layer perceptron algorithm classify the following patterns. Where X1 and X2  are inputs Y is the output. Learning rate is 0.5 , output is 1 if weighted sum >=0.5 otherwise 0 and weights w1 =0.2 and w2 = 0.3

1.Write a C++ program that accepts two 4X4 matrices, and calculates:

A.Sum of the matrices

B.Product of the matrices

      Define your functions to do the tasks. 



3.Write a C++ program that accepts sentence from the user, and counts total number of vowel or consonant, and displays the vowel and consonant sentence.

4.Write a C++ program that works exactly like strcat built-in function. It accepts two strings then it concatenates the second string to the first string. Define your function.

5.Write a C++ program that works exactly like strcnmp built-in function. It accepts two strings then it compares the two strings alphabetically considering number of characters to be compared, which is specified by the user. Define your function.


   Write a code to return the following structure from function:

Structure name is Patientand haveTHE following members.

                  Name, cnic, sugar_level.


LATEST TUTORIALS
APPROVED BY CLIENTS