A program stores sales amounts in two double variables named marySales and jimSales. Write the C++ code
Question:
A program stores sales amounts in two double variables named marySales and jimSales. Write the C++ code to assign the highest and lowest sales amounts to the highSales and lowSales variables, respectively, and then display the contents of those variables. (You can assume that both sales amounts are different.)
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 84% (13 reviews)
if marySales jimSales lowSales marySa...View the full answer
Answered By
Muhammad Umair
I have done job as Embedded System Engineer for just four months but after it i have decided to open my own lab and to work on projects that i can launch my own product in market. I work on different softwares like Proteus, Mikroc to program Embedded Systems. My basic work is on Embedded Systems. I have skills in Autocad, Proteus, C++, C programming and i love to share these skills to other to enhance my knowledge too.
3.50+
1+ Reviews
10+ Question Solved
Related Book For
Microsoft Visual C# An Introduction to Object-Oriented Programming
ISBN: 978-1337102100
7th edition
Authors: Joyce Farrell
Question Posted:
Students also viewed these Computer science questions
-
A program stores test scores in two int variables named myScore and expectedScore. Write the C++ code to compare the two scores and then display one of the following messages: I met my expectations,...
-
The total and dollars variables are string variables. Write the C++ code that uses the assign function to assign 10 asterisks to the total variable. The code should then concatenate the contents of...
-
A programs main function declares three double variables named sales, taxRate, and salesTax. It also contains the following function call: calcSalesTax (sales, taxRate, salesTax);. The calcSalesTax...
-
What are the main technical challenges faced by firms that wish to internationalise their selection and assessment approaches?
-
In Problems 1 and 2, determine whether the indicated sequence can be the first three terms of an arithmetic or geometric sequence, and, if so, find the common difference or common ratio and the next...
-
How do the Scanlon, Rucker, and Improshare group incentive plans differ?
-
1 (a) Using Netflix as an example, explain how a mission statement gives it a strategic direction. (b) Create a mission statement for your own career.
-
The product design team at New Time Products is in the process of designing a new clock using target costing. Product features in comparison to competing products suggest a price of $30 per unit. The...
-
On April 1, Algiers Ltd. factored $500,000 of accounts receivable with Delhi Finance Corp. on a without recourse basis. Under the arrangement, Algiers was to handle disputes concerning service, and...
-
Claytonhill Beverages Ltd. is 100 percent owned by Buzz Bottling. While the company has in the past been profitable, it incurred a loss for the year ended December 31, 2012. The parent company, Buzz...
-
Which of the following tells the computer to display real numbers in fixed-point notation with no decimal places? a. cout < < fixed < < decimal(0); b. cout < < fixed < < precision(0); c. cout < <...
-
A program uses a char variable named department and two double variables named salary and raise. The department variable contains one of the following letters (entered in either uppercase or...
-
Consider data on annual inflation rates across countries over time. How has the experience of advanced countries differed from that of emerging markets and developing countries? What might explain...
-
What should be the equivalent units of production for (1) Dept M and (2) Dept. P? Can you please show the solutions and answer. Thanks Problem 1 Lee Gon Mfg. Co has its product processed in two...
-
Moullierat Mfg. is considering a rights offer. The company has determined that the ex-rights price will be $95. The current price is $102 per share, and there are 24 million shares outstanding. The...
-
This question involves hypothesis testing. The following numbers will help you answer these questions. The random variable Z ~N(0, 1) is standard normal. P(Z >1.28).1 P(Z1.65) .05 P(Z1.96) .025 P(Z...
-
Human service organizations require strong and effective leadership. Understanding what qualities make up an effective leader and how these qualities can be cultivated is of critical importance for...
-
18. What is the name of the heat treatment performed on a cold worked sample? 19. What is the percent coldwork of a sample with an initial thickness of 11mm and a final thickness of 7mm? 20. Which...
-
Below you will find annual return data for six furniture companies for the years 1982? 1992. Use these data to calculate the variance-covariance matrix of the returns. The remaining exercises refer...
-
The outer loop controls the number of students. Note that the inner loop of this program is always executed exactly three times, once for each day of the long weekend. Modify the code so that the...
-
Write an application that accepts a word from a user and converts it to Pig Latin. If a word starts with a consonant, the Pig Latin version removes all consonants from the beginning of the word and...
-
Write a program that inserts parentheses, a space, and a dash into a string of 10 user-entered numbers to format it as a phone number. For example, 5153458912 becomes (515) 345-8912. If the user does...
-
Write an application that determines whether a phrase entered by the user is a palindrome. A palindrome is a phrase that reads the same backward and forward without regarding capitalization or...
-
Comfort Golf Products is considering whether to upgrade its equipment Managers are considering two options. Equipment manufactured by Stenback Inc. costs $1,000,000 and will last five years and have...
-
Weaver Corporation had the following stock issued and outstanding at January 1, Year 1: 71,000 shares of $10 par common stock. 8,500 shares of $60 par, 6 percent, noncumulative preferred stock. On...
-
Read the following case and then answer questions On 1 January 2016 a company purchased a machine at a cost of $3,000. Its useful life is estimated to be 10 years and then it has a residual value of...
Study smarter with the SolutionInn App