Give theory as solution like background theory, what concepts will apply in this questions and theory in c++ language. Do not give source code just give theory.
Q: What are static members, and what do they do? Consider a variety of qualities. in the c++ language
A: Introduction: When a user specifies a class member as static, it indicates that no matter what…
Q: In C++, the term "inheritance" is used, but what exactly does it mean? Inheritances of what kinds…
A: Introduction: oop is a programming strategy or pattern that organizes programs around objects rather…
Q: Please show an example of how or how to to solve coding the problem from Starting out with Java…
A: algorithms require two important control structures: iteration and selection.
Q: Make a flowchart with steps/explanations on the side for C Language. The topic is about Numerical…
A: Flowchart of Numerical Integration :-
Q: Write a c++ program on your own to illustrate the use of self referential class
A: If a class contains data member as pointer to object of similar class, then it is called…
Q: Q2 \ write program in C# language to read employee information (Name, Salary, Graduation, Age) and…
A: Note: As per the policy we can answer a question at a time. Please repost the other question to get…
Q: Why is Python able to concisely implement functional constructs?
A: Solution: Given, Why python is able to implements functional constructs.
Q: What is Inheritance? Give an example in C++ to show its implementation in C++.
A: Answer:
Q: By using suitable example, explain how a class can be declared in the C++ language
A: We can create a class, by using the class keyword. And inside the class Attributes( variables ) and…
Q: Make a flowchart with steps/explanations on the side for C Language. The topic is about Numerical…
A: Answer: I have given answered in the handwritten format in brief explanation
Q: Encapsulation is one of the most significant aspects of OOP. What style of C++ implementation does…
A: Encapsulation is enforced by a class because encapsulation refers to the wrapping of data and…
Q: What is static variable in c? How do I implement it in C?
A: A variable is used to store data. It is a name of the memory location. Static is used with global…
Q: Which is preferable, fully qualified or unqualified references to subprograms, variables, and…
A: Commencement: He must first call another officer in the sales department and request that he provide…
Q: Write a program of your own to demonstrate the concept of static scoping as used in C programming…
A: Scoping Scoping of a variable defines the location of variables in a program. The function of…
Q: What is the application of the program "Scientific Calculator in C++" in real life and as an…
A: => i have provided this answer with full description in step-2.
Q: How does the concept of inheritance in C++ simplify problem-solving?
A: The functionality of a class to derive properties and traits from any other class is called…
Q: What is an abstract class and how to create an abstract class in C++? give an example.
A: Given: What is an abstract class and how to create an abstract class in C++? give an example.
Q: Write an interesting c++ program on your own to illustrate the concept of self referential class and…
A: Here we will write an interesting c++ program on your own to illustrate the concept of self…
Q: What does it mean for Python to be strongly and ally typed? Give an example of each concept.
A: Given: What does it mean for Python to be strongly and dynamically typed?
Q: hat we call = Operator in C++? Give an example
A: C++ is a cross-stage language that can be utilized to make superior applications. It gives…
Q: Critically evaluate the situation of parameter passing methods in various computer languages. At…
A: There are two ways by which we can pass the parameters to the functions: 1. Call by value Here the…
Q: One of the most important features of OOP is called encapsulation. What kind of implementation does…
A: Encapsulation: The term "encapsulation" refers to the practice of combining data with the methods…
Q: What are sealed classes in C#?
A: Question. What are sealed classes in C#? Answer. Sealed classes: Sealed classes are used to restrict…
Q: Write a C++ problem using inheritance, input and output.
A: As per the requirement program is done. Here I am explaining the basic level inheritance. Algorithm:…
Q: Interface in C++? With suitable example, explain a C++class interface
A: Interface: # Interface reduces reduces line of code of the program.…
Q: write a basic program about University which explain the inheritance in C++, with comments?
A: Here we have two classes University and MathTeacher, the MathTeacher class inherits the University…
Q: To put it another way, Extension Methods are special types of objects in C#. What are they there…
A: The methods are special types of objects in C# will be explain :
Q: What are the benefits and drawbacks of sending parameters in a C program rather to utilizing a…
A: Passing Parameters Has Its Benefits Parameter passing enables the user to send the values of local…
Q: Define and Explain abstract class and how to create it in C++?
A: Given: Define and Explain abstract class and how to create it in C++?
Q: Write an interesting c++ program on you own to illustrate the use of self referential class
A: Self referential class is a special type of class which is basically created for linked list and…
Q: Write a program using the C ++ language and its affiliate OOP to make a simple mathematical…
A: #include <bits/stdc++.h> #include <vector> using namespace std; class B;class C;class…
Q: can you explain this question , i just want basic experession for understanding it is c programming…
A: the given expressions are:- A $ B $ C * D A / (B * C + D * E)
Q: When we are talking about c++ and our code, what does abstraction mean? Please explain in detail…
A: We need to tell that what is the abstraction in C++.
Q: Write a program that demonstrates the similarities and differences between the concepts oop of Java…
A: Java is a programming language. It contains extensive libraries (package). It can be used to create…
Q: Give a feature of C, C++ or Java that illustrates orthogonality. Give a feature different from the…
A: C C++ and Java are more common in control statements like if-else, while, switch similar expressions…
Q: Is it possible to discuss how to be the best you can in dynamic programming?
A: The answer is given in the below step
Q: 3. Critically evaluate the situation of parameter passing methods in various computer languages. At…
A: PARAMETER PASSING IN C++ : In C++ their are two types of parameter passing which are: Pass by…
Q: write a C++ program about University, which explain the multiple inheritance in C++. with comments?
A: Given: write a C++ program about University, which explains the multiple inheritances in C++. with…
Q: iscuss Overloaded Subprograms concept in C++, C# and Java, with examples and concl
A: Actually, overloading is the different methods with same name but different parameters.
Q: What do you know about Compile time and Run time Polymorphism along with Code(Console based) Example…
A: Given: Compile time and Runtime Polymerphism.
Q: How to print out anything in C++ without C++ library calls?
A: C++
Q: What is an abstract class in C++? Explain with a coding example.
A: an abstract class in C++ is a class that has at least one pure virtual function (i.e., a function…
Q: Discuss Generic Subprograms Subprograms concept in C++, C# and Java, with examples and conclusion.
A: Subprograms or functions are written to execute one or more tasks through programs. Functions can be…
Give theory as solution like background theory, what concepts will apply in this questions and theory in c++ language. Do not give source code just give theory.
Step by step
Solved in 2 steps
- When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making periodic payments over a certain period of time. Of course, the lending company will charge interest on the loan. Every periodic payment consists of the interest on the loan and the payment toward the principal amount. To be specific, suppose that you borrow $1,000 at an interest rate of 7.2% per year and the payments are monthly. Suppose that your monthly payment is $25. Now, the interest is 7.2% per year and the payments are monthly, so the interest rate per month is 7.2/12 = 0.6%. The first months interest on $1,000 is 1000 0.006 = 6. Because the payment is $25 and the interest for the first month is $6, the payment toward the principal amount is 25 6 = 19. This means after making the first payment, the loan amount is 1,000 19 = 981. For the second payment, the interest is calculated on $981. So the interest for the second month is 981 0.006 = 5.886, that is, approximately $5.89. This implies that the payment toward the principal is 25 5.89 = 19.11 and the remaining balance after the second payment is 981 19.11 = 961.89. This process is repeated until the loan is paid. Write a program that accepts as input the loan amount, the interest rate per year, and the monthly payment. (Enter the interest rate as a percentage. For example, if the interest rate is 7.2% per year, then enter 7.2.) The program then outputs the number of months it would take to repay the loan. (Note that if the monthly payment is less than the first months interest, then after each payment, the loan amount will increase. In this case, the program must warn the borrower that the monthly payment is too low, and with this monthly payment, the loan amount could not be repaid.)You are working for a lumber company, and your employer would like a program that calculates the cost of lumber for an order. The company sells pine, fir, cedar, maple, and oak lumber. Lumber is priced by board feet. One board foot equals one square foot that is one inch thick. Theprice per board foot is given in the following table: Pine 0.89Fir 1.09Cedar 2.26Maple 4.50Oak 3.10 The lumber is sold in different dimensions (specified in inches of width and height, and feet of length) that need to be converted to board feet. For example, a 2 x 4 x 8 piece is 2 inches wide, 4 inches high, and 8 feet long, and is equivalent to 5.333 board feet (2 * 4 * 8 = 64, which when divided by 12 = 5.333 board feet). An entry from the user will be in the form of a letter and four integer numbers. The integers are the number of pieces, width, height, and length. The letter will be one of P, F, C, M, O (corresponding to the five kinds of wood) or T, meaning total. When the letter is T, there are no…You are working for a lumber company, and your employer would like a program that calculates the cost of lumber for an order. The company sells pine, fir, cedar, maple, and oak lumber. Lumber is priced by board feet. One board foot equals one square foot that is one inch thick. Theprice per board foot is given in the following table: Pine 0.89Fir 1.09Cedar 2.26 Maple 4.50Oak 3.10 The lumber is sold in different dimensions (specified in inches of width and height, and feet of length) that need to be converted to board feet. For example, a 2 x 4 x 8 piece is 2 inches wide, 4 inches high, and 8 feet long, and is equivalent to 5.333 board feet (2 * 4 * 8 = 64, which when divided by 12 = 5.333 board feet). An entry from the user will be in the form of a letter and four integer numbers. The integers are the number of pieces, width, height, and length. The letter will be one of P, F, C, M, O (corresponding to the five kinds of wood) or T, meaning total. When the letter is T, there are no…
- AGU Computer Engineering Department created a new mathematical game that can be played with two people. In this game, you are given a list of random integers. At each round, the first player takes two numbers from the list and calculates the sum of these numbers. Then, the second player takes two numbers and makes the same calculation. The higher one is going to take the round and increment the score by 1. At the end of the game, who has the better score will win the game. Here are the rules for the game: There are always an even number of items on the list There are two colors for the players: Green and Red Green starts the game At each round, green plays and then red plays The player takes the first and the last numbers The game can end Tie when the scores are the same. The game will end when there is no element to take from the list Your program will simulate the rounds and find out the winner, Green or Red or Tie. The input will be two lines. Input Format…AGU Computer Engineering Department created a new mathematical game that can be played with two people. In this game, you are given a list of random integers. At each round, the first player takes two numbers from the list and calculates the sum of these numbers. Then, the second player takes two numbers and makes the same calculation. The higher one is going to take the round and increment the score by 1. At the end of the game, who has the better score will win the game. Here are the rules for the game: There are always an even number of items on the list There are two colors for the players: Green and Red Green starts the game At each round, green plays and then red plays The player takes the first and the last numbers The game can end Tie when the scores are the same. The game will end when there is no element to take from the list Your program on java will simulate the rounds and find out the winner, Green or Red or Tie. The input will be two lines. Input…The Research team led by Bernadette Wolowitz at Cal-tech University has discovered a new Amoeba that grows in the order of a Fibonacci series every month. They are exhibiting this amoeba in a national. conference. They want to know the size of the amoeba at a particular time instant. If a particular month's index is given, write a program to display the amoeba's size. For Example, the size of the amoeba on month 1, 2, 3, 4, 5, 6,... will be 0, 1, 1, 2, 3, 5, 8.... respectively.
- A python program that lets the user play the game of Rock, Paper, Scissors against the computer. The program should work as follows: When the program begins, a random number in the range of 1 through 3 is generated. If the number is 1, then the computer has chosen rock. If the number is 2, then the computer has chosen paper. If the number is 3, then the computer has chosen scissors. (Don’t display the computer’s choice yet.) The user enters his or her choice of “rock,” “paper,” or “scissors” at the keyboard. The computer’s choice is displayed. A winner is selected according to the following rules: If one player chooses rock and the other player chooses scissors, then rock wins. (Rock smashes scissors.) If one player chooses scissors and the other player chooses paper, then scissors wins. (Scissors cuts paper.) If one player chooses paper and the other player chooses rock, then paper wins. (Paper wraps rock.) If both players make the same choice, the game must be played…For this assignment, write a program named PizzaPrices that prompts the user to make a choice for a pizza size - S,M, L, or X - and the number of pizza the user wants to order. The price for different size pizzas are $6.99, $8.99, $12.5, and $15.0 respectively. There is also a discount based on the number of pizza ordered: no discount for one pizza, 10% discount for 2 pizzas, 15% discount for 3-5 pizzas, and 20% for more than 5 pizzas. Display a full accounting of the transaction, similar to the sample screenshot. Please make sure you use parallel arrays and range match in your solution.Imagine you are working for a lumber company, and your employer would like a program that calculates the cost of lumber for a customer order. The company sells pine, fir, cedar, maple, and oak lumber. The lumber is priced by board feet. One board foot equals one square foot that is one inch thick. The price per board foot is given in the following table: Pine 0.89 Fir 1.09 Cedar 2.26 Maple 4.50 Oak 3.10 The lumber is sold in different dimensions (specified in inches of width and height, and feet of length) that need to be converted to board feet. For example, a 2 x 4 x 8 piece is 2 inches wide, 4 inches high, and 8 feet long, and is equivalent to 5.333 board feet (2 * 4 * 8 = 64, which when divided by 12 = 5.333 board feet). Create a blank c++ Give the customer instructions and then ask the user (customer) to identify the items they wish to purchase by inputting the type of wood, the length, width, & heights of the board, and the number of boards they desire. Allow the user to…
- . Many companies use telephone numbers like 555-GET-FOOD so the number is easier for their customers to remember. On a standard telephone, the alphabetic letters are mapped to numbers in the following fashion: A, B and C = 2 D, E and F = 3 G, H and I = 4 J, K and L = 5 M, N and O = 6 P, Q, R and S = 7 T, U and V = 8 W, X, Y and Z = 9 Write a program that asks the user to enter a 10-character number in the format XXX-XXX-XXXX. The application should display the telephone number with any alphabetic characters that appeared in the original translated to their numeric equivalent. For example, if the user enters 555-GET-FOOD, the application should display 555-438-3663. After displaying the translated telephone number, ask the user if they’d like to enter another number. If the user enters “y”, run the program again. If not, terminate the program. (10 points)Note: the sentence the program reads SHOULD NOT be hardcoded. Allow the user to enter the sentence the program reads PYTHONplz solve it asap ????????: Write a program for a game that consists of two players. The rule of the game is that player 1 inputs a random number from 1-100. Player 2 will input 5 numbers. If the summation of those numbers is equal to the number OR less than or greater than the number by 3 (+3 or -3), then player 2 wins. Otherwise, player 1 wins. Test Case 1 Input Player 1, enter a number: 50 Player 2, enter a number: 10 Player 2, enter a number: 10 Player 2, enter a number: 20 Player 2, enter a number: 5 Player 2, enter a number: 7 Output Player 2 wins Explanation: The summation of 10,10,20,5 and 7 is 52 which is greater than 50 by 2. According to the rule, player 2 wins. Test Case 2 Input Player 1, enter a number: 50 Player 2, enter a number: 10 Player 2, enter a number: 10 Player 2, enter a number: 20 Player 2, enter a number: 5 Player 2, enter a number: 1 Output Player 1 wins Explanation: The summation of 10,10,20,5 and 1 is 46 which is less than 50 and also doesn’t…In your favorite open world adventure video game, currency conversion is as given below: 1 Gold coin 23 Bolts 1 Gem 13 Gold coins Write a program that takes a number of Bolts as user input (as an integer) and converts it to the number of whole Gems, Gold coins, and Bolts as shown below. The conversion information between these measurement metrics is provided in the table above. The number of Bolts should be converted in such a way that maximizes the whole number of Gems and Gold coins. Expected output 1 (bold is user input) Enter the number of Bolts: 32 0 Gems(s) 1 Gold coin(s) 9 Bolt(s) Expected output 2 (bold is user input) Enter the number of Bolts: 3000 10 Gem(s) 0 Gold coin(s) 10 Bolt(s) The file should be named as convertCurrency.cpp. Don’t forget to head over to Coderunner on Canvas and paste your solution in the answer box!