+ 2

Anyone here knows about c++? Can you help me?

9th Feb 2021, 4:05 AM
Juven Perante Torres
Juven Perante Torres - avatar
24 Antworten
+ 14
Juven Perante Torres I think many knows but what is your problem?
9th Feb 2021, 4:06 AM
A͢J
A͢J - avatar
+ 12
Remember the key rule Don't ask to ask, just ask your doubt directly.
9th Feb 2021, 4:21 AM
Arsenic
Arsenic - avatar
+ 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?
9th Feb 2021, 5:48 AM
Juven Perante Torres
Juven Perante Torres - avatar
+ 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.
9th Feb 2021, 5:59 AM
A͢J
A͢J - avatar
+ 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.
9th Feb 2021, 5:54 AM
A͢J
A͢J - avatar
+ 4
C++ sir
9th Feb 2021, 6:11 AM
Juven Perante Torres
Juven Perante Torres - avatar
+ 3
How?
9th Feb 2021, 5:55 AM
Juven Perante Torres
Juven Perante Torres - avatar
+ 3
if you need help with C++, contact me.
11th Feb 2021, 1:45 AM
Patrick ONeil
Patrick ONeil - avatar
+ 2
Damot mo naman sir
9th Feb 2021, 6:09 AM
Juven Perante Torres
Juven Perante Torres - avatar
+ 2
Of course there's no problem.
9th Feb 2021, 8:14 PM
‎ Герман Папанов(הרמן פפנוב)‎
‎ Герман Папанов(הרמן פפנוב)‎ - avatar
+ 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😶
9th Feb 2021, 3:25 PM
trash
+ 1
just learn to code 4head
11th Feb 2021, 1:07 AM
Lardaneo
Lardaneo - avatar
0
You can see in nptel courses
10th Feb 2021, 1:55 AM
Shailender Kumar
Shailender Kumar - avatar
0
your problem solved?
10th Feb 2021, 2:52 PM
mohammad sadegh davodvandi
mohammad sadegh davodvandi - avatar
0
O my god😱
10th Feb 2021, 3:25 PM
ГЕНЕРАТОР
ГЕНЕРАТОР - avatar
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.😊
10th Feb 2021, 6:58 PM
Wilbur Jaywright
Wilbur Jaywright - avatar
0
you could also create a baseclass and some derived classes, which overwrite the getArea() function
10th Feb 2021, 10:12 PM
Oliver
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
12th Feb 2021, 12:47 PM
Abid Mumtaz
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.
12th Feb 2021, 12:49 PM
Abid Mumtaz
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
12th Feb 2021, 2:31 PM
Adeolu Oyewo
Adeolu Oyewo - avatar