+ 2
Anyone here knows about c++? Can you help me?
24 Antworten
+ 14
Juven Perante Torres
I think many knows but what is your problem?
+ 12
Remember the key rule
Don't ask to ask, just ask your doubt directly.
+ 6
Create a program that allows the user to select a shape he/she wants to compute the area. The program should accept either a lowercase or uppercase.
Note: Area should be presented in two decimal places.
Sample Output:
Area of Shapes
[S] – Square
[C] – Circle
[T] – Triangle
[R] – Rectangle
Enter your choice: s
Enter side:5
Area is: 25
How To Create This?
+ 6
Juven Perante Torres If I will tell you everything then how you will learn coding? Try self and share your code if you get any problem.
+ 4
Juven Perante Torres
Create function for each shape which will return area and use switch case to decide which function should call on the basis of user's choice.
+ 4
C++ sir
+ 3
How?
+ 3
if you need help with C++, contact me.
+ 2
Damot mo naman sir
+ 2
Of course there's no problem.
+ 1
Juven Perante Torres
Just look at the navigator bar at the bottom of your screen and click "learn"...
Walang madamot dito basta paliwanag kalang ng maayos😶
+ 1
just learn to code 4head
0
You can see in nptel courses
0
your problem solved?
0
O my god😱
0
use the Find My Friends feature in the SoloLearn app to look for people in your area who you might actually know in person that also use SoloLearn.😊
0
you could also create a baseclass and some derived classes, which overwrite the getArea() function
0
Can you post your example class code with your main function in it so we can help you walk through this ...I assuming you have already started writting a C++ class or function
0
But I think the team are right Solo learn is an excellent resource to learn for yourself the basics of C++. Have you tried the tutorial yet for simple functions.
0
Juven Perante Torres use a switch case statement that responds based on the users input. If the user puts in c for circle it won't ask for sides. Then process what to do based on the input given and give your answer. Not that it must be case insensitive