63 743
Assignments Done
Successfully Done
In July 2018

Questions: 3 172

Free Answers by our Experts: 2 594

Many students face the C++ problems and have no idea how to cope with them. They start worrying about their results and feel miserable because of that. We don’t want you to be sad because of your C++ problems and want provide you with the C++ answers you are looking for. We know how many C++ questions are there in your head and we also know how important it is for you to get good marks. Let our service to look for the C++ answers for all your questions and make you sure that home assignment may be not that bad as you may think!

Ask Your question

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

I am trying to figure out how to write these functions:

Create another function to write the first 10 lines in the container to a file called topTen.txt.
Create another function that will accept an integer line number in the parameter list and string return value. When the function is called in main, a line number must be passed to the function. The function should then return the line from the container that corresponds to that line number. You must pull the line from the container, not from the file. Because you are required to pull the line from the container, you must include the container in the parameter list of this function and pass the container to this function when it is called by main. The main function should then display the string that is returned by the function.
Write a program that takes a number n and finds and adds separately the sum of all the even numbers
and odd numbers in two different variables upto that number and at the end prints the product of those
two number
Input: 10.
=> even(2,4,6,8,10) sum of even is = 30.
=>odd(1,3,5,7,9) sum of odd is = 25
Output: 750.
Write a C++ code which writes the resultant words to the output file, "second file.txt".
Example: Content of first_file-"I am going to buy an umbrella"
Output in second_file.txt- I am an umbrella
To make telephone numbers easier to remember, some companies use letters to show their telephone number. For example, using letters, the telephone number 438-5626 can be shown as GET LOAN. In some cases, to make a telephone number meaningful, companies must use more than seven letters. For example, 225-5466 can be displayed as CALL HOME, which uses eight letters.

Write a program that prompts the user to enter a telephone number expressed in letters and outputs the corresponding telephone number in digits. If the user enters more than seven letters, then process only the first seven letters. Also output the – (hyphen) after the third digit. Allow the user to use both uppercase and lowercase letters as well as spaces between words.
Write a program that accepts a string from the keyboard and tests whether it contains a valid date. Display the date and a message that indicates whether it is valid. If it is not valid, also display a message explaining why it is not valid.

The input date will have the format mm/dd/yyyy. A valid month value mm must be from 1 to 12 (January is 1). The day value dd must be from 1 to a value that is appropriate for the given month. February has 28 days except for leap years when it has 29. A leap year is any year that is divisible by 4 but not divisible by 100 unless it is also divisible by 400.
Write a program to accept a list of nonnegative integers from user and to display the largest integer, the smallest integer and the average of all the integers. The user indicates the end of the input by entering a negative sentinel value that is not used in finding the largest, smallest and average values. The average should be a value of type double so that it is computed with a fractional part.
Define a class book with the following details (use data file):-
Book_no, Book_title, Book_price, Author, Publishing_date, Bill_amt as attributes.
(i) Create a function Total_cost() to calculate cost of ‘n’ coppices
(ii) Create a Function Input() to enter Book_no, Book_title, Book_price, Author,
Publishing_date and no of books(n).
(iii) A Display() function that displays all the attributes with appropriate prompts
(iv) A function to delete a particular book
(v) A function to update book details

1. Write a function called isOddthat accepts one(1) positive integer as its argument. It returns a boolean that indicates whether the argument is an odd integer or not. For example,
write a program in c++that defines inheritance use atleast 5 classes to show inheritance
1Write a program to find prime numbers using class and objects.

2 Write a program to find factorial of a number using class and object in C++.

3 Create a C++ program to check a number is palindrome or not using class and object.
Hint: It can be read the same backwards as forwards, e.g. madam

4 Write a program which can if number is even or odd using class and object in C++.

5 Write a program to find an Armstrong number. You can do it in simple way without using
Hint: it is an integer such that the sum of the cubes of its digits is equal to
the number itself. For example, 371 is an Armstrong number since 3**3 + 7**3 + 1**3 = 371.

6 Write a program to find largest number using OOP concepts.

7 write a program to find C++ program to check whether a character is vowel or consonant
whether using classes and objects or not.
Privacy policy Terms and Conditions