Question

Write a program that asks the user to enter two integer numbers. the main function then passes these numbers to a function named exp that calculates the multiplication of these numbers and print the exponential value of the result of multiplication

Answer #1

**Answer:**

**I have written the below program based on your
requirements.**

**The below code has no-error and it is working
perfectly.**

**I have also attached the Output Screenshot that I got by
running the below program.**

**Output:**

***********************************************************************************************************************************

**Code:**

**#include<bits/stdc++.h>
using namespace std;**

**void exp(int a, int b)
{
int c= a * b;
double e=exp(c);
cout<<"\nExponent ("<<c<<") is
"<<e;
}**

**int main()
{
int a,b;
cout<<"\nEnter two integer numbers : ";
cin>>a>>b;
exp(a,b);**

**}**

Write a function that takes two integer inputs and returns the
sum of all even numbers between these inputs, and another function
that takes two integer inputs and returns the sum of odd numbers
between these inputs .In main function, the program will asks the
user to enter two integer numbers and then passes them to these two
functions and display the result of each of them.
[0.5 mark] (BY
USING C PROGRAM)

write a C++ program that asks the user to enter 4 integer
numbers then use
if ….. elseif ….. elseif ….. else
to find the smallest number then display it.

in c++
Write a C++ program that asks the user to enter an integer
number and prints it back "vertically" to the screen. Use recursion
in your solution. As an example of how the program will work:
Please enter an integer: 12345
The integer you entered will print vertically as:
1
2
3
4
5

PROGRAM PYHTON
Write a function called "calculateInput" that when called, it
asks the user to enter an number. Then, it asks for a second
number. These will use the "input" command. Store these as two
separate variables. This function takes NO arguments and is also a
VOID function, there is no return statement. The function should
print the result of these two numbers multiplied together. The
program should be able to multiply floats.
For example:
Test
Input
Result
calculateInput()
5...

write a program that asks the User to enter a letter, then asks
the user to enter a sentence. the program will then print out how
many time that letter occurred in the sentence. in C Language

Write a program that asks the user to enter a series of numbers
separated by commas. Here is an example of valid input:
7,9,10,2,18,6
The program should calculate and print the sum of all the
numbers.
Sample Run
java NumberSum
Enter·numbers·separated·by·commas:1,2,3↵
6↵

Write a mips assembly language program that asks the
user to enter and integer number and read it. Then ask him to enter
a bit position (between 0 and 31) and display the value of that
bit.

Write a C++ program that asks the user to enter in three numbers
and displays the numbers in ascending order.
If the three numbers are all the same the program should tell
the user that all the numbers are equal and exits the program.
Be sure to think about all the possible cases of three
numbers.
Be sure to test all possible paths.
Sample Runs:
NOTE: not all possible runs are shown
below.
Sample Run 1
Welcome to the order...

Write a program that asks the user for an even integer, and asks
again as long as the given integer is not even (then it just thanks
the user)

(SumDigits.java) Write code that asks the user to enter an
integer between 100 and 999. The program finds and displays the
three digits in the number. The program also calculates and
displays the sum of the three digits.
A sample run is shown below: Enter a number between 100 and 999:
528 The three digits in the number are: 5 2 8 The sum of the three
digits is: 15 Note: You must use integer division and modulo
division to...

ADVERTISEMENT

Get Answers For Free

Most questions answered within 1 hours.

ADVERTISEMENT

asked 5 minutes ago

asked 10 minutes ago

asked 10 minutes ago

asked 23 minutes ago

asked 24 minutes ago

asked 34 minutes ago

asked 34 minutes ago

asked 37 minutes ago

asked 38 minutes ago

asked 45 minutes ago

asked 46 minutes ago

asked 57 minutes ago