[HELP] Programming Using C# - PINOYDEN


Go Back   PINOYDEN > PC Zone > Programming

Welcome to PinoyDen Forums.

You are currently browsing our forum as a guest, please consider registering to get full access to all of our forum features, download free games, get help for your pc and cellphone problems and learn new mobile tricks like how to browse the internet using your cellphone for free. All that and more, so what are you waiting for, JOIN us now!!!! Click here to register...
 Topic: [HELP] Programming Using C#  (Read 848 times)
0 Members and 1 Guest are viewing this topic.
Pages: [1]   Go Down
03-28-17 08:37 PM
  • Full Member
  • ***
  • Offline
 
Posts: 1486
Thank You: 437
Reputation: 2
Arnold_10 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
help po mga master panu to?

Create a program that accepts monetary value, based from the input determine how many thousand, 500,200,100,50,20,10,5 and 1.

Sample output:

Enter monetary value: 1597
1000 pesobill =1
500 pesobill =1
200 pesobill =0
100 pesobill =0
50 pesobill =1
20 pesobill =2
10 pesobill =0
5 pesobill =1
1 pesobill =2

pls po mga master
Reply #1
04-15-17 10:38 PM
  • Full Member
  • ***
  • Female Offline
 
Posts: 550
Thank You: 84
Reputation: 1
Pacifika has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
pwede mo po muna gawan ng if else statement dyan then sa loob po ng if else statement lagyan mo ng
condition which is the first thing your program needs to do is to divide the monetary value by the largest bill,,,for example
1597 divided by 1000 is equal to 1. something something something
or you can use modulos...
then kapag greater than 1 sya kuhain mo yung value at iminus mo sa monetary value
for example 1597 minus 1000 is equal to 597 then ganun ulit idivide mo ulit sa 500
if greater than sa 1 ulit iminus mo ganun lang paulit ulit
Reply #2
04-21-17 05:43 PM
  • Full Member
  • ***
  • Offline
 
Posts: 1486
Thank You: 437
Reputation: 2
Arnold_10 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Quote:
Originally Posted by : Pacifika on 04-15-17 10:38 PM
pwede mo po muna gawan ng if else statement dyan then sa loob po ng if else statement lagyan mo ng
condition which is the first thing your program needs to do is to divide the monetary value by the largest bill,,,for example
1597 divided by 1000 is equal to 1. something something something
or you can use modulos...
then kapag greater than 1 sya kuhain mo yung value at iminus mo sa monetary value
for example 1597 minus 1000 is equal to 597 then ganun ulit idivide mo ulit sa 500
if greater than sa 1 ulit iminus mo ganun lang paulit ulit
salamat bro . try ko
Reply #3
04-26-17 11:44 PM
  • Full Member
  • ***
  • Female Offline
 
Posts: 550
Thank You: 84
Reputation: 1
Pacifika has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
babae po ako
Reply #4
04-29-17 09:36 PM
  • Full Member
  • ***
  • Offline
 
Posts: 1491
Thank You: 150
Reputation: 1
Pnoy2014 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Quote:
Originally Posted by : Pacifika on 04-26-17 11:44 PM
babae po ako



Good one pacifica
Reply #5
05-16-17 08:59 PM
  • Newbie
  • Offline
 
Posts: 4
Thank You: 1
Reputation: 0
Pepeng_Malake has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace ConsoleApplication
{
    class Program
    {
        static void Main(string[] args)
        {
           
            int one_thousand,five_hundred,two_hundred,one_hundred,fifty,twenty,ten,five,one;
           
            Console.Write("Enter your money: ");
            int money = int.Parse(Console.ReadLine());
           
            one_thousand = money/1000;
            money %= 1000;
           
            five_hundred = money/500;
            money %= 500;
           
            two_hundred = money/200;
            money %= 200;
           
            one_hundred = money/100;
            money %= 100;
           
            fifty = money/50;
            money %= 50;
           
            twenty = money/20;
            money %= 20;
           
            ten = money/10;
            money %= 10;
           
            five = money/5;
            money %= 5;
           
            one = money/1;
           
           
            Console.WriteLine("1000 pesobill = {0}\n500 pesobill = {1}\n200 pesobill = {2}\n100 pesobill = {3}\n50 pesobill = {4}\n20 pesobill = {5}\n10 pesobill = {6}\n5 pesobill  = {7}\n1 pesobill = {8}",one_thousand,five_hundred,two_hundred,one_hundred,fifty,twenty,ten,five,one);
           
           
           
        }
    }
}

//easy di man lang ako nahirapan
Reply #6
05-18-17 09:22 AM
  • Full Member
  • ***
  • Offline
 
Posts: 1486
Thank You: 437
Reputation: 2
Arnold_10 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Quote:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace ConsoleApplication
{
    class Program
    {
        static void Main(string[] args)
        {
           
            int one_thousand,five_hundred,two_hundred,one_hundred,fifty,twenty,ten,five,one;
           
            Console.Write("Enter your money: ");
            int money = int.Parse(Console.ReadLine());
           
            one_thousand = money/1000;
            money %= 1000;
           
            five_hundred = money/500;
            money %= 500;
           
            two_hundred = money/200;
            money %= 200;
           
            one_hundred = money/100;
            money %= 100;
           
            fifty = money/50;
            money %= 50;
           
            twenty = money/20;
            money %= 20;
           
            ten = money/10;
            money %= 10;
           
            five = money/5;
            money %= 5;
           
            one = money/1;
           
           
            Console.WriteLine("1000 pesobill = {0}\n500 pesobill = {1}\n200 pesobill = {2}\n100 pesobill = {3}\n50 pesobill = {4}\n20 pesobill = {5}\n10 pesobill = {6}\n5 pesobill  = {7}\n1 pesobill = {8}",one_thousand,five_hundred,two_hundred,one_hundred,fifty,twenty,ten,five,one);
           
           
           
        }
    }
}

//easy di man lang ako nahirapan
salamat sa effort boss nagawa ko na po ito. naipasa na nga eh... salamat kay pacifica
Reply #7
05-20-17 10:13 AM
  • Jr. Member II
  • **
  • Female Offline
 
Posts: 225
Thank You: 25
Reputation: 0
angelofmercy has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
mas mahaba nga lang yong code na nagawa ko para dito kasi gumamit ako ng array at loop. walang modulos.

sadya ba na ang visual studio 2017 ay walang pang windows form? kasi nainstall ko naman lahat pero hindi ko makita ang pang windows form.
Reply #8
05-20-17 10:36 PM
  • Newbie
  • Offline
 
Posts: 4
Thank You: 1
Reputation: 0
Pepeng_Malake has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
kung student ka palang 2010 lang gamitin mo wag yan.
Pages: [1]   Go Up
 

All dates are GMT+8:00. The date now is 07-24-17 02:34 PM
WWW.PINOYDEN.COM.PH does not store any files on it's server, we are just indexing other sites contents!
WWW.PINOYDEN.COM.PH [Ang Tambayan ng pinoy!] copyright 2008-2009 All Rights Reserved.
Contents published on www.PinoyDen.com.ph requires permission for reprint.

Page created in 0.052 seconds with 21 queries.