I really need help with a really simple coding. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I really need help with a really simple coding.

The question is: The sine of an angle can be comouted from the following infinite series (given an equation). The equation to find sine and factorial is as follows: (given an equation). I’m asked to write a program that the user can enter an angle in degree, convert the angle to rad and display the sine of the angle (given a formula to convert from deg to rad)

25th Oct 2019, 12:56 PM
Arisya
6 Answers
+ 3
Thing is: Assignments like these don't come out of nowhere. Did your teacher give you this? Then he/she probably gave you lessons and study material before. Teachers usually don't force you to do stuff that you can't solve with a little bit of effort and a little google legwork. Studying our tutorials here will definitely give you what you need.
25th Oct 2019, 1:36 PM
HonFu
HonFu - avatar
+ 2
Your attempts ?
25th Oct 2019, 12:58 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 1
First start the C++ course here, at least the basics (data types, functions...)
25th Oct 2019, 1:03 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 1
Arisya no, first you define functions fact and sine of x, then in the main function you call them and put the input as parameter. You put the formulas inside the functions themselves.
25th Oct 2019, 1:30 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
The thing is I don’t even know how to start! I tried google, read from my lecture slide. But I still don’t have any idea how to start 😭😭😭
25th Oct 2019, 1:00 PM
Arisya
0
The question asks to find sine x and factorial so do i have to put the formula and equation into the input?
25th Oct 2019, 1:27 PM
Arisya