Repeat Exercise P3.21, modifying the program so that it prompts for the frequency instead. Data from Exercise
Question:
Repeat Exercise P3.21, modifying the program so that it prompts for the frequency instead.
Data from Exercise P3.21,
Write a program that prompts the user for a wavelength value and prints a description of the corresponding part of the electromagnetic spectrum, as given in the following table.
Transcribed Image Text:
Electromagnetic Spectrum Туре Wavelength (m) Frequency (Hz) > 101 10- to 10 7x 107 to 103 4x 107 to 7x107 4x10* to 7.5x104 Radio Waves <3x10° Microwaves 3x 10° to 3 x 101 Infrared 3x 10' to 4x 1014 Visible light Ultraviolet 10 to 4 x 107 7.5x1014 to 3 x1016 X-rays 101 to 108 3x 1016 to 3 x 10!? Gamma rays <10-11 >3x1019
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 92% (13 reviews)
ANSWER include include int mainvoid double wavelength double freq ...View the full answer
Answered By
Aketch Cindy Sunday
I am a certified tutor with over two years of experience tutoring . I have a passion for helping students learn and grow, and I firmly believe that every student has the potential to be successful. I have a wide range of experience working with students of all ages and abilities, and I am confident that I can help students succeed in school.
I have experience working with students who have a wide range of abilities. I have also worked with gifted and talented students, and I am familiar with a variety of enrichment and acceleration strategies.
I am a patient and supportive tutor who is dedicated to helping my students reach their full potential. Thank you for your time and consideration.
0.00
0 Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Write a program that prompts the user for a wavelength value and prints a description of the corresponding part of the electromagnetic spectrum, as given in the following table. Electromagnetic...
-
Repeat Exercise P3.21, modifying the program so that it first asks the user whether the input will be a wavelength or a frequency. Data from Exercise P3.21, Write a program that prompts the user for...
-
Given in the following table are the tasks necessary for final assembly of a hospital bed, the length of time needed to perform each task, and the operations that must be completed prior to...
-
Jay Bhattacharya and Kate Bundorf of Stanford University have found evidence that people who are obese and who work for firms that provide health insurance receive lower wages than workers at those...
-
Assume that the waiting time X for an elevator is uniformly distributed between zero and six minutes. a. Write the formula for the probability curve of x. b. Graph the probability curve of x. c. Find...
-
A 1.5 m wide square footing is placed at 1 m depth within the ground where c' = 10 kN/m 2 , ' = 258, and = 18 kN/m 3 . Determine the ultimate bearing capacity of the footing using Terzaghis bearing...
-
If two or more firms were charging similar prices, what types of evidence would you look for to prove that this was collusion rather than mere coincidence?
-
Capital Corporation purchased 100 percent of Cook Company's stock on January 1, 20X4, for $340,000. On that date, Cook reported net assets with a historical cost of $300,000 and a fair value of...
-
5. On December 31, Shale Company received $4 per share cash dividend on the Stone Corporation stock (declared December 15). Interest receivable on the Container bonds is accrued on December 31. 6. At...
-
Steven owns and runs a store called Zodiac General Dealer. He allows goods to be sold on credit. Zodiac's year-end is 28 February. Steven went over all information pertaining to debtors to find out...
-
Explain the difference between an if/else if/else sequence and nested if statements. Give an example of each.
-
Give an example of an if/else if/else sequence where the order of the tests does not matter. Give an example where the order of the tests matters.
-
A Personal Fitness Tracker is a wearable device that tracks your physical activity, calories burned, heart rate, sleeping patterns, and so on. One common physical activity that most of these devices...
-
I am writing a Bachelor's thesis and I have collected data through qualitative interviews with 12 customers: 6 who prefer to buy groceries online and 6 who prefer to buy groceries in the physical...
-
What social need is fulfilled by the establishment of an urban garden. Use the market failure approache (externalities, public goods, imperfect information, etc) to justify. Details: your local...
-
A block of mass m = 14,6 kg is attached to the free end of a light string wrapped around a reel of radius R = 0, 38 m and mass M = 8,7 kg. The reel is a uniform disk and fixed on an axis about which...
-
Opening to trade expands an economy's consumption possibilities, so there is a way to make everybody better off. We see that trade makes off some people worse off, while others are made better off....
-
On January 1, 20X1 Shapiro and Sons, Inc. issued 9% bonds with a face value of $700,000 at a discount. The bonds yield 10%, pay interest annually, and were sold for $656,992. Shapiro and Sons, Inc....
-
On rare occasions, a chromosome can suffer a small deletion that removes the centromere. When this occurs, the chromosome usually is not found within subsequent daughter cells. Explain why a...
-
An example of prescriptive analytics is when an action is recommended based on previously observed actions. For example, an analysis might help determine procedures to follow when new accounts are...
-
For each function f (n) and time t in the following table, determine the largest size n of a problem P that can be solved in time t if the algorithm for solving P takes f (n) microseconds (one entry...
-
Given an n-element array X, Algorithm D calls Algorithm E on each element X[i]. Algorithm E runs in O(i) time when it is called on element X[i]. What is the worst-case running time of Algorithm D?
-
Al and Bob are arguing about their algorithms. Al claims his O(nlogn)-time method is always faster than Bobs O(n 2 )-time method. To settle the issue, they perform a set of experiments. To Als...
-
Respond to Acquiring the organization via equity rather than debt would have helped in the early stages of the development in an effort to reduce the worry of repayment of debt. Though there is a...
-
What are the linkages among financial decisions, return, risk and stock value for this firm? Samsung Electronics is a multinational company, which specializes in technology while focusing on...
-
What are the two primary objectives of Nevada's Gaming Commission (NGC) and its Gaming Control Board (GCB)? What are the responsibilities of the Gaming Control Board's Audit Division?
Study smarter with the SolutionInn App