Skip to main content

CS502 Assignment no 1 Spring 2021 solution file

                  

        CS502-Assignment no 1 Spring 2021 solution file

                            Download File

PURPOSE OF VUPORTAL865.COM

Virtual university is Providing quality of Education in Pakistan and Overseas too. Thousands of Students getting quality education. Virtual University of Pakistan is first university In Pakistan that providing online education to everyone in Pakistan. in this university online Education is easy and Affordable for everyone.

Most students find trouble scheduling time for their assignments since the research work is a time-consuming activity. Even so, others find trouble writing their assignment due to a lack of writing skills. Such students need to worry no more since there are several available online assignment help websites. As such, this article provides the top 10 most trusted online assignment help websites that ensure that students get the best out of their assignment help services.

We take your assignments with paramount importance as happy students are our primary goal. Our services are the most affordable, trustworthy and cover a lot of subjects.

Assignment Submission Instruction

Please read the following instructions carefully before submitting the assignment:
It should be clear that your assignment will not get 0 if:

Ø  The assignment is submitted after the due date.

Ø  The submitted assignment file is corrupt or does not open.

Ø  Assignment is copied from any where like any student or from internet.

How to Submitted Assignment:

Ø Download a question File of the Assignments on LMS.

Ø Solve a question and make a file own words.

Ø Save an Answer file in which extension who Instructor Told.

Ø Go to the LMS and Click the Books Code which you can make a solution file.

Ø Go to the Submitted Option and Click the Chose File Button.

Ø File chose where you can Save the File.

Ø After chose the File last step click the Submitted Option.

 

 

For Paid  Assignments Solution

Contact us on WhatsApp

MR Ammar(Developer)    +923235459470

MR Atif (Blogger)         +923086278790

MR Umar  (WordPress Expert)    +923053183537

Mam Farah(Assignment Expert)     +994409089591 

 

FOR ALL ASSIGNMENTS VISIT THE WEBSITE BELOW

CLICK HERE

 

 

 

 


 

 

Question                                                                                                                               (Marks:  10)

Suppose that one of the largest commercial bank branch in UAE has recently experienced a significant distress due to covid 19.  A huge No. of account holders withdraws the payment from the bank. Now manager want to check the total number of accounts those have less than 1000$. 

 

 

A)Write only Pseudocode to check the total number of accounts, who have less than 1000$ using array list.

 

SOLUTION

 

Pseudo Code

arraylist  ()

For I=1 to no of accounts

If amount <1000s

      arraylist  (account_no)

Return false

 

 

B)After writing Pseudocode calculate the worst-case time complexity T(n).

 

Solution part B

Time Complexity

C1

1

C2

N+1

C3

n

C4

N/2

C5

1

Grand total=c1+c2(n+1)+c3(n)+c4(n/2)+c5

  =n(c3+c3+c4(1/2))+c1+c2+c5

  =remove lowest order terns and constant

=O(n)

   Question No 2                                                                                                                            (Marks:  10)

A prime number is a number that can only be divided by itself and 1. Using the following code, we can check whether the number is prime or not. Your task is to find the time complexity of the following code with respect to worst case.

 

Int arr[5],j,x,y,z;

For (x=0;x<5;x++)

{

       Cout’’Enter the no”endl;

       Cin>>arr[x];

}

For (x=0;x<5;x++)

      {

             Y=0;

For(j=2;j<arr[x];j++)

{

Z=arr[x]%j;

If(z==0)

{

Y=1;

Break;

}

}

If(y==0)

Coutarr[x]endl;

}

}

 

 

Solution

 

C1

1

C2

N+1

C3

n

C4

n

C5

N+1

C6

n

C7

N(n+1)/2

C8

C9

C10

n

C11

n

C12

n

C3

N/2

 

Grand total=c1+c2n+c3n+c4n+c5n+c5+c6n+c7/2+c7n/2

+c8/2+c9/2+c10n+c11n+c11n+c12n+c13n/2

 

=O()

Comments

Popular posts from this blog

cs610

                                                                cs610

CS601 Assignment no 1

                 CS601   Assignment No 1                  Solution Spring 2021                 Last date 19 May , 2021 SOLUTION FILE Download File PURPOSE OF VUPORTAL865.COM Virtual university is Providing quality of Education in Pakistan and Overseas too. Thousands of Students getting quality education. Virtual University of Pakistan is first university In Pakistan that providing online education to everyone in Pakistan. in this university online Education is easy and Affordable for everyone. Most students find trouble scheduling time for their assignments since the research work is a time-consuming activity. Even so, others find trouble writing their assignment due to a lack of writing skills. Such students need to worry no more since there are several available online assignment help websites. As such, this article provides the top 10 most trusted online assignment help websites that ensure that students get the best out of their assignment help services. We take your assi

Cs506 Assignment 2 solution Spring 2021

  Contact us for paid Assignment  MR Ammar(Developer)    +923235459470 MR Atif (Blogger)         +923086278790 Mam Farah(Assignment Expert)     +994409089591  Download