Develope problem-solving skills and declaring variables

Assignment Help C/C++ Programming
Reference no: EM131321637

Assignment

Goals: Developing problem-solving skills, declaring variables, multi-way branches, data validation.

Problem: Complete Programming Challenge 4.19 in your text book. Do not accept values larger than 10 meters or smaller than 1 x 10-20 meters as input for the wavelength (check with a "simple" or "single-branched" if and ask the user to re-enter if his/her input if it is out of range. In addition to category of the wave also output the frequency and energy of the wave given the formula λν = c where λ is the wavelength (m), ν is the frequency, and c is the speed of light in a vacuum (3 x 108 m/sec) and the formula E = hν where E is the energy (J), h is Plank's constant (6.626 x 10-34 J s), and ν is the frequency (s-1). Note to enter values in scientific notation list the value followed by e and the power of 10.

For example you could declare a constant for the value of Plank's constant with the C++ statement const double Plank = 6.626e-034; Remember to introductory comments including your name and section number, the purpose of the program (with enough detail so someone reading your comments would not need to look for any information elsewhere), input, output, and processing specified. Attach your source code file to the appropriate drop box on ANGEL and take the time to confirm your submission.

Reference no: EM131321637

Questions Cloud

Identify the needs and basic elements in data warehousing : From your research, identify the needs, basic elements, and trends in data warehousing. Discuss how approaches to collecting data warehouse requirements can help the chosen organization in the decision-making process
Acceleration of a modified at wood machine : What is the magnitude of the acceleration of a modified Atwood machine if the mass of the cart is8kgand the hanging mass is15kg? (Useg= 9.8 m/s2.Express your answer to one decimal point.)
What are the differences in plant assets : What are the differences among valuation, depreciation, amortization, and depletion? Is it appropriate to calculate depreciation using two different methods? Why - What is the straight-line method of amortizing discount and premium on bonds payable..
Find the torque acting on the beam : Astudent builds a11.0m long beam that rotates about an axis at one end (see figure below). Its moment of inertia is 3540 kg.m2. When the studentapplies a forceFto the other end of the beam,the beam's angular acceleration is 3.10 rad/s2(ignore grav..
Develope problem-solving skills and declaring variables : Developing problem-solving skills, declaring variables, multi-way branches, data validation. Do not accept values larger than 10 meters or smaller than 1 x 10-20 meters as input for the wavelength.
Discussion on ethical considerations : Find one additional article related to the week's topic on your own - Address why you trust or distrust all or a part of each article. If you distrust all or a part of an article, discuss how it affected your thinking on a topic.
Use it for future capital budgeting projects : Assume today is December 31, 2013. Barrington Industries expects that its 2014 after-tax operating income [EBIT(1 – T)] will be $440 million and its 2014 depreciation expense will be $70 million. The firm has no preferred stock on its balance sheet a..
How queries can be used as a data source : You have been asked to provide training for the newly hired staff of the oncology department. Prepare a PowerPoint presentation that you will use in your training. The presentation must cover the following: Creating, appending, updating, and deleti..
Period of motion for small angles theta : A uniform disc of radius R=10 and mass M=0.5 kg is attached to the end of a uniform rigid rod of length L=1.0 m and mass m=0.5 kg. When the disc is suspended from a pivot as shown in fig, what will be the period of motion for small angles theta?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  During the execution of the above code, how many instru

(a) During the execution of the above code, how many instructions are executed? (b) Assuming a standard unicycle machine (CPI = 1) running at 100 KHz, how long will the above code take to complete?

  Generate a random number

Generate a random number between 1 – 5 and 3 – 8 for express and normal lanes, respectively. This represents the arrival time of the first customer into each lane. Set the variable for total time elapsed to 0.

  International space station

Let's say you own a company that makes bolts that are used on the International Space Station! These bolts have very specific requirements but two of the most important requirements are strength and heat resistance. NASA says that you must have a ..

  Program that reads in the average monthly

Write a program that reads in the average monthly rainfall for a city for each month of the year and then reads in the actual monthly rainfall for each of the previous 12 months. The program then prints out a nicely formatted table showing the rainfa..

  Write a program to generate a table of conversions

Write a program to generate a table of conversions from Fahrenheit to Kelvin for values from 0 F to 200 F. Allow the user to enter the increment in degrees Fahrenheit between lines. Use a (do while loop) in your solution.

  Dq development of training.

What are some of the different factors that we should consider when designing a training program? Discuss how user documentation can be used in the development of training. What other factors, such as organizational constraints, should we consider..

  Determines and displays what the amount of his gross pay

Write a program that determines and displays what the amount of his gross pay will be for each pay period if he is paid twice a month (24 pay checks per year) and if he paid bi-weekly.

  Write a template function for the class called add15()

write a template function greater() that adds the two numbers in the parameter list and divides the sum by the greater or the two numbers and display the result

  Two-dimensional array to compute the polar coordinates

Write a C program that will read from the input file the time, the x-coordinate, and the y-coordinate values into a two-dimensional array. The program will use the two-dimensional array to compute the polar coordinates.

  Uses classes with linked list

Turning a work in C++ that uses classes with a linked list to a no classes project

  Use the generate dropdown to create c++ code

use the generate dropdown to create example C++ code based on your working logical flow chart to see what the code would look like.

  Explain strings are an important part of programming

Strings are an important part of programming. They are used to transfer all sorts of data between the user and program, as well as from program to program. Humans communicate with streams because they are flexible enough to encode words and vari..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd