Giter Club home page Giter Club logo

cop2360's People

Contributors

ikemtz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cop2360's Issues

case problem 4-2 didn't seem to work for what I was using it for

so here is my version sorry for the mess was writing this at 5 am

using System;
using static System.Console;
using System.Globalization;
class MarshallsRevenue
{
   static void Main()
   {
    int INTERIORPRICE = 500;
    int EXTERIORPRICE = 750;
    int numInterior;
    int numExterior;
    int Interior;
    int Exterior;
    int total;
    bool isInteriorGreater;
    Write("Enter the month: ");
    int month = int.Parse(ReadLine());
    Write("Enter the number inerior murals scheduled: ");
    numInterior = int.Parse(ReadLine());
    Write("Enter the number of exterior murals sceduled: ");
    numExterior = int.Parse(ReadLine());
     if (month == 12 || month == 1 || month == 2)
        {
            numExterior = 0;
        }
    if (month == 4 || month == 5 || month == 9 || month == 10)
    {
                EXTERIORPRICE = 699;
    }
    if (month == 8 || month == 7)
    {
                INTERIORPRICE = 450;
    }
    Interior = numInterior * INTERIORPRICE;
    Exterior = numExterior * EXTERIORPRICE;
    total = Interior + Exterior;
    isInteriorGreater = numInterior > numExterior;
    WriteLine("{0} interior murals are scheduled for a total of {2}", numInterior, INTERIORPRICE.ToString("C"), Interior.ToString("C", CultureInfo.GetCultureInfo("en-US")));
    WriteLine("{0} exterior murals are scheduled for a total of {2}",numExterior, EXTERIORPRICE.ToString("C"), Exterior.ToString("C", CultureInfo.GetCultureInfo("en-US")));
    WriteLine("Total revenue expected is {0}", total.ToString("C", CultureInfo.GetCultureInfo("en-US")));
    WriteLine("It is {0} that there are more interior murals scheduled than exterior ones.", isInteriorGreater);
        
   }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.