Help me solve the problem by looking at the program
Q: You arrive at a racetrack and observe a car moving around a track at what appears to be a constant…
A: Linear Interpolation is a very great approximation technique used to map two items and then get the…
Q: PYTHON: Please help me fix my code. It was supposed to ask the user to input an inorder traversal…
A: The correct answer for the above mentioned question is given in the following steps for your…
Q: write a Java program that reads a grid of letters and a specified word from the user, counts how…
A: Here's the algorithm that needs to be followed :- Input all the necessary data Traverse through the…
Q: How do I write my computer program that shows the current population at 78,000. And there are 365…
A: Programming approach Set birth rate "birthRate" to 7 seconds. Set death rate "dyingRate" to 13…
Q: Write a program to take 3 side of a triangle from user and you have to find the area of triangle in…
A: Requirements:- Write a program to take 3 sides of a triangle from the user and you have to find the…
Q: How do you choose the right program when there are so many to choose from? Which rules should you…
A: Choosing the right program can be a daunting task, especially when there are numerous options…
Q: Predict output of following program. #include int fun (int n) if (n == 4) return n; else return…
A: #include <stdio.h>int fun (int n){if (n == 4)return n;else return 2* fun (n+1);}int…
Q: We usually write numbers in decimal form (or base 10), meaning numbers are composed using 10…
A: This question asks how many 5-digit hеxadеcimal numbеrs start with a lеttеr (A - F) or еnd with a…
Q: The files provided in the code editor to the right contain syntax and/or logic errors. In each case,…
A: Debugging: There are some syntax errors and methods with wrong syntax. The corrections are pointed…
Q: Python I have to create a code like in the pictures. Can you help me
A: import numpy as npimport matplotlib.pyplot as pltn = 100 # How many terms shall we include?fiblist =…
Q: Write a program to read the information of 10 patients (name, id , disease, age , blood . (, فصيلة…
A: Required: write a program to read information of 10 patients. Required code with comments for…
Q: 1. Write a program that generates a square table that contains randomly generated integer values…
A: import randomdef main(): random.seed(1113) allRowSum =0 allColSum = 0 n =…
Q: AND SHOW COMMENTS TO EXPLAIN CODE A confused Dutchman trying to speak English could say “I am in…
A: the code is an given below
Q: Can you send the images of the codes in a program with the in-put and out-put of the codes?
A: We need to run the code by adding a main method and post screenshot of execution.
Q: #include #include #include double area (double r); // this starts the definition for the area…
A: #include <iostream> #include <math.h> #include <cstdlib> double area (double r);…
Q: Add a function to your pixart module that draws a single pixel of the correct color based on the…
A: First, we should point out something important in the example above. Whenever you access pixels in…
Q: Use Python to draw the pattern in the picture.
A: To draw the spiral we need to use t.left() and t.backward() functions in the turtle library as shown…
Q: Jojo and his classmates like to answer question not in sequence. This make their teacher confuse…
A: Answer to the following problem :-
Q: What happens if you run a program that has an error?
A:
Q: An instructor gives a series of exams during the semester in her math class. At the end of the…
A: a=[];sum1=0for i in range(0,10):i=int(input("enter test score: "))a.append(i)print("Test scores :…
Step by step
Solved in 3 steps
- Course: Object Oriented programming Lnaguage: C++ You have to solve the Make the program correctly and in 2 hours. kindly Make program correct as much as you can. Question: Develop a polymorphic banking program using the Account hierarchy in which two types of Accounts can be created i.e.Current Account and Saving Account respectively. Each account must have to give the interest to the bank depending upon their account type. A function of name InterestRate() will calculate the interest of account and returns the interest amount. Current Account has annual interest rate of 0.1% of actual amount and SavingAccount will have to pay interest rate of 1.0% of actual amount. Also write a main function for polymorphic calls of the functions. Note: Polymorphic calls for the functions are necessary. Necessary constructor, Destructors, setters, getters and other functions should also be defined.OOP C++ Problem This task needs to be done through OOP C++ Object-Oriented Programming in C++ Project Consider the following a file (movies.txt) with the following list of movies (comma separated list). SNO, Name, NoOfPeopleLiked 1, The Shawshank Redemption, 77 2, The Godfather, 20 3, Into The Wild, 35 4, The Dark Knight, 55 5, 12 Angry Men, 44 6, Schindler's List, 33 7, The Lord of the Rings: The Return of the King, 25 8, Pulp Fiction, 23 9, The Good, the Bad and the Ugly, 32 10, The Lord of the Rings: The Fellowship of the Ring, 56 OUTPUT SHOULD BE LIKE THIS Enter the name of movie you like: Into The Wild The movie is found in the database. It is already the favourite movie of 35 people. Do you like it as well (y/n)? y Do you want to look for another movie (y/n)? y Enter the name of movie you like: In Time The movies is not found in the database. Do you want to add it to the list of movies (y/n)? y…C PROGRAM Reverse + Random Formula In the code editor, there's already an initial code that contains the function declaration of the function, computeReverseNumber(int n) and an empty main() function. For this problem, you are task to implement the computeReverseNumber function. This function will take in an integer n as its parameter. This will get the reverse of the passed integer and will then compute and return the value: result = (original_number + reverse_of_the_number) / 3 In the main() function, ask the user to input the value of n, call the function computeReverseNumber and pass the inputted value of n, and print the result in the main() with two (2) decimal places. SAMPLE: Input n: 20 Output: 7.33 Input n: 123 Output: 148.00
- C++ ProgrammingIn C programming: Write a main() function using the following requirements:• Define a SIZE constant (the value is irrelevant, but for testing, you may want to keep it small enough – no bigger than 5)• Create an array of course pointers using SIZE• Dynamically allocate each element of the array• Call inputAllCourses()• Call printAllCourses().Consider the function definition: void GetNums(int howMany, float& alpha, float& beta) { int i; beta = 0; for (i = 0; i < howMany; i++) { beta = alpha + beta; } } Describe what happens in MEMORY when the GetNums function is called.
- C code blocks Implement a function which receives a character array and determines if the word is a palindrome or not. A palindrome is a string that is spelt the same way forwards and backwards (see the example below). The function should return 1 if the character array is a palindrome and 0 if it is not. Write the entire function in the space below. Your answer should not include the function prototype, the main function or any include statements. The function should not contain any printf statements. Define your function in the same way as the given function prototype. Function prototype: int palindrome(char a[]); For example: Input Result hello 0 radar 1 acca 1Programming Assignment - Employee Data Processing Submission: 1. Submit as one file of type *.cpp 2. Submit it on the Blackboard within the due date and time (Submission via email will NOT be considered!) 3. Assignment ID: PA Employee Data Processing The Program Details: Implement a program in C++ that does the following: 1. Requests the user and Reads the input of at least 10 Employee full names (first names, middle initial, and last names), pay rate per hour, and the number of hours worked per week (for at least SIX weeks) for each of the employees. 2. Saves those inputs (use arrays to store them). 3. Calculates the amount of salary earned per week, average salary o6 weeks. 4. Displays the output, i.e., employee name (with first name, middle initial, last name in separate columns), each Week salary, average of 6 weeks salary. Make sure the output format is neat and follows a column format with proper column headings. (Your program must work for any similar input data entered as…python only** define the following function: This function must return the task status for a particular task from a checklist. These examples for taskStatus demonstrate how it works. As with addTask, there's the possibility that the task specified is invalid (in this case, because it isn't in the checklist). In that case, taskStatus must print a specific message ("That task does not exist."), and must return None. Define taskStatus with 2 parameters Use def to define taskStatus with 2 parameters Use a return statement Within the definition of taskStatus with 2 parameters, use return _ in at least one place. Do not use any kind of loop Within the definition of taskStatus with 2 parameters, do not use any kind of loop.
- Consider the following function main:Int main(){int inStock[10][4];int alpha [20];int beta[20];int gamma[4]= {11,13,15,17};int delta [10] = {3,5,2,6,10,9,7,11,1,8};} a) Write the definition of the function setZero that initializes any one-dimentional array of type int to 0.b) Write the definition of the function inputArray that prompts the user to input 20 numbers and stores the numbers into alpha.c) Write the definition of the function doubleArray that initializes the elements of beta to two times the corresponding elements of alpha. Make sure that you prevent the function from modifying the elements of alpha.d) Write the definition of the function copyGamma that sets the elements of the first row of inStock to gamma and the remaining rows of inStock to three times the previous row of inStock. Make sure that you prevent the function from modifying the elements of gamma.e) Write the definitions of the function copyAlphaBeta that stores alpha into the first five rows of inStock and beta…1. Write a c++ program that uses <iostream> alone and constructors and does not use sort function, that has a class staff having fields: Staff_id , name, salary. Write a menu driven program for: 1) To accept the data2) To display the data3) To arrange the data by nameC++ : Defining class Person, class Student, class Teacher and class Graduate. Note that class Student and class Teacher inherits from Person, and class Graduate inherits from Student. Defining two constructors (including a default constructor) for each class. Defining virtual function print() for three classes (person, teacher and graduate), where each has different function body. Writing a main function to test the above definition and run each print function.