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

You are given two strings of same length and comprosied of + and - , print a new string that shows the result of the interaction of the two strings assume the following rules.



Interaction between two positive characters results in a positive character.



( "+" Against a "+" returns another "+")



Interaction between two negative characters results in a negative character.



("-" Against a "-" returns another "-")



Interaction between a positive and a negative character results in a " 0" (Neutral)



("+" against a "-" returns a "0")




Input: ++++++ ------



Output: 000000



Input: +-----+++- --+-+-++--



Output: 0-0-0-++0-





Make an algorithm program that prompts the user for a number and then displays its multiplication table using a loop.


Write a code in java to meet the following requirements

. You have an abstract representation Animal that has a method sound). Since this is abstract representation class so we can't give it a implementation.


. You have three classes horae, dog and cat. You need to provide implementation of sound method according to specific class.


. Create a class by name overload. Create the method Demo() in overload class

. Overload the method by using following instructions

Demo instance of borse, cat or dog) // in method body print sound of particular animal

Demo instance of cat and dog) // in method body print sound of particular animal

Demo Instance of cat, dog and horse) // in method body print sound of particular animal

Write main method

Create objects of horse, cat and dog class.

Call overloaded methods of overloaded class by using correct parameters.


Write a programme to demonstrate the Dynamic Memory Allocation with some real-time


example. Also, mention the possible ways of intializing and deallocating memory from dynamically


created objects of the class

What is the difference between Virtual Function and Pure Virtual Function? Is it always mandatory


to implement or define all the pure virtual function of the base class into derived class? Justify your


answer.

Choose data members for class Car to define its properties. Create 2 objects of class Car and



overload the operator ‘greater than’ > to compare both the objects concerning their data members

Create 5 objects of class Product, input its product code, name and quantity and write into the


FILE. Later, display the data of all objects by reading from the FILE

Design a program using a console application in java NetBeans, named studentMarksReport that will print the final result obtained by a student with the weighting of each module. Make use of a class named Student that contains variables to store the student number, test result, assignment result and exam. Create a constructor that accepts the student number, test result, assignment result and the exam result as parameters and create get methods for the variables (UseJOptionePane to get variable from the user). Create a subclass called Student_Report that extends the Student class. The Student_Report overrides all getter methods and the constructor from Students. Write code for the print_report method which calculates each assessment weighting as follows:



test =25% weighting



assignment=25%weighting



exam=50%weighting




2. Write an application that contains an array of 10 multiple-choice quiz questions related to

your favorite hobby. Each question contains three answer choices. Also create an array

that holds the correct answer to each question—A, B, or C. Display each question and

verify that the user enters only A, B, or C as the answer—if not, keep prompting the user

until a valid response is entered. If the user responds to a question correctly, display

Correct; otherwise, display the correct answer is and the letter of the correct answer. After

the user answers all the questions, display the number of correct and incorrect answers.

Save the file as Quiz.java.




Assignment


Using the IDLE development environment, create a Python script named tryme4.py. (Note: an alternative to IDLE is to use a free account on the pythonanywhere website: https://www.pythonanywhere.com/)



Write a function in this file called nine_lines that uses the function three_lines (provided below) to print a total of nine lines.


Now add a function named clear_screen that uses a combination of the functions nine_lines, three_lines, and new_line (provided below) to print a total of twenty-five lines. The last line of your program should call first nine_lines and then the clear_screen function.


The function three_lines and new_line are defined below so that you can see nested function calls. Also, to make counting “blank” lines visually easier, the print command inside new_line will print a dot at the beginning of the line:


def new_line():


print('.')


def three_lines():


new_line()


new_line()


new_line()





LATEST TUTORIALS
APPROVED BY CLIENTS