Questions: 11 448

Answers by our Experts: 10 707

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

Every DNA sequence consists of four nucleotides: Adenine, Thymine, Cytosine, and Guanine, 

referred to by the first letters of their chemical names (A, T, C, and G). Your goal is to provide a report of the number of each nucleotide within the sequence, and the percent each nucleotide makes up of the total. You should include your output file in the submission in addition to our usual submission format (console output + code).


Example Output: 

DNA sequence analysis: 

29782 nucleotides in the sequence 

Sequence breakdown: 

Adenine: 8892 29.86% 

Thymine: 9581 32.17% 

Cytosine: 5462 18.34% 

Guanine: 5847 19.63% 


Give a C++ program to demonstrate the working of friend function which measure distance in meters and return the same back.


Memory constrained embedded systems, IoT devices cannot have liberty to use lots of

memory. You are tasked to store the result of a NUCES-FAST student in one single variable. This can

be done using all bits of that variable in an efficient way. Write a program which prompts user to enter

the following student data and convert all this information to store in a single variable (see sample run).

Use bitwise AND, OR and SHIFT operators. Also use if-else where needed. (20 marks)

23-29 (7 bits) Calculus Marks 3-digit value 1010101 (85)

30-36 (7 bits) PF marks 3-digit value 1011100 (92)

37-43 (7 bits) English marks 3-digit value 1001110 (78)

44-50 (7 bits) Physics marks 3-digit value 1000101 (69)

51-52 (2 bits) CGPA – integer part 1-digit value 11 (3)

53-59 (7 bits) CGPA – fractional part 2-digit value 0010110 (22)

60-63 (4 bits) Not used (reserved) 0000

Binary number stored 0000001011011100010110011101011100101010100011010111100001010101

Decimal Equivalent 206138463618955349


Memory constrained embedded systems, IoT devices cannot have liberty to use lots of

memory. You are tasked to store the result of a NUCES-FAST student in one single variable. This can

be done using all bits of that variable in an efficient way. Write a program which prompts user to enter

the following student data and convert all this information to store in a single variable (see sample run).

Use bitwise AND, OR and SHIFT operators. Also use if-else where needed. (20 marks)

Data to Store


Binary number stored 0000001011011100010110011101011100101010100011010111100001010101

Decimal Equivalent 206138463618955349


Sample run of the program:

Enter Registration Year: 2021

Enter Campus: Islamabad

Enter Registration Number: 1724

Enter Calculus Marks = 85

Enter PF Marks = 92

Enter English Marks = 78

Enter Physics Marks = 69

Enter CGPA = 3.22

All data is stored in a record variable whose value is 206138463618955349


print "happy" if each of them takes the same number "not happy" otherwise


Write a C++ program to overload the + and – operators to find the sum and difference of two instances of Time class having members as hour, minute and second. (Use member function for one and friend function for other)


A program stores test scores in two int variables named myScore and expectedScore. Write the C++ code to compare the two scores and then display one of the following messages: “I met my expectations”, “I scored higher than expected”, or “I scored lower than expected”.


Make use of either a While Loop, For Loop or a Do While Loop to allow the program to repeat until a sentinel value or counter is used to break out of the loop


Write a program which takes a 9-digit number input from user, converts it into its reverse

and then display one of the following statements: (10 marks)

• Original number is x steps bigger (where x is the difference between the two)

• Reversed number is x steps bigger

• Both numbers are equal; hence it is a palindrome.


Develop a data dictionary and a flowchart, that will accept 10 students details such Student Name, ID No. and Marks of three subjects (All marks entered by the user must be within the range of 0 -100). Calculate the average marks for the student and the average marks will determine the final grade of the student. The assessment will be as follow:





70 –100 : A



60 –69 : B



50 –59 : C



40 – 49 : D



0 –39 : F

Write a program which takes a 9-digit number input from user, converts it into its reverse

and then display one of the following statements: (10 marks)

• Original number is x steps bigger (where x is the difference between the two)

• Reversed number is x steps bigger

• Both numbers are equal; hence it is a palindrome.

Enter a 9-digit number : 367548912

Reverse number: 219845763

Original number is 147,703,149 steps bigger

Enter a 9-digit number : 367548

It is not a 9-digit number. Please enter correct number.

Enter a 9-digit number : 259757952

Reverse number: 259757952

Both numbers are equal; hence it is a palindrome


LATEST TUTORIALS
APPROVED BY CLIENTS