Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions

Question

What magazine and ads did you choose to examine?

Answered: 1 week ago