Program-1:
#include<iostream>
using namespace std;
int main()
{
int a, b;
int sub, mul;
//prompt and read input
cout << "Type 2 integers: ";
cin >> a>> b;
//calculate the subtraction of the two integers
sub = a - b;
//calculate the multiplication of the two integers
mul = a * b;
//display the output
cout << "The result of subtraction: " << sub << endl;
cout << "The result of multiplication: " << mul;
return 0;
}
Output:

Program-2:
#include<iostream>
using namespace std;
int main()
{
int a, b, c;
int result;
//prompt and read input
cout << "Type 3 integers: ";
cin >> a >> b >> c;
//calculate the equation
result = a*b+c;
//display the output
cout << "The result of this equation: " << result << endl;
return 0;
}
Output:

Program-3:
#include<iostream>
#include<math.h>
using namespace std;
int main()
{
int a;
int result;
//prompt and read input
cout << "Type 1 integer: ";
cin >> a ;
//calculate the square root
result = sqrt(a);
//display the output
cout << "The square root of " << a << " is: " << result << endl;
return 0;
}
Output:

Program-4:
#include<iostream>
using namespace std;
int main()
{
int a, b;
int remainder;
//prompt and read input
cout << "Type 2 integers: ";
cin >> a >> b;
//calculate the remainder
remainder = a % b;
//display the output
cout << "Divide " << a << " into " << b << ", and the remainder is " << remainder << endl;
return 0;
}
Output:

Program-5:
#include<iostream>
using namespace std;
int main()
{
int a, b, c;
int result;
//prompt and read input
cout << "Type 3 integers: ";
cin >> a >> b >> c;
//calculate the equation
result = (a-b) * (b+c) * (c%a);
//display the output
cout << "The result: " << result << endl;
return 0;
}
Output:

Need help for this assignment Please develop 5 programs to calculate arithmetic operations using MS Visual...
Explaining Expressions for Arithmetic arithmetic sequence whose first entry is 5 and s CA-208 Chapter 9 Algebra Class Activity 9BB Sequences increases by 3 Entry Number Entry Ist 2nd 3rd 4th 5th Nth I1 14 17 a. If there were a Oth entry, what would it be? Put it in the table. b. Fill in the blanks to describe how to get entries in the sequence by starting from the Oth entr To find the Ist entry: Start at and...
using C programming
Date Write a program that reads a month and a day in that month and prints the date in format "month day". The input is two integers, one between 1 and 12 (inclusive) and one between 1 and 31 (inclusive) and the output is a single line in format "month day". For example, for input 2 10 the program will print "February 10th". The day will always have the ordinal indicator, e.g. 1st, 2nd, 3rd, 4th. Example...
C++ and Using Microsoft Visual Studio. Write 2 programs: One program will use a structure to store the following data on a company division: Division Name (East, West, North, and South) Quarter (1, 2, 3, or 4) Quarterly Sales The user should be asked for the four quarters' sales figures for the East, West, North, and South divisions. The data for each quarter for each division should be written to a file. The second program will read the data written...
Mini Project You are required to do this assignment on your own skills. No copying from other students are not allowed. Write a menu driven Bash script using the guidelines given below. Some of the commands and syntax may not be covered in lectures. Please refer other sources to understand syntax and commands you need to complete this assignment. This program takes user input and to perform simple arithmetic operations such as addition, subtraction, multiplication and division of any two...
Write MARIE assembly language programs that do the following: I. Write a program that inputs three integers, a, b, and c, in that order. It computes the following ia-bi-fc+ c The result should be written to output 2. Write a program that inputs integers, s. y, and z. It outputs the difference of the langest and first element entered. You may assume x. y, and z all have different values. So if 8, 12, and 9 are input, the output...
I really need help on this programming problem that am doing in Visual Studio 2019 in C++ Submit your .cpp file as well as the input file, the output file, and the screen shot of all the files tiled next to each other here! Instructions: Write a menu driven program that has three options: Option 1: Write a function that calculates the tax for an iphone. The price and the tax rate should be asked from the user. Input validation:...
Big Number Arithmetic C Program The goal is to perform several multiplication functions/algorithims using unlimited length digits (BigInts) and compare their execution times. The program requires a header file which includes all functions needed by the .c file. Required functions: ClassicalMult (bigInt A, bigInt B, int base) - this function multiplies two big integers using the classical multiplication algorithim. KaratsubaMult (bigInt A, bigInt B, int base) - this function multiplies two big integers using the Karatsuba multiplication algorithim. ToomMult (bigInt...
1) [5 pts] Build a simple calculator using switch statements which can perform the four operations +, -, *,/. Write a program that asks the user to enter two numbers/operands. Then prompt the user to enter the operator +,, ). Perform the corresponding operation and display the answer to user. The format Example of multiplication Microsoft Visual Studio Debug Console an operator (+, -, *, ): Enter two operands: 25.5 2.314 25.5 2.314597 2) [5 pts] Create a program to...
This C++ Programs should be written in Visual studio 2017 PROGRAM 1: Comparing Using Arrays to Using Individual Variables One of the main advantages of using arrays instead of individual variables to store values is that the program code becomes much smaller. Write two versions of a program, one using arrays to hold the input values, and one using individual variables to hold the input values. The programs should ask the user to enter 10 integer values, and then it...
I need help building a program on microsoft visual studio using c++ language. implement a program called "charword_freq.cpp" to determine the number of words and the number of occurrences of each letter in a block of text stored in a data file called “mytext.dat”. Define a word to be any string of letters that is delimited at each end by either whitespace, a period, a comma, or the beginning or end of a line. You can assume that the input...