0

I cant understand question when my teacher declare to create a program of he said i dont know what to do or what to use

I cant understand question and I don't know what to do c++ problem

2nd Jul 2017, 2:16 AM
Van Jovic T Jalon
Van Jovic T Jalon - avatar
1 Respuesta
+ 1
There are five main ingredients in the programming process: 1.Defining the problem:- When u get a question or a program split it into parts and understand what u have to do. Suppose u have a question (Find the tax paid by a person by getting the salary from the user?) . Split this into parts and understand what you have to do . First u have to take the data from the user and secondly find the tax amount and lastly display the tax paid. 2.Planning the solution : - Think in your mind what all you need to achieve your goal of the program .Here u need to find the tax so you need to get the rate as well and need the formula of percentage . Or take another example where you have to find the distance from speed and time . you need the values of speed and time and then calculate distance from it . 3.Coding the program:- Here u need to declare variables for containing you values and functions for finding your results . Put them together and ta-da your code is ready 4.Testing the program:- Run the code in an IDE and remove the errors if it has any. 5.Documenting the program:- You have successfully completed your work.
2nd Jul 2017, 4:32 AM
Nirmal Kumar Bhakat
Nirmal Kumar Bhakat - avatar