<< Prev Showing: 206-210 of 348 Next >>
· 181-185 · 186-190 · 191-195 · 196-200 · 201-205 · 206-210 · 211-215 · 216-220 · 221-225 · 226-230 · 231-235 ·Can you find a bug in this program and then fix it so that it won't have an infinite loop?
#include
Subject:
Computer Science
Topic:
Software Tools and Systems Programming.
Posting ID:
121977
OTA ID:
105415
Friends and Overloading Operators C++
Complete and test this exercise. Implement the default constructor and the constructor with one int parameter. Overload the + and - operators to add and subtract percents. Also, overload the * operator to allow multiplication of a percent by an integer.
Write a program to test all the member functions and overloaded operators in your class definition.
#include
Subject:
Computer Science
Topic:
Software Tools and Systems Programming.
Posting ID:
122499
OTA ID:
102833
Write a program that reads a person's name in the following format: first name, then middle name or initial, and then last name. The program then outputs the name in the following format: Last_Name, First_Name Middle_Initial. For example, the input Mary Average User should produce the output: User, Mary A. The input Mary A. User should also produce the output: User, Mary A. Your program should work the same and place a period after the middle initial even if the input did not contain a period. Your program should allow for users who give no middle name or middle initial. In that case, the output, of course, contains no middle name or initial. For example, the input Ma... click for more
Subject:
Computer Science
Topic:
Software Tools and Systems Programming.
Posting ID:
122640
OTA ID:
105277
A class can contain variables (fields) and methods. We had an example of the class Car with int number_of_doors as variable. Can you give some examples of classes with variables and methods?
Subject:
Computer Science
Topic:
Software Tools and Systems Programming.
Posting ID:
122759
OTA ID:
103644
Please enhance this program so that it would output a list of all the letters that occur in the text together with the number of times each letter occurs, listed in descending order by frequency.
**************************************************************************
//
// CountLetters.cpp
//
// Program that reads a line of text from the keyboard, terminated with a period.
// Outputs a list of all the letters that occur in the text together with the
// number of times each letter occurs, listed in descending order by frequency.
//
// **************************************************************************
#include
Subject:
Computer Science
Topic:
Software Tools and Systems Programming.
Posting ID:
123156
OTA ID:
105277
<< Prev Showing: 206-210 of 348 Next >>
· 1-5 · 6-10 · 11-15 · 16-20 · 21-25 · 26-30 · 31-35 · 36-40 · 41-45 · 46-50 · 51-55 · 56-60 · 61-65 · 66-70 · 71-75 · 76-80 · 81-85 · 86-90 · 91-95 · 96-100 · 101-105 · 106-110 · 111-115 · 116-120 · 121-125 · 126-130 · 131-135 · 136-140 · 141-145 · 146-150 · 151-155 · 156-160 · 161-165 · 166-170 · 171-175 · 176-180 · 181-185 · 186-190 · 191-195 · 196-200 · 201-205 · 206-210 · 211-215 · 216-220 · 221-225 · 226-230 · 231-235 · 236-240 · 241-245 · 246-250 · 251-255 · 256-260 · 261-265 · 266-270 · 271-275 · 276-280 · 281-285 · 286-290 · 291-295 · 296-300 · 301-305 · 306-310 · 311-315 · 316-320 · 321-325 · 326-330 · 331-335 · 336-340 · 341-345 · 346-348 ·Page generated in 0.0962 seconds