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...
-
Consider a spiral galaxy that is moving directly away from Earth with a speed V = 3.240 105 m/s at its center, as shown in FIGURE 25-40. In figure 25-40 The galaxy is also rotating about its center,...
-
Suppose you are still committed to owning a $150,000 Ferrari (see Question 9). If you believe your mutual fund can achieve a 10.25 percent annual rate of return, and you want to buy the car in 10...
-
Equipment costing \($29,000\), with a scrap value of \($5,000\) was purchased on January 1, by Global Communications, Inc. The estimated useful life of the equipment was four years and it was...
-
On May 10, Rose Company sold merchandise for $4,000 and accepted the customers First Business Bank MasterCard. At the end of the day, the First Business Bank MasterCard receipts were deposited in the...
-
Vaughn County Bank agrees to lend the Carla Vista Brick Company $432000 on January 1. Carla Vista Brick Company signs a $432000, 4%, 7-month note. What is the adjusting entry required if Carla Vista...
-
Peter Daly operates a photo printing centre in Whitehorse. All transactions requiring the payment of cash are recorded in the cash payments journal (page 5). The account balances as of May 1, 2016,...
-
List sources of stress in the workplace that can lead to unsatisfied employees and possible union organization. Consider approaches to relieve stress and achieve a balance in work and family life....
-
The vice-president of marketing and director of human resources have proposed that the company change its compensation of the sales force to a commission basis rather than paying a fixed salary....
-
Hi there, Well done! Congratulations for the work you are completing throughout Work Health and Safety Week. Throughout the week there have been some instances that have occurred at the service...
-
The comparative balance sheet of Whitman Co . at December 3 1 , 2 0 Y 2 and 2 0 Y 1 , is as follows: Dec. 3 1 , 2 0 Y 2 Dec. 3 1 , 2 0 Y 1 Assets Cash $ 5 7 2 , 3 7 0 $ 6 1 5 , 9 5 0 Accounts...
-
Evaluate 6x + 3y - 9, when x = 6 and y = 2.
-
Suppose I claim that a small tax increase on upper income individuals (from a 37% to 40% marginal rate for people with income over $500,000) will raise $200 billion of federal government revenue over...
-
A repairman moves between 4 sites, with site 1 denoting home office, and 2, 3, and 4 denoting remote sites. Work at sites 2,3, and 4 requires the use of an equipment trailer. The cost of relocating...
-
Given find the value of k. es 1 e kx dx = 1 4'
-
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",...
-
Let the random variable \(X\) have pdf \[ f(x)= \begin{cases}\frac{1}{2} x, & 0 \leqslant x <1 \\ \frac{1}{2}, & 1 \leqslant x \leqslant \frac{5}{2}\end{cases} \] Simulate a random variable from...
-
A simple acceptance-rejection method to simulate a vector \(\boldsymbol{X}\) in the unit \(d\)-ball \(\left\{\boldsymbol{x} \in \mathbb{R}^{d} ight.\) : \(\|x\| \leqslant 1\}\) is to first generate...
-
We can modify the Box-Muller method in Example 3. 1 to draw \(X\) and \(Y\) uniformly on the unit disc, \(\left\{(x, y) \in \mathbb{R}^{2}: x^{2}+y^{2} \leqslant 1 ight\}\), in the following way:...
Study smarter with the SolutionInn App