Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

how do i fix my code to properly display the output. i need a space between 40 and interior and 25 and exterior In Chapter

how do i fix my code to properly display the output. i need a space between 40 and interior and 25 and exterior
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
In Chapter 1, you created two programs to display the motto for Marshall's Murals. Now write a program named MarshallsRevenue that prompts a user for the number of interior an exterior murals scheduled to be painted during the next month. Compute the expected revenue for each type of mural. Interior murals cost $500 each, and exterior murals cost $750 each. Also display the total expected revenue and a statement that indicates whether more interior murals are scheduled than exterior ones. An example of the program is shown below: Enter number of interior murals scheduled Enter number of exterior murals scheduled >1 3 interior murals are scheduled at $500.00 each for a total of $1,500.00 1 exterior murals are scheduled at $750.00 each for a total of $750.00 Total revenue expected is $2,250.00 It is True that there are more interior murals scheduled than exterior ones. Use the output structure displayed above in your program's output. in order to prepend the Sto currency values, the program will need to use the CultureInfo, GetCul ture Info method. In order to do this, include the statement Use the output structure displayed above in your program's output. In order to prepend the $ to currency values, the program will need to use the CultureInfo. GetCultureInfo method. In order to do this, include the statement using System.Globalization; at the top of your program and format the output statements as follows: Writeline("This is an example: {0} ", value.Tostring ("C") CultureInfo. GetCultureInfo("on-US"))): Enter number of interior murals scheduled Enter number of exterior murals scheduled>? 40 interior murals are scheduled at $500.00 each for a total of $20,000.00 25 exterior murals are scheduled at $750.00 each for a total of $18,750.00 Total revenue expected is $38,750,00 It is True that there are more interior murals scheduled than exteriof ones. 1 using System; using static System. Console; using System.Globalization; class MarshallsRevenue f static void Main() f. Writeline("Enter number of interior murols scheduled > "); int interiorMurals Convert. ToInt32(ReadLine( )): Writeline("Enter number of exterior murals scheduled >>1 ): int exteriorMurals= Convert. ToInt32(ReadLine()): Int interiorRevenue = interiorMurals*500; int exteriorRevenue=exteriorMurals*750; int totalRevenue= interiorRevenue+exterforRevenue: double inMuralCost=500.00, exMuralCost=75. 00 ; intoriorrevenue:- Tostring ("C", Culturelnfo. GetCultureinfo("en-use)): Writebine(interiorMurals + "interior murals are scheduled at {0} ", inMuralCost, Tostring("C", Cul tureInfo. GetCultureInfo ( een-us" )) ): Writeline("each for a total of {0} ", interiorRevenue. ToString("C", CultureInfo.0otCultureInfo( "en-us"))): exteriorrevenue, tostring("C", Cultureinfo, Detculturelnfo ("en= Cos )); WritelinefexteriorMurals + "oxterior murals; are aoheduled at {0} ", oxMuralCost, Tostring("c", Cul turetnfo. Getcul tureinfo("en-us )))i 4 Writeline("Total rovenue expected is {0}", totalRevenue, Tostring("C", CultureInfo, GetCultureInfo("en-US"))): If (interiorMurals>exteriorMurals) Writoline("It is True that there are moxe interior muralo scheduled than exterior ones."); \}. else Wifteline( "It is True that there are more exterior murals scheduled than exterior ones,"); Enter number of i nterior murals sc heduled> 40 Enter number of e xterior murals sc heduled > > 25 40interior murals are scheduled at $500.00 each for a total of $20,000.00 25exterior murals are scheduled at $750.00 each for a total of $18,750.00 Total revenue exp ected is $38,750. 00 It is True that t here are more int erior murals sche duled than exteri or ones. Enter number of interior murals s cheduled>> 40 Enter number of exterior murals s cheduled>> 25 40 interior murals are scheduled a t $500.00 each for a total of $20,000.00 25 exterior murals are scheduled a t $750.00 each for a total of $18,750.00 Total revenue expected is $38,750 .00 It is True that there are more in terior murals scheduled than exte rior ones. D ising System; using static system. Console; using System.Globalization; class MarshallsRevenue \{ static void Main() \& Writeline("Enter number of interior murals scheduleds "); int interorMurals= Convert. ToInt32(Readtine()): Writeline("Enter number of exteror murals scheduleds? "); int exteriorMurals= Convert. ToInt32(Readline()); int interiorRevenue interiorMurals*500; int exterior Revenue=exteriorMurals*750; int totalRovenue = interiorRevenue+exterior Revenue: double inMurolCost =500.00, exMuralCost =750.00; interiorRevenue. Tostring("C", CulturoInfo. GetcultureInfo("en-us")); Writeline(interiorMurals + "Interior murals are scheduled at {Q} ", inMuralCost, Tostring("C", Cultureinfo. Getcul turoinfo("on-us"))): Writelino("each for a total of {0} ", interiorrevenue. Tostring("C", Cultureinfo, GercultureInfo ( "en-US")))); exteriorRovenue, Tostring("C", CultureInfo, GetcultureInfo("en-US")): Writeline(exteriorMurals + "exterfor murals are scheduled at {} ", exMuralCost, ToString("C", CultureInfo. GotCultureinfo("en-US")) ): Writeline "each for a total of {0} " exteriorRevenue. Tostring("C", CultureInfo, GotcultureInfo ( "en-us") ) i. int totalRevenue= interiorRovenue+exteriorRevenue; double inMuralCost =500.00, exMuralCost =750.00; interiorRevenue. ToString("C", CulturoInfo. GotCultureInfo("en-US")); Writeline(interiorMurals + "interior murals are scheduled at {0} ", inMuralCost. ToString("C", CultureInfo. GetCultureInfo("en-US"))); Writeline("each for a total of {0} ", interiorRevenue. Tostring("C", CultureInfo, GetCultureInfo ( "en-US"))): exteriorRevenue. Tostring("C", CultureInfo.GetCultureInfoo("on-Us")): Writeline(exteriorMurals + "exterior murals are scheduled at {0} ", exMuralCost. ToString("C", CultureInfo. GetcultureInfo("en-US"))): Writoline("each for a total of {0}", oxteriorRevenue. Tostring("C", CultureInfo, GetCultureInfo ("en-US"))); Writeline("Total revenue expected is {}", totalRevenue. ToString("C", CultureInfo, GetCultureInfo ("en-us"))); if (interiorMurals>exteriorMurals) \{ Writeline("It is True that there are more interior murals scheduled than exterior ones."): 3 else f Writeline("It in True that there are more exterior murals scheduled than oxterior ones."): In Chapter 1 , you created two programs to display the motto for Marshall's Murals. Now write a program named MarshallsRevenue that prompts a user for the number of interior and exterior murals scheduled to be painted during the next month. Compute the expected revenue for each type of mural. Interior murals cost $500 each, and exterior murals cost $750 each. Also display the total expected revenue and a statement that indicates whether more interior murals are scheduled than exterior ones. An example of the program is shown below: Enter number of interior murals scheduled >>3 Enter number of exterior murals scheduled >p 3 interior murals are scheduled at $500.00 each for a total of $1,500.00 1 exterior murals are scheduled at $750.00 each for a total of $750.00 Total revenue expected is $2,250.00 It is True that there are more interior murals scheduled than exterior ones. Use the output structure displayed above in your program's output

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

Step: 3

blur-text-image

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

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions

Question

* What is the importance of soil testing in civil engineering?

Answered: 1 week ago

Question

Explain the concept of shear force and bending moment in beams.

Answered: 1 week ago