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

  Define class and objects

Is there any way a single programmer (for example, a student working alone on a programming assignment) can benefit from some of the ideas behind the inspection process? Explain the difference between C++ struct and class

  What is the value of bsame

What is the value of bSame and why?

  Create class having constructor to recieve two ints

Create a class (in C++)named Card. The class should have two int data members named face and suit.The class should have a constructor that recieves the two ints and uses them to initialize the data members.

  Write programs to play a card game

You will write two programs to play a card game ("clubs"). A separate document describing the rules of "clubs" will be provided.The first program (clubber) will listen on its stdin for information about the game and give its moves to stdout.

  Create a vector class implementing a number of vector

Create a Vector class incorporating the following features

  Mechanism to achieve secure key exchange

In 1976 Diffie and Hellman have suggested their famous protocol for key exchange based on number theory. More recently (around 2002) I. Kanter, W. Kinzel and E. Kanter [1] proposed to use neural networks synchronization by mutual learning as the m..

  Take an n x n matrix, and create a new, (n-1) x (n- 1)

take an N x N matrix, and create a new, (N-1) x (N- 1), matrix with each element being the sum of four nearby elements. You need to figure out a way to break the matrix up into squares and iterate through the matrix, while staying within its bounds.

  Create a program that maintains the required book catalog

create a program that maintains the required book catalog for the circulation desk of a library. the book catalog is to

  Defines the graphic objects in a scene

The first project involves adding several classes to a skeleton project, which reads in a scene definition file that defines the graphic objects in a scene and creates those objects.

  Describe the class structure of c++ programming

Describe the class structure of C++ programming. What are the key contents of classes?

  Design a cruiseship class that is derived from ship class

SEN 970 Object-Oriented Programming in Objective-C. Demonstrate the classes in a program that has an array of ship pointers. The array elements should be initialized with the addresses of dynamically allocated Ship, CruiseShip and CargoShip objects..

  The average cost to attend the university

After deducting grants based on need, the average cost to attend the University of Southern California is $27,175. Assume the population standard deviation is $7400. Suppose that a random sample of 60 USC students will be taken from this populatio..

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