Question: Hello, I keep getting zero out of 100 when running my C# project. why? Can someone look into my pictures and tell me what will

Hello, I keep getting zero out of 100 when running my C# project. why?

Can someone look into my pictures and tell me what will I need to do ... Thanks

Hello, I keep getting zero out of 100 when running my C#

project. why? Can someone look into my pictures and tell me what

Write a program named MakeChange that calculates and displays the conversion of an entered number of dollars into currency denominations-twenties, tens, fives, and ones. For example, if 113 dollars is entered the output would be twenties: 5 tens: 1 fives: 0 ones: 3. Grading When you have completed your program, click the Submit button to record your score. Programming Exercise 2-10 Tasks + > Terminal MakeChange.cs 1 using System; Enter the number of dollars: Correct currency denominations output 3 class MakeChange 0.00 out of 10.00 static void Main() twenties:2 tens:0 fives:0 ones: 0 O out of 2 checks passed. Review the results below for more details. int twenties, tens, fives, ones; Checks Console.WriteLine("Enter the number of dollars:"); int dollars = Convert.ToInt32 (Console.ReadLine()); Test Case Incomplete Correct currency denominations output case 1 twenties = dollars / 20; dollars = dollars % 20; Test Case Incomplete Correct currency denominations output case 2 tens = dollars / 10; dollars = dollars % 10; fives = dollars / 5; dollars = dollars % 5; ones = dollars / 1; Console.WriteLine(" twenties:" + twenties); Console.WriteLine("tens:"+ tens); Console.WriteLine("fives:" + fives); Console.WriteLine("ones:" + ones); } Run Checks Submit 0%

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!