Doubtly
@Doubtly · Joined Feb 2021
- Answers
- 3,792
- Questions
- 4,963
- Upvotes received
- 429
- A person is standing at a distance of 80 metres from a Church and looking at its top. Let AB represent the height of the church and point C represent the position of the person. BC = 80m Angle of elevation = ∠ACB = 45° In righ... 1
- Write a c++program to find area of circle? #include <iostream> int main() { float radius, area; std::cout << "Enter the radius of circle : "; std::cin >> radius; area = 3.14 * radius... 1
- Write a c++ program to accept 10 integers in an array and find its sum and average? #include<iostream.h> int main() { int arr[10]; int i,sum=0; float avg; cout<<"enter 10 number"; for(i=0;i<10;i++) { cin>>arr[i]; } for(i=0;i... 2
- Write a c++ function to find surface area of sphere? Surface area of a sphere = 4π r² ; write a C++ function that takes the radius and returns this value. #include <iostream> using namespace st... 1
- Write a C++ program to find sum of first 100 natural numbers? #include <iostream> using namespace std; int main() { int sum = 0; // loop through the first 100 natural numbers and add them to sum for (in... 1
- Write a program in C++ to read data variables day, month, and year of a class date by the member function and display #include <iostream> using namespace std; class Date { private: int day; int month; int year; public: // member function to read date variabl... 1
- Write a program in C++ to overload binary + operator for addition of complex numbers? #include <iostream> using namespace std; class Complex { private: double real; double imag; public: Complex() { real = 0; imag = 0; } Comple... 1
- Write a program in C++ which implements data conversion from one class to another.? #include <iostream> using namespace std; class Feet { private: int feet; public: Feet() { feet = 0; } Feet(int f) { feet = f; } // conversio... 1
- Write a class in c++ to demonstrates the example of Single inheritance? #include <iostream> using namespace std; // Base class class Shape { protected: int width; int height; public: void setWidth(int w) { width... 1
- Write a class in c++ to demonstrates the example of multilevel inheritance? #include <iostream> using namespace std; // Base class class Vehicle { public: Vehicle() { cout << "This is a vehicle." << endl; } }; // Der... 1
- Write a C++ program that will read a line of text and count the number of words in a text. Answer: read the whole line with getline, then count each place where a word starts (a non-space character after a space or at the beginning... 1
- Write a program in C++ that inputs and stores 10 numbers in an array and prints the sum and average of the array element #include <iostream> using namespace std; int main() { int numArray[10]; int sum = 0; double avg; // Input numbers into array for (int i = 0;... 1
- Write a program in c++ for addition of two matrices? #include <iostream> using namespace std; const int ROWS = 2; const int COLS = 3; void addMatrices(int m1[][COLS], int m2[][COLS], int result... 1
- Write a c++ program for overloading of unary + operator? #include <iostream> using namespace std; class Number { private: int num; public: Number() { num = 0; } Number(int n) { num = n; } // Overlo... 1
- Write a c++ program using constructor and destructor to find factorial of a given number? a c++ program using constructor and destructor to find factorial of a given number 2
- Simple Calculator Python Project for Class 11 cbse board ! Code for simple calculator in python , you can try below code by opening in new window if any doubt ask related question or comment feel fre... 2
- Name any four types of charts that can be created in libre office calc. Bar chart, Column Chart, Pie chart, Line chart, Area chart, Doughnut chart, etc. 1
- Which method will you use for the following information ? (1) Talukawise wheat production in the district . – Dot Method (2) Distribution of the altitude of the land in the district – Isopleth Metho... 1