🎁BACK-TO-SCHOOL DEAL. Subscribe Now to get 40% OFF at only 8.49 USD/month, only valid until Sep 30th, 2024

Question

100.0 % 40 in C++?

Asked By TwilightSerenade45 at

Answered By Expert

Scott

Expert · 5.9k answers · 5k people helped

I\n#include<iostream>\n#include<string>\nusing namespace std:\nint main() (\ncout << (100.0 % 40);\nreturn 0:\nmpile Log Debug\nFind

Explanation

Because %(the modulus operator) is only defined for integer data types.

this operator is not defined for double type.

same result will come for bitwise operators like "&,^,|,~,<<,>>" .

 

If You want to overcome this problem. you can use fmod

#include<iostream»\n1\n#include< string>\n3\n2\n#include<math.h>\nstd;\n外\nusing namespace %i31:,\n5\nint main()(\n6\n7\n8\ncout << fmod(10

 

🧑‍🏫 More Questions

4. Starfish Corporation, in preparation of its December 31, 2017, financial statements, is attempting to determine the proper accounting treatment for each of the following situations. 1. As a result of uninsured accidents during the year, personal injury suits for $261,000 and $697,000 have been filed against the company. It is the judgment of Starfish's legal counsel that an unfavorable outcome is unlikely in the $261,000 case but that an unfavorable verdict approximating $410,000 will probably result in the $697,000 case. 2. Starfish's deep sea exploration division consisting of operations in the Marina Trench is uninsurable because of the special risk of injury to employees and losses due to high pressure. The year 2017 is considered one of tipesafest (luckiest) in the division's history because no loss due to injury or casualty was suffered. Having suffered an average of two casualties a year during the rest of the past decade (ranging from $25,000 to $1,000,000), management is certain that next year the company will probably not be so fortunate. 3. Starfish Corporation owns a subsidiary in a foreign country that has a book value of $21,600,000 and an estimated fair value of $30,890,000. The foreign government has communicated to Starfish its intention to expropriate the assets and business of all foreign investors. On the basis of settlements other firms have received from this same 3. Starfish Corporation owns a subsidiary in a foreign country that has a book value of $21,600,000 and an estimated fair value of $30,890,000. The foreign government has communicated to Starfish its intention to expropriate the assets and business of all foreign investors. On the basis of settlements other firms have received from this same country, Starfish expects to receive 60% of the fair value of its properties as final settlement. Instructions (a) Prepare the journal entries that should be recorded as of December 31, 2017, to recognize each of the situations above. (b) Indicate what should be reported relative to each situation in the financial statements and accompanying notes. Explain why.

Laboratory Review 5 I. How is "produces" represented in a chemical reaction? 2. Are the substrates in an enzymatic reaction reactants or products? 3. What is the name of the location on an enzyme where its substrate or substrates bind? 4. What cellular organelle contains catalase and is present in all plant and animal organs? S. What did measuringthe bubble column heights i al th experimental procedures indicate? 6. What purpose did the tube containing water and hydrogen peroxide serve in the catalase activity experimental procedure? 7. What word describes the loss of an enzyme's original shape and ability of its active site to function? 8. What happens to enzyme activity if the temperature increases slightly? 9. What did the negative control tube lack when the effect of enzyme concentration was studied? 10. If cells produce more catalase, will there be more or less water and oxygen produced from the breakdown of hydrogen peroxide by catalase? 11. What word describes the pH at which the speed of a reaction involving an enzyme 12. What do changes in pH (too low or too high) do to an enzyme that reduce its activity? 13. In the Experimental Procedure on the effect of pH on enzyme activity, which tube 14. Since enzymes are specific for certain substrates and often have similar names, what occurs best? contained water with an acidic pH? is the name of the enzyme used in tube 3 of the catalase activity experiment that facilitates the breakdown of sucrose? racilitates the breakdown of sucrose? Thought Questions 15. People with Crohn's disease may develop lactose intolerance caused by damage to their small intestine. These people may take a commercial product called Lactaid to prevent digestive upset when consuming dairy products What is in Lactaid about the specificity of enzymes for substrates in this lab. that helps these people avoid those symptoms? Explain how this relates to what you learned 16. High-grade fevers (in humans, 103°F or higher) are of concern, and medical care should be obtained. Explain why, based on your understanding of enzyme function. creatic amylase is a digestive enzyme that digests starch in the small intestine. Pancreatic amylase's optimum pH is slightly basic, which the presence of NaHČO, provides. Indicate which test tubes (1-3) would show digestion of starch following incubation. Explain why the others would not. Tube 1water, starch 17. Pan Tube 2 water, starch, pancreatic amylase, HCI Tube 3 water, starch, pancreatic amylase, NaHCO

Experiment 23 Advance Study Assignment: Determination of the Equilibrium Constant for a Chemical Reaction A student mixes 5.00 mL 2.00 × 10-"M FeNO), in l M HNO, with 3.00 mL 2.00 x 10-1 M KSCN and 2.00 mL of water. She finds that in the equilibrium mixture the concentration of FeSCN2+ is 7.0 × 10 Find K. for the reaction Fee (aq) + SCN-(aq)·n FSC02+ (aq). 1. 5 M. Step 1 Find the number of moles Fe and SCN" initially present. (Use Eq. 3.) IL 1moles Femoles SCN Step 2 How many moles of FeSCN are in the mixture at equilibrium? What is the volume of the equi- librium mixture? (Use Eq. 3.1 IL How many moles of Fe and SCN" are used up in making the FeSCN+ Step 3 How many moles of Fe" and SCN remain in the solution at equilibrium? (Use Eq. 4 and the results of Steps I and 2.) Step 4 What are the concentrations of Fe", SCN , and FeSCN at equilibrium? (Use Eq. 3 and the results of Step 2 and Step 3.) OIL 0.01L 001L Step 5 What is the value of K, for the reaction? (Use Eq. 2 and the results of Step 4) x 10 5 (9.3 x 0.9(53 x K,-142 142.6 ) (continued on following page) 94 Experiment 23 Detemination 2. Opsional Assume that the reaction studied in Problem 1 isFe (aq)+2 SCN (aq) of the Equilibrium Constant for a Chemical Reaction e(SCN), "(aq) Find K, for this reaction, given the data in Problem I. Formulate the expression for K, for the alternate reaction just cited. b Find K, as you did in Problem I: take due account of the fact that two moles SCN are used up per mole Fe(SCN) formed as you carry out the following calculations: Step 1 Results are as in Problem 1 Step 2 How many moles of Fe(SCN) are in the mixture at equilibrium? (This will be the same as in Problem 1.) moles Fe(SCN)2 How many moles of Fel" and SCN are used up in making the FerSCN),"7 moles Fe"; moles SCN Step 3 How many moles of Fe3 and SCN remain in solution at equilibrium? Use the results of Steps 1 and 2, noting that moles SCN at equilibrium original moles SCN -(2 X moles Fe(SCN)2) moles Fe";moles SCN Step 4 What are the concentrations of Fe, SCN. and Fe(SCN)2 at equilibrium? (Use Eq. 3 and the results of Step 3.) M: [Fe(SCN)2+1- M Step 5 Calculate K, based on the assumption that the alternate reaction occurs.(Use the answer to Part 2a.)