Questions: 9 913

Answers by our 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 & Filtering

Create a program that uses a do-while loop to count the number of characters (not including whitespace) entered by the user. The count should end when it first encounters a # character in the input. 


Create a program that loops 30 times, but only outputs numbers that are not divisible by 3 or 5. Decide on the most appropriate form of a loop, and use an if statement inside it


Write a program that iterates through the odd numbers less than 30, and outputs the square of each number


Calories = ( (Age x 0.2757) + (Weight x 0.03295) + (Heart Rate x 1.0781) — 75.4991 ) x Time / 8.368

Write a program using inputs age (years), weight (pounds), heart rate (beats per minute), and time (minutes), respectively. Output the average calories burned for a person.

Output each floating-point value with two digits after the decimal point, which can be achieved by executing

cout << fixed << setprecision(2); once before all other cout statements.


Array size is 100

- gets the best score out of all the inputted grades and assigned grades based on the following scheme:

Grade is A if score is > = best - 10;

Grade is B if score is > = best - 20;

Grade is C if score is > = best - 30;

Grade is D if score is > = best - 40;

Grade is F otherwise.

Sample:

Enter the number of students: 4

Enter 4 scores: 40 55 70 58

Student 0 score is 40 and grade is C

Student 1 score is 55 and grade is B

Student 2 score is 70 and grade is A

Student 3 score is 58 and grade is B


specify a class item having data members item number and item cost also specify two member function getdata() and putdata() create object of item class and called the function


Spspecify a class item having data members item number and item cost also specify two member function getdata() and putdata() create object of item class and called the function


INTELLIGENCENODE CONSULTING PRIVATE LIMITED

Write a C++ Program in which Create a class called 'Matrix' containing constructor that initializes the number of rows and the number of columns of a new Matrix object. The Matrix class has the following information: 1 - number of rows of matrix 2 - number of columns of matrix 3 - elements of matrix (You can use 2D vector) The Matrix class has functions for each of the following: 1 - get the number of rows 2 - get the number of columns 3 - set the elements of the matrix at a given position (i,j) 4 - adding two matrices. 5 - multiplying the two matrices You can assume that the dimensions are correct for the multiplication and addition

  1. How many “bugs” do you see in this C++ code? Give an enumerated list of the errors that you spot in the program, including why you think there is something wrong with it, and how you would fix it.


#include <iostream>

using namespace std

int main(); 

int test1;

int test2;

int test3;

float av;

test1=1;

test2=2;

ave=(test+test2+test3)/2;

cout<<”The average is <<ave; 

return 0;




LATEST TUTORIALS
APPROVED BY CLIENTS