the question is not understandable. The question language is not appropriate. Please elaborate
Wirite a c program. you have to be an entering even number. Then you enter this...
please code in python
1. Write a program to request the user enter a desired number of values. Create a loop to load the desired number of user-specified values into a list. Create two lists with the same values but generated in different ways. On list will be originally initialized to have the desired length before entering the loop. The other list will begin empty and values be appended for every iteration of the loop. Output from the program should...
Create a C# program that will first prompt the instructors to enter the number of students they currently have in their classes. Use this value for the size of the row dimension of your multidimensional array. Next, prompt the instructors to type in the number of scores they would like to enter. This variable will be used to designate the column size dimension of your multidimensional array. Then, use a loop to prompt the user to enter the number of...
Develope a CPP program that multiplies two square matrixes. Your program will follow the steps below. 1. Print a statement welcoming the user to the program. 2. Ask the user the size of the matrix. (You only need one number since it will be square.) 3. Ask the user for the values of the first matrix. 4. Aks the user for the values of the second matrix 5. Display the result of multiplying the two matrixes.
in C++ language Create an object-oriented program that uses a sorting algorithm to implement the following functionality: The program prompts you to enter a series of numbers (up to a maximum of 24, so you can use a static array) with -1 as an “end” code. When the program encounters a -1, it does not insert the -1, instead, it outputs a list of half the original size, consisting of the averages of the highest and lowest pairs of numbers...
Write a c++ program: Many mathematical problems require the addition, subtraction, and multiplication of two matrices. Write an ADT Matrix. You may use the following class definition: const int MAX_ROWS = 10; const int MAX_COLS = 10; class MatrixType { public: MatrixType(); void MakeEmpty(); void SetSize(int rowsSize, int colSize); void StoreItem(int item, int row, int col); void Add(MatrixType otherOperand, MatrixType& result); void Sub(MatrixType otherOperand, MatrixType& result); void Mult(MatrixType otherOperand, MatrixType& result); void Print(ofstream& outfile); bool AddSubCompatible(MatrixType otherOperand); bool MultCompatible(MatrixType otherOperand);...
In this part, you have to determine the parity of a number and the number of 1-bit pairs present in the number. Parity refers to whether a number contains an even or odd number of 1-bits. 1-bit pairs are defined by two adjacent 1’s without overlap with other pairs. Input format: This program takes a single number as an argument from the command line. This number should be considered as an unsigned short. Output format: Your program should print either...
Is Prime Number In this program, you will be using C++ programming constructs, such as functions. main.cpp Write a program that asks the user to enter a positive integer, and outputs a message indicating whether the integer is a prime number. If the user enters a negative integer, output an error message. isPrime Create a function called isPrime that contains one integer parameter, and returns a boolean result. If the integer input is a prime number, then this function returns...
Q#1: Write a C++ program to enter a number, compute and print the following: - Sum of even digits in the number - Count of even digits in the number - Count of digits below 5 For example, if the input is 3429, then Sum of even digits in the number = 6 Count of even digits in the number = 2 Count of digits below 5 = 3
This program will ask the user to enter a number of players, then ask the user for each player's name and score. Once all of the players have been entered, the program will display a bar chart with each of their scores scaled as a percentage of the maximum score entered. See below for details on exactly how this should work - an example transcript of how the program should work is shown below (remember that values entered by the...
Create a C++ console program that defines a class named EvenNumber that represents an even number. Create the class inside a separate header file (.h) and then include this header in your main source code file. The class should have one private integer data field to store the even number. The default constructor should initialize the data field to 0. Also define a 1-arg constructor that initializes the object with the specified value. Define a public getter method named getValue...