1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Anna71 [15]
3 years ago
11

Write a program having a concrete subclass that inherits three abstract methods from a superclass. Provide the following three i

mplementations in the subclass corresponding to the abstract methods in the superclass:
1. Check for uppercase characters in a string, and return true or false' depending on if any are found.
2. Convert all of the lower case characters to uppercase in the input string, and return the result.
3. Convert the input string to integer and add 10, output the result to the console.
Create an appropriate class having a main method to test the above setup.
Computers and Technology
1 answer:
hammer [34]3 years ago
3 0

Answer:

C++

Explanation:

using namespace std;

class AbstractClass {

public:  

   virtual bool checkUpperCase(string inputString);

   virtual string lowerToUppercase(string inputString);

   virtual void stringToInt(string inputString);

};

class ConcreteClass: public AbstractClass {

public:

   bool checkUpperCase(string inputString) {

       bool isUpper = false;

       for (int i=0; i < strlen(inputString);  i++) {

           if (isupper(inputString[i])) {

               isUpper = true;

               break;

           }

       return isUpper;

      }

   string lowerToUppercase(string inputString) {

       for (int i=0; i < strlen(inputString);  i++) {

           putchar(toupper(inputString[i]));

       }

       return inputString;

   }

   void stringToInt(string inputString) {

       int convertedInteger = stoi(inputString);

       convertedInteger+=10;

       cout<<convertedInteger<<endl;

   }

};

int main() {

   ConcreteClass cc;

   return 0;

}

You might be interested in
____ is an iterative software development process that focuses on team productivity and delivers software best practices to all
cluponka [151]

Answer:

RUP

Explanation:

RUP or Rational Unified Process is an IBM's software that divides the development process in four phases. It was developed to work throughout the entire software development life cycle, it's adaptive.

I hope you find this information useful and interesting! Good luck!

5 0
3 years ago
If necessary, create a new project named Advanced19 Project, and save it in the Cpp8\Chap06 folder. Enter (or copy) the instruct
Digiron [165]

Answer:  If a customer orders more than four pizzas, the program should deduct 10% from the cost of the order. Modify the program appropriately, and then save, run, and test it.

4 0
3 years ago
How is abstraction used in a GPS system
ipn [44]
The designs on the map of the GPS system Im would think but can you be more specific?
8 0
4 years ago
Read 2 more answers
Lower range tones generally require ________ speakers. lower range tones generally require ________ speakers. multiple choice
lilavasa [31]

Lower range tones generally require larger speakers.

It's no secret that lower range tones generally require larger speakers. This is because lower frequencies have longer wavelengths, and thus require more physical space to produce.

While this may seem like a simple concept, there are a few things to keep in mind when it comes to speaker size and low frequency response. First, larger speakers can usually reproduce lower frequencies more efficiently than smaller ones. Second, the size of the speaker's enclosure also plays a role in how well it can reproduce low frequencies.

A larger enclosure will typically have an easier time reproducing low frequencies than a smaller one.

Keep these things in mind when selecting speakers for your system. If you're looking for accurate low frequency reproduction, make sure to choose speakers with larger drivers and enclosures.

Learn more on speakers here:

brainly.com/question/14649463

#SPJ4

6 0
1 year ago
What were the first printed media items that graphic designers created?
laila [671]

Answer:

books

Explanation:

4 0
3 years ago
Other questions:
  • Operating system software allows you to use your fingers, a mouse or other pointing device to select screen controls, such as bu
    5·2 answers
  • Complete the paragraph to explain how Angelina can notify readers that her report is just a draft.
    6·1 answer
  • How can you achieve an effect like that shown in the image?
    7·2 answers
  • Match each keyboard command with its result.
    6·1 answer
  • Gabriel needs to create a formula that does not change when it is copied to cell b2. which formula should he create?
    14·1 answer
  • having your online class there's a lot of hazards and risk you may encounter while using gadget PC or Laptop whar do you usually
    14·1 answer
  • What is a cookie? *
    9·2 answers
  • Overview In this assignment, you will gain more practice with designing a program. Specifically, you will create pseudocode for
    7·1 answer
  • In disc brakes, pads are forced against the of a brake disc​
    14·1 answer
  • A time stamp indicates the date and time that a measurement was taken. A data scientist has a list containing 10,000 time stamps
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!