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...
-
In a technique used for surface analysis called Auger electron spectroscopy (AES), electrons are accelerated toward a metal surface. These electrons cause the emissions of secondary electronscalled...
-
For each data set, indicate whether the data are discrete or continuous. a. Measurements of the time it takes to walk a mile b. The numbers of calendar years (such as 2013, 2014, 2015) c. The numbers...
-
OBrien, Inc., is authorized to issue $3,600,000 in bonds on June 1. The bonds carry a face interest rate of 9 percent, which is to be paid on June 1 and December 1. Prepare journal entries to record...
-
Please make python file runMe.py and make 1- welcome user, what's your name? And then said "Hi mina, nice to meet you. I'm mike, your math assistant." Please enter any number and I will tell you if...
-
How is a production function affected by the invention of a new process related to it? Can this change results in lower prices to the consumer? What do you think? Do improvements in technological...
-
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.
-
Augment your stats.html page so that, in addition to displaying the counts for each dice total, the page also represents the counts as percentages of the total number of rolls. To compute each...
-
THIS CLASS IS INTERCULTURAL COMMUNICATION. DIRECTIONS: you are introduced to the "Staircase Model" . Explain where you think you fall on the model and why. Give examples from your life. Conscious...
-
In S , the two ends of the rod ( A and B ) hit the ground simultaneously. According to the observer in S , one end of the rod hits the ground before the other end. What is the time interval between...
-
4) A person drives 200miles West for 4hrs and then goes 160mi at 240 degrees for 2.5 hrs. Determine the distance, displacement, average speed and average velocity of the car. Note find distance and...
-
.The distance from the Earth to the Moon is 3.8x105 kilometers. A student notes that when he stands 10.8 meters away from a pole of diameter 10 cm, the pole just obscures the view of the full moon....
-
Find at least one recent (within the last 5 years) and credible article discussing effective verbal and nonverbal communication and/or effective verbal and nonverbal delivery during a presentation....
-
Based on XPort Industries' data in Exercise 23-20 assume that a transfer price of $190 has been established and that 60,000 units of materials are transferred, with no reduction in the Components...
-
Feller Company purchased a site for a limestone quarry for $100,000 on January 2, 2019. It estimate that the quarry will yield 400,000 tons of limestone. It estimates that its retirement obligation...
-
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...
-
What are the prospects and challenges associated with the concept of sustainable urbanization, and how can interdisciplinary approaches integrating urban studies, environmental science, economics,...
-
Lyson Intl is closer to making a decision to purchase cash registers for its business operations from United Kingdom. The cost of cash registers is 77,350 British pounds. Approximately, how much in...
-
What are the underlying drivers and demographic trends fueling urbanization, and how do factors such as migration, industrialization, and globalization contribute to the unprecedented urban expansion...
Study smarter with the SolutionInn App