I have written my first c# file. Basically what I have is someone puts in different ratings out of 10 (as doubles) for a product for things like taste, texture, presentation etc. I created a weighing system and rating the overall review automatically out of 10.
I used Math.Round
to round it up to the closest whole number.
I want to display the following line as the following output:
"Overall rating is 5/10 : *****"
Where the number of "*" displayed is automatically displayed as the overall rating calculated (as a whole number).
I have no idea how to do this final bit.
My final output line so far is:
Console.WriteLine("Overall rating is " + ratingRounded + "/10: ");
How would I display the "*" to equally be the same as ratingRounded
?
Sorry, I likely did a very bad job explaining it all (I tried my best!).
Thanks in advance.