Convert temperature from Celsius to Fahrenheit. Use the following variables: C: temperature in Celsius F: temperature...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Convert temperature from Celsius to Fahrenheit. Use the following variables: C: temperature in Celsius F: temperature in Fahrenheit • Problem 2 Find Area & Perimeter of square when the side length of square is given by the user. Problem 3 Find the cost of 24 pens when the cost of one pen is SR 12. Find the result of the equation: f(x) = { ● 13 -X, Problem 4 Check the given character is vowel or not. X, 14 x < 0 x ≥ 0 Problem 5 Calculate the roots of a quadratic equation: ax² + bx + c = 0 Note: the roots are: x1 = (-b + d)/2a and x2 = = (-b-d)/2a d = sqrt (b2 - 4ac), when b2 - 4ac is not negative, otherwise print "Roots are Imaginary" 15 Tutorials on Iterative (Loop) Operations • Problem 1 Mohammad goes to market for buying some fruits and vegetables. He is having a currency of SR 500 with him for marketing. From a shop he purchases 2.0 kg Apple priced SR 50.0 per kg, 1.5 kg Mango priced SR 35.0 per kg, 2.5 kg Potato priced SR 10.0 per kg, and 1.0 kg Tomato priced SR 15 per kg. He gives the currency of SR 500 to the shopkeeper. Find out the amount shopkeeper will return to Mohammad and also tell the total item purchased. Use the following variables: Quantity: Quantity of ith item purchased UP: Unit Price of ith item TotalAmnt: Total amount given to the shopkeeper TotalPrice: Total item purchased ReturnedAmnt: Amount to be returned by shopkeeper after deducting total price of the purchased vegetables and fruits. 16 Convert temperature from Celsius to Fahrenheit. Use the following variables: C: temperature in Celsius F: temperature in Fahrenheit • Problem 2 Find Area & Perimeter of square when the side length of square is given by the user. Problem 3 Find the cost of 24 pens when the cost of one pen is SR 12. Find the result of the equation: f(x) = { ● 13 -X, Problem 4 Check the given character is vowel or not. X, 14 x < 0 x ≥ 0 Problem 5 Calculate the roots of a quadratic equation: ax² + bx + c = 0 Note: the roots are: x1 = (-b + d)/2a and x2 = = (-b-d)/2a d = sqrt (b2 - 4ac), when b2 - 4ac is not negative, otherwise print "Roots are Imaginary" 15 Tutorials on Iterative (Loop) Operations • Problem 1 Mohammad goes to market for buying some fruits and vegetables. He is having a currency of SR 500 with him for marketing. From a shop he purchases 2.0 kg Apple priced SR 50.0 per kg, 1.5 kg Mango priced SR 35.0 per kg, 2.5 kg Potato priced SR 10.0 per kg, and 1.0 kg Tomato priced SR 15 per kg. He gives the currency of SR 500 to the shopkeeper. Find out the amount shopkeeper will return to Mohammad and also tell the total item purchased. Use the following variables: Quantity: Quantity of ith item purchased UP: Unit Price of ith item TotalAmnt: Total amount given to the shopkeeper TotalPrice: Total item purchased ReturnedAmnt: Amount to be returned by shopkeeper after deducting total price of the purchased vegetables and fruits. 16
Expert Answer:
Answer rating: 100% (QA)
The formula to convert Celsius to Fahrenheit is given by F C 95 32 By using thi... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
How does the interplay between semiotics and cultural hegemony influence the reception and interpretation of media artworks ?
-
Write a program that displays a table of the Celsius temperatures 0 through 20 and their Fahrenheit equivalents. The formula for converting a temperature from Celsius to Fahrenheit is where F is the...
-
Using the window shown in Figure 11.24 , write a temperature conversion program. To use this program, the user selects an option, types a temperature into the appropriate text box, and clicks the...
-
Use your answer to question 44 to compute the cumulative frequencies. Use the following prices of Swiss stocks to answer question. Question 44 Use your answer to question 43 to construct a tally...
-
In previously classes we discussed how ideas of colonialism have played a role in influencing the mythology of King Kong via the idea of white western explorers going too far off parts of the world...
-
A histogram of the connection time, in seconds, to an Internet service provider for 30 randomly selected connections is shown. The mean connection time is 39.007 seconds and the median connection...
-
Red Sky Delivery performs last-mile delivery services for online retailers such as Amazon. Red Sky employs delivery drivers who deliver packages to individual residence and business locations from a...
-
Higgins Company produced 50,000 units, 10,000 more than budgeted. Production data are as follows. Except for physical units, all quantities are in dollars. 1. Fill in the unknowns. 2. Give a brief...
-
Submit an annotated outline that includes thematic headings you have drawn from the literature on your topic. The outline must include at least four of the peer-reviewed research articles you found. ...
-
The owner of Neros company has hired you to analyze her company's performance and financial position, as well as the positions of Iits competitors, Centar and Xermix. However, the data Neros abtained...
-
(1) Suppose we have the multiple regression model of the form: Derive the ordinary least square estimate for the intercept using partial differentiation. Answers:
-
What role does the media play in the process of social control, especially regarding the construction and reinforcement of societal norms, the dissemination of moral panics, and the shaping of public...
-
Prompt 1: When developing an integrated marketing plan, what types of research and/or information about your client's target consumer should/can be gathered? How can it be obtained and in what ways...
-
Gentry Wholesalers accepts from Windsor Stores a $7,450, 4-month, 12% note dated May 31 in settlement of Windsor's overdue account. The maturity date of the note is September 30. What entry does...
-
4. What is the logic function presented by this circuit. (6 points) GROUND IS 'O' LOGIC. Io H H -2 H -3 P 4x1 Mux F
-
in2000 or more words writeabout your contribution to the final paper which the topic is Gangs Of America.Feel free to comment on the contributions as well. In your outline include meetings attended,...
-
The classified Balance Sheet will subsection the assets sectionas follows a. Other Assets and Property, Plantand Equipment b. Current Assets and Property,Plant, and Equipment c. Current Assets and...
-
Explain the circumstances that could result in a long-term bank loan being shown in a statement of financial position as a current liability.
-
The contents of a computers ROM are lost when the power is turned off. True or False
-
Imagine you are creating a new number system that uses 12 as the base. How many digits would be in your system? a. 11 b. 12 c. 13 d. This cannot be done
-
How many passes are made through the outer For loop? The following pseudocode, which is used to perform a selection sort in ascending order on the names "Wong", "Smith", "Johnson", "Gomez", "Draper",...
-
For the system shown in Figure P1.10, the angular displacement of the thin disk is given by \(\theta(t)=0.03 \sin \left(30 t+\frac{\pi}{4} ight)\) rad. The disk rolls without slipping on the surface....
-
The helicopter of Figure P1.9 has a horizontal speed of \(110 \mathrm{ft} / \mathrm{s}\) and a horizontal acceleration of \(3.1 \mathrm{ft} / \mathrm{s}^{2}\). The main blades rotate at a constant...
-
Figure P1.14 shows a schematic diagram of a one-cylinder reciprocating onecylinder engine. If at the instant of time shown the piston has a velocity \(v\) and an acceleration \(a\), determine (a) the...
Study smarter with the SolutionInn App