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...
-
Question 2 What is SS? (This one comes out evenly) 88 63 81 079
-
Search the FBI site or other sources and determine how money laundering was used in the fraud at Riggs Bank.
-
Bruno Company has decided to expand its operations. The bookkeeper recently completed the balance sheet presented on the next page in order to obtain additional funds for expansion....
-
The following data are taken from the financial statements of Keanan Company as at the end of the year 2021. The data are in alphabetical order. Accounts Payable .............. $28,000...
-
Using ratios to conduct financial analysis must be done with care. One year's worth of data is worth little; establishing a trend line over a period of years is the most useful approach. Using ratio...
-
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...
-
A firms shares currently sell for $32.48, with 5 million shares outstanding. The firm is considering a 20% stock dividend, in which 100 shares become 120 shares. After the stock dividend, at what...
-
Prepare a performance analysis on the budget which include financial ratio analysis, economic value - added analysis, and market value analysis, between 2 0 2 2 and the budget.
-
Let's consider aggregate demand a little to make sure that you have an understanding of the topic. When COVID hit and everyone started losing their jobs, the government passed the CARES Act which...
-
True Religion Brand Jeans (TR) was established in 2002 to "take denim in a refreshing new direction." TR produces regular jeans and distressed (or broken in) jeans, in a variety of styles and sizes....
-
Given an instantaneous change of mass distribution on the surface of the Earth, the shape of the Earth's gravity field (also known as the "Geoid") will change, causing a change in the sea level...
-
d + d + d The charges in the figure above both have a magnitude of 9.70 nC, and the distance dis 9.30 cm. What is the magnitude of the electric field at the dot?
-
Most companies develop their inventory stocking strategy in an intuitive way. MBA students are much more structured in their thinking. GHI Company has requested an MBA student to help with...
-
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...
-
Indirect costs Blank______. Multiple choice question. are not easily traced to products or services must be assigned using volume-based cost systems are only related to manufacturing activities are...
-
Foreign income earned can be converted to Canadian dollars using the Bank of Canada exchange rate in effect on the day that the taxpayer received the income. Question 11 options: True False Question...
-
Under Sarbanes-Oxley, the audit committee is expected to Blank______. (Check all that apply.) Multiple select question. establish an internal audit function establish and implement internal controls...
Study smarter with the SolutionInn App