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

We want to calculate the total marks of each student of a class in Physics,Chemistry and





Mathematics and the average marks of the class. The number of students in the class are entered





by the user. Create a class named Marks with data members for roll number, name and marks.





Create three other classes inheriting the Marks class, namely Physics, Chemistry and





Mathematics, which are used to define marks in individual subject of each student. Roll number





of each student will be generated automatically.






Make a Fraction class having member data as the fraction’s numerator and denominator where both are type int. Member functions should accept input from the user in the form 3/5, and output the fraction’s value in the same format. Another member function should add two fraction values. Write a main () function that allows the user to repeatedly input two fractions and then displays their sum. After each operation, ask whether the user wants to continue.


C++ program that prompts a user to specify a text through the keyboard repeatedly and only terminates when a user enters the text "goodbye" else the program should continue prompting a user to enter a text


Writing advanced (more complicated) user-defined functions for character string processing. a) Review the concept and make sure you have a good understanding of how the predefined functions: <span _istranslated="1" style="font-weight: bolder;">strcmp</span> and <span _istranslated="1" style="font-weight: bolder;">strncmp</span> work.




b) Implement the new function:


int strccmp(const char* text1,const char* text2,char delimiter )

which compares two input texts (text1 and text2) until null-termination '\0' or a specified "delimiter" character.



Example call: int result = strccmp( "Abc=def" , "Abc=123" , '=' );


should result/return a zero value (which means "zero/no difference")


Code analysis of the standard null-terminated text processing functions from <string.h> library.

  • Create and test your own implementations of standard <span _istranslated="1" style="font-weight: bolder;">strlen</span> and <span _istranslated="1" style="font-weight: bolder;">strchr</span> functions.
Write a program that calculates the sum of the squares of the sides of a triangle

Define two function in a class name matching. In the first function pass a single char array and match the repeated characters. The second function have two char array parameter and match that both are same strings or not.

Write a C++ program that asks the user to enter the number of miles driven and gallons used for each full tank. The program should calculate and display the miles per gallon obtained for each full tank.



Using the flow chart write and a program in C++ Language to compute gross and net pay. Use the following variables. StateTaxRate = 0.0825, countyTaxRate = 0.175

Create a programming in c++ to compute the final grades in your quiz, online laboratory, exam 1, exam 2, and exam 3 with your name, year and section

LATEST TUTORIALS
APPROVED BY CLIENTS