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...
-
Kayce, the administrative assistant, sends an email with the annual holiday schedule to everyone in the department. At the bottom of the email, Kayce types "no reply necessary." What can you infer...
-
Describe a variety of negligent errors that have application to all healthcare professionals.
-
On March 1, 2015, a company paid an $18,000 premium on a 36-month insurance policy for coverage beginning on that date. Refer to that policy and fill in the blanks in the following table. Balance...
-
3. Develop a plan for the Board which identifies some the problems and recommends a different approach to Innovation and CE in the organization, in particular emphasizing the importance of measuring...
-
Daniel Merrill is the manager of an airport gift shop, Merrill News and Gifts. From the following data, Mr. Merrill wants a cash budget showing expected cash receipts and disbursements for the month...
-
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...
-
Clarke has a controlling interest in Rogers outstanding stock. At the current year-end, the following information has been accumulated for these two companies: Clarke uses the initial value method to...
-
How much time does it take for the spacecraft to complete one orbit? A. \(38 \mathrm{~min}\) B. \(76 \mathrm{~min}\) C. \(110 \mathrm{~min}\) D. \(220 \mathrm{~min}\)
-
A satellite orbiting the moon very near the surface has a period of \(110 \mathrm{~min}\). Use this information, together with the radius of the moon from the table on the inside of the back cover,...
-
Two horizontal rods are each held up by vertical strings tied to their ends. Rod 1 has length \(L\) and mass \(M\); rod 2 has length \(2 L\) and mass \(2 M\). Each rod then has one of its supporting...
-
You are going sledding with your friends, sliding down a snowy hill. Friction can't be ignored. Riding solo on your sled, you have a certain acceleration. Would the acceleration change if you let a...
-
A typical compact disk has a mass of \(15 \mathrm{~g}\) and a diameter of \(120 \mathrm{~mm}\). What is its moment of inertia about an axis through its center, perpendicular to the disk? A. \(2.7...
-
Mason Advertising Agency Inc. was founded in January 2013. Presented below are adjusted and unadjusted trial balances as of December 31, 2017. "Instructions: a) Journalize the annual adjusting...
-
A circular concrete shaft liner with Youngs modulus of 3.4 million psi, Poissons ratio of 0.25, unconfined compressive strength 3,500 psi and tensile strength 350 psi is loaded to the verge of...
-
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...
-
Do you look to social media to build your self-esteem? What aspects of social media make you feel better about yourself? What aspects make you feel worse? Do you think that social media has had an...
-
This is designed to help problem solvers speed up the slower process, slow other processes down to relieve pressure on the slow process, or a combination of the two. This statement BEST describes...
-
Write a routine request email to your supervisor asking for a 10% increase in your operating budget and to hire another team member for a new project your department is working on. The project is for...
Management Information Systems Managing The Digital Firm 16th Edition - ISBN: 0135191793 - Free Book
Study smarter with the SolutionInn App