C
C#β€’2y ago
daniel1

❔ need help with school work

Write an operation that will receive 3 integers between 0 and 100 inclusive representing the student's grades. The operation will return the number of grades greater than 90
26 Replies
Denis
Denisβ€’2y ago
Sorry to say man, but nobody's gonna solve your homework for you. However, we can guide you to the solution, only you'll have to do the programming For anyone to help you with this task, more context is necessary. Is this supposed to be a console application? What are the three input numbers representing? Where is the student data being retrieved from? Please provide all of the context - help us help you
Haze.
Haze.β€’2y ago
A good idea would also be to send your attempt at this
daniel1
daniel1OPβ€’2y ago
i got the first part done thenks to the help of a british guy but i am very confused by the second part
Kouhai
Kouhaiβ€’2y ago
What part?
daniel1
daniel1OPβ€’2y ago
Write a program section that will receive the number of students who took the screening test. The program section will print the names of all the first students to participate in the national competition. The program section will also count and print the number of students who are allowed to participate in the national competition
Kouhai
Kouhaiβ€’2y ago
What part is confusing you?
daniel1
daniel1OPβ€’2y ago
my program only loops once and then its over i need an infinte loop that also gives answeres instantly insted of making it wait till the end of the loop
Kouhai
Kouhaiβ€’2y ago
Show your code ThumbsUpSmile
daniel1
daniel1OPβ€’2y ago
Haze.
Haze.β€’2y ago
that should work for part 1, now where's the code for part 2?
Kouhai
Kouhaiβ€’2y ago
First off, the requirements say
Write a program section that will receive the number of students who took the screening test
In your example you're hardcoding the number of students to by just three
daniel1
daniel1OPβ€’2y ago
exactly
Haze.
Haze.β€’2y ago
as i said, the code shown should work for the first part, have you even attempted part 2?
daniel1
daniel1OPβ€’2y ago
Write a program that performs the following tasks Printing the minimum number and the maximum number in the array Printing the number of appearances of the maximum number in the array Printing the designators of the array cells equal to the maximum number in the array
Haze.
Haze.β€’2y ago
what are you on about?
daniel1
daniel1OPβ€’2y ago
its for pepole in the vc with me
Haze.
Haze.β€’2y ago
oh
Milenov
Milenovβ€’2y ago
are you sure you wannt go with the built in algorhytms ? it seems to me like you should write one of your own a bubble sort algorhytm is nice and relative easy for starters
Memsworth
Memsworthβ€’2y ago
I think it's your basic programming class @Milenov not a data structure class
Milenov
Milenovβ€’2y ago
seems that way indeed. That's why i'm saying it but it's a nice brainer for begginers. just to understand as well how the thing work in the background.
Memsworth
Memsworthβ€’2y ago
You aren't wrong @Milenov. We did suggest that in the beginning. However, he went with the linq approach
Milenov
Milenovβ€’2y ago
alright then πŸ™‚ it was merely a suggestion from me as well πŸ™‚
Memsworth
Memsworthβ€’2y ago
I am with on you on that one
Milenov
Milenovβ€’2y ago
@daniel1 here is teaser for you! Sum the following two numbers 37107287533902102798797998220837590246510135740250 46376937677490009712648124896970078050417018260538 It's from project euler just the first two numbers. in the original problem one should some 100, 50 digit long numbers
daniel1
daniel1OPβ€’2y ago
Write a program that performs the following tasks Print the average of the values ​​in the array Printing the number of values ​​in the array whose value is different from the proposed one
Accord
Accordβ€’2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server