Need_More_Sleep
Need_More_Sleep
CC#
Created by Need_More_Sleep on 2/21/2024 in #help
Need Help With These 2 HW Questions.
Thanks.
22 replies
CC#
Created by Need_More_Sleep on 2/21/2024 in #help
Need Help With These 2 HW Questions.
is this correct? I'm not sure what to do with ans2 = (int)v1 + --v2 / (double)v3++;
22 replies
CC#
Created by Need_More_Sleep on 2/21/2024 in #help
Need Help With These 2 HW Questions.
double v1 = 45.7; double v2 = 10.5; int v3 = 5; // v1 += v1++; // --v2; double ans1; ans1 = (int)v1 + v2 / (double)v3; Console.WriteLine(ans1); // Question 3.1: Design a C# program that prompts the result (ans) of the following expression. double v1 = 45.7; double v2 = 10.5; int v3 = 5; // v1 += v1++; int ans2; ans2 = (int)v1 + --v2 / (double)v3++; Console.WriteLine(ans2);
22 replies
CC#
Created by Need_More_Sleep on 2/21/2024 in #help
Need Help With These 2 HW Questions.
It's due tonight soon and I haven't gotten a reply back from my Profressor.
22 replies
CC#
Created by Need_More_Sleep on 2/21/2024 in #help
Need Help With These 2 HW Questions.
Do you have any advise for me on how to do the 2 Questions, I think they want me to find the result using C#?
22 replies
CC#
Created by Need_More_Sleep on 2/21/2024 in #help
Need Help With These 2 HW Questions.
First, I'm confused about my HW premise, like not sure if they want to find the result using C# and in general how to create a code for this? Don't know what to do with v1 += v1++; --v2;
22 replies