ikemtz / cop2360 Goto Github PK
View Code? Open in Web Editor NEWCourse Work For course COP2360
License: MIT License
Course Work For course COP2360
License: MIT License
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);
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.