1. Write a C++ Program that calculate the average of three double numbers. Also print the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Write a C++ Program that calculate the average of three double numbers. Also print the highest and lowest value. 2. Write a C program to input a number. If the number is even, print its square otherwise print its cube. 3. Write a program that prints the even numbers between 90 and 50 using for loop. 4. Write a C++ program that prints the odd numbers between 10 and 20 using for loop. 1. Write a C++ Program that calculate the average of three double numbers. Also print the highest and lowest value. 2. Write a C program to input a number. If the number is even, print its square otherwise print its cube. 3. Write a program that prints the even numbers between 90 and 50 using for loop. 4. Write a C++ program that prints the odd numbers between 10 and 20 using for loop.
Expert Answer:
Answer rating: 100% (QA)
1 C Program to Calculate Average and Print HighestLowest Value include using namespace std int main ... View the full answer
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date:
Students also viewed these programming questions
-
Please do the following Matlab problem, 1.Write a for loop ranging from 3 to 5. In the loop, print the value of the loop index to the screen using fprintf in the following format: Value is n where n...
-
In Exercises 8486, use a graphing utility to graph f and g in the same [-8, 8, 1] by [-5, 5, 1] viewing rectangle. In addition, graph the line y = x and visually determine if f and g are inverses....
-
As an intern for Coca-Cola, you have been asked to help with developing an IMC budget. The objective of the IMC strategy is to raise Diet Coke's market share by 2 percent in the United States in the...
-
To hide one of a classs members, you declare the member using which of the following keywords? a. Hide b. Invisible c. Private d. ReadOnly
-
A computer manufacturers spending on testing its computers before shipping them to customers helps reduce which of the following costs? a. Prevention costs b. Appraisal costs c. Internal failure...
-
Ammonia is oxidized in a well-insulated continuous reactor: 4 NH 3 (g) + 5 O 2 (g) ? 4 NO (g) + 6 H 2 O (v): ?H? ? = ? 904.7 kJ/mol The feed stream enters at 200?C and the products leave at...
-
Which three design considerations to limit the scope of EIGRP queries are correct?
-
The proposed rates were not in the range the CEO expected given the pricing analysis. The CEO has asked the pricing actuary to verify the total projected loss cost excluding potential large storm...
-
Rocky Mountain Corporation makes two types of hiking boots-Xactive and Pathbreaker. Data concerning these two product lines appear below: Direct materials per unit Direct labor cost per unit Direct...
-
What is meant by externalities and public goods? How does a market economy address externalities and public goods? What role, if any, should government have in addressing externalities and public...
-
How does the application of transformational leadership theories facilitate organizational adaptation and strategic change amidst dynamic market environments?
-
In november 2 0 0 6 the bank of america offered a 1 2 month certificate of deposit at a nominal rate of 3 . 6 % . What is the effective intrest rate rounded to three decimal places if the bank...
-
Why did the investigators have to use estimates to reinact the weight and balance calculations?
-
What role do emotional intelligence competencies play in the effective implementation of transformational leadership strategies, particularly in cultivating trust and fostering employee engagement?
-
Prepare the journal entries to record the following sales transactions in Marigold Corp.s books. Marigold uses a perpetual inventory system. (List all debit entries before credit entries. Credit...
-
What are the principal alloying elements in SAE 4340 steel?
-
Write a Temperature class that represents temperatures in degrees in both Celsius and Fahrenheit. Use a floating-point number for the temperature and a character for the scale: either 'C' for Celsius...
-
Create the classes RightTriangle and Rectangle, each of which is derived from the abstract class ShapeBase in Listing 8.19. Then derive a class Square from the class Rectangle. Each of these three...
-
Suppose we want to compute the amount of money in a bank account with compound interest. If the amount of money in the account is m, the amount in the account at the end of the month will be 1.005m....
-
See Table 2.5 showing financial statement data and stock price data for Mydeco Corp. Was Mydeco able to improve its ROIC in 2023 relative to what it was in 2019? TABLE 2.5 2019-2023 Financial...
-
Find online the annual 10-K report for Costco Wholesale Corporation (COST) for fiscal year 2021 (filed in October 2021). a. Which auditing firm certified these financial statements? b. Which officers...
-
You have an investment opportunity in Japan. It requires an investment of \($0.98\) million today and will produce a cash flow of 107 million in one year with no risk. Suppose the risk-free interest...
Study smarter with the SolutionInn App