C++ Answers

Questions answered by Experts: 9 913

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

You are requested by a SuperStore (Spar) in Soshanguve to calculate it’s earning for the week (the store opens the entire week) and determine the day with the highest and lowest earnings. The Store comprises of two sections namely the Food section and the Liquor store. Your C++ program should prompt the total sales for each section for each day and store the total sales for the day into an array. At the end of the week It should display a report for Management for the total sales for that week, the day the lowest sales and the day with the highest sales were recorded.



Consider an array of student marks for subject Data structure of 50 students in a class. Faculty had wrongly entered marks for a student (Roll no 36). So write a module in C language to delete the student mark and update the list. Also enter a mark at last of the array.
Writes a class Triangle with the data member base , height , area and color . The base , height and area are double type and color is type c - string ( a c - string is defined as an array of type char ) . The member functions of the class is inputData for taking base , height and color values from the user and findArea member function to calculate the area of the rectangular using formula area = 1 / 2 * base * height . Create another class name Match Triangle that overloads operator for comparing class objects . Define appropriate constructors of the classes . Create two objects of in main ( ) , inputs the values and compare the objects . If the area and color of both objects are same then display a message in main Matching Triangle " otherwise display a message Non - Matching Triangle "
write a program to initialize the value as 5.800000 & display the value on the monitor as 5.80000
write a program to initialize the value as 5.800000 & display the value on the monitor as 5.8000?

What is the output of the following C++ code?

x = 5; y = 30;

while (x <= y)

x = x * 2;

cout << x << " " << y << endl;


#include <iostream.h>

using namespace std;

 

int main( void )

 {

int y;

int x = 3;

 

int total = 0;

 

while ( x <= 10 ) {

 y = x * x * x;

 cout<<y<<endl;

 total += y;

 ++x;

 } // end while

 

 Cout<< "The total is: "<< total <<end;

 

 } // end main


Accept one number and find out if its positive or negative number using class


Accept one character and print its next character using class


Task D: Insertion, Deletion, and Frameshift

The worst type of mutation is the frameshift mutation, as it causes the DNA sequence to be parsed incorrectly. This is often created by a deletion or insertion that causes the sequence to be read in a different multiple of three. This abnormal reading often results in an earlier or later “Stop” codon, which causes the protein to be abnormally short or long, thus rendering it not functional.So far, the codons in DNA sequences have been multiples of 3. The file <code class="language-plaintext highlighter-rouge" style="font-family: monospace, monospace; font-size: 1em; padding-left: 0.5em; padding-right: 0.5em; border-style: solid; border-width: 1px; border-radius: 0.5em; border-color: rgb(248, 248, 248); background: rgb(248, 248, 248);">frameshift_mutations.txt</code> contains the same DNA sequences of Task B on the even lines, with frameshift mutations on the odd lines (0-indexed).


LATEST TUTORIALS
APPROVED BY CLIENTS