Arts : asked on hollycoleman13
 01.04.2022

What is a paint program and why is the paint program fun?

. 4

Faq

Computers and Technology
Step-by-step answer
P Answered by Master

// code in C#.

using System;

class WallPaint {

 static void Main()

 {

 //variables

     double l,w,h;

     double win_area,door_area;

     double amount_gallon;

     Console.WriteLine("enter length of room:");

     // read the length of room

    l= Convert.ToDouble(Console.ReadLine());

    Console.WriteLine("enter width of room:");

    // read the width of room

    w= Convert.ToDouble(Console.ReadLine());

    Console.WriteLine("enter height of room:");

    // read the height of room

    h= Convert.ToDouble(Console.ReadLine());

    Console.WriteLine("enter amount of a gallon:");

    // read the amount of a gallon

    amount_gallon= Convert.ToDouble(Console.ReadLine());

    // find the area of both window

     win_area=2*(2*3);

     // area of door

     door_area=8*5;

     // total area of all walls

     double tot_room_area=2*(l*h)+2*(w*h);

     // area to be painted

     double paint_area=tot_room_area-(win_area+door_area);

     // gallos of paint required

     double no_gallon=paint_area/120;

     // total amount of paint

     double tot_amount=no_gallon*amount_gallon;

     // print the area to be painted

     Console.WriteLine("total square footage of walls to be painted : "+paint_area);

     // print amount of paint

     Console.WriteLine("total amount of paint is: "+tot_amount);

   

   

 }

}

Explanation:

Read the length, width and height of the room from user.Read the amount of paint  per gallon from user.Calculate the total area of all the walls.Calculate the area or window and door.Then find the area to be painted by subtracting window and door  area from total wall area.Then find the number of gallon of paint required to paint  all the area.Then calculate the total amount of the paint.

Output:

enter length of room:                                                                                                      

10                                                                                                                        

enter width of room:                                                                                                      

8                                                                                                                          

enter height of room:                                                                                                      

12                                                                                                                        

enter amount of a gallon:                                                                                                  

15                                                                                                                        

total square footage of walls to be painted : 380                                                                          

total amount of paint is: 47.5

Computers and Technology
Step-by-step answer
P Answered by Master

// code in C#.

using System;

class WallPaint {

 static void Main()

 {

 //variables

     double l,w,h;

     double win_area,door_area;

     double amount_gallon;

     Console.WriteLine("enter length of room:");

     // read the length of room

    l= Convert.ToDouble(Console.ReadLine());

    Console.WriteLine("enter width of room:");

    // read the width of room

    w= Convert.ToDouble(Console.ReadLine());

    Console.WriteLine("enter height of room:");

    // read the height of room

    h= Convert.ToDouble(Console.ReadLine());

    Console.WriteLine("enter amount of a gallon:");

    // read the amount of a gallon

    amount_gallon= Convert.ToDouble(Console.ReadLine());

    // find the area of both window

     win_area=2*(2*3);

     // area of door

     door_area=8*5;

     // total area of all walls

     double tot_room_area=2*(l*h)+2*(w*h);

     // area to be painted

     double paint_area=tot_room_area-(win_area+door_area);

     // gallos of paint required

     double no_gallon=paint_area/120;

     // total amount of paint

     double tot_amount=no_gallon*amount_gallon;

     // print the area to be painted

     Console.WriteLine("total square footage of walls to be painted : "+paint_area);

     // print amount of paint

     Console.WriteLine("total amount of paint is: "+tot_amount);

   

   

 }

}

Explanation:

Read the length, width and height of the room from user.Read the amount of paint  per gallon from user.Calculate the total area of all the walls.Calculate the area or window and door.Then find the area to be painted by subtracting window and door  area from total wall area.Then find the number of gallon of paint required to paint  all the area.Then calculate the total amount of the paint.

Output:

enter length of room:                                                                                                      

10                                                                                                                        

enter width of room:                                                                                                      

8                                                                                                                          

enter height of room:                                                                                                      

12                                                                                                                        

enter amount of a gallon:                                                                                                  

15                                                                                                                        

total square footage of walls to be painted : 380                                                                          

total amount of paint is: 47.5

Computers and Technology
Step-by-step answer
P Answered by PhD

Follows are the code to the given question:

Wallsize = int(input("Enter the size of wall space for painting(in sq ft): "))#defining variable Wallsize for input value  

rate = int(input("Enter the price of the paint(per gallon): $"))#defining variable rate for input value

per_Gallon = Wallsize/115#defining a variable per_Gallon that calculate its value

print("Number of Gallons of paint: ",per_Gallon)#print value with message

total_Hours = per_Gallon * 8#defining a variable total_Hours that calculate its value

print("Hours of labor required: ",total_Hours)#print value with message

paint_Cost = rate * per_Gallon#defining a variable paint_Cost that calculate its value

print("Cost of the paint: $",paint_Cost)#print value with message

labor_Charge = total_Hours * 20#defining a variable labor_Charge that calculate its value

print("Labor charges: $",labor_Charge)#print value with message

total_Cost = paint_Cost + labor_Charge#defining a variable total_Cost that calculate its value

print("Total cost of paint job: $",total_Cost)#print value with message

Output:

Enter the size of wall space for painting(in sq ft): 800

Enter the price of the paint(per gallon): $33

Number of Gallons of paint:  6.956521739130435

Hours of labor required:  55.65217391304348

Cost of the paint: $ 229.56521739130434

Labor charges: $ 1113.0434782608695

Total cost of paint job: $ 1342.6086956521738

Explanation:

Please find the complete question in the attached file.

In this code, the "Wallsize and rate" two variable is defined that is used for input the value from the user-end, after input the value multiple variables"

per_Gallon, total_Hours,paint_Cost, labor_Charge, and total_Cost" is declared, in which it calculates its respective value and prints the value with the message value.


A painting company has determined that for every 115 square feet of wall space, one gallon of paint
Computers and Technology
Step-by-step answer
P Answered by PhD

Follows are the code to the given question:

Wallsize = int(input("Enter the size of wall space for painting(in sq ft): "))#defining variable Wallsize for input value  

rate = int(input("Enter the price of the paint(per gallon): $"))#defining variable rate for input value

per_Gallon = Wallsize/115#defining a variable per_Gallon that calculate its value

print("Number of Gallons of paint: ",per_Gallon)#print value with message

total_Hours = per_Gallon * 8#defining a variable total_Hours that calculate its value

print("Hours of labor required: ",total_Hours)#print value with message

paint_Cost = rate * per_Gallon#defining a variable paint_Cost that calculate its value

print("Cost of the paint: $",paint_Cost)#print value with message

labor_Charge = total_Hours * 20#defining a variable labor_Charge that calculate its value

print("Labor charges: $",labor_Charge)#print value with message

total_Cost = paint_Cost + labor_Charge#defining a variable total_Cost that calculate its value

print("Total cost of paint job: $",total_Cost)#print value with message

Output:

Enter the size of wall space for painting(in sq ft): 800

Enter the price of the paint(per gallon): $33

Number of Gallons of paint:  6.956521739130435

Hours of labor required:  55.65217391304348

Cost of the paint: $ 229.56521739130434

Labor charges: $ 1113.0434782608695

Total cost of paint job: $ 1342.6086956521738

Explanation:

Please find the complete question in the attached file.

In this code, the "Wallsize and rate" two variable is defined that is used for input the value from the user-end, after input the value multiple variables"

per_Gallon, total_Hours,paint_Cost, labor_Charge, and total_Cost" is declared, in which it calculates its respective value and prints the value with the message value.


A painting company has determined that for every 115 square feet of wall space, one gallon of paint
Arts
Step-by-step answer
P Answered by PhD

The correct answer should be B. The paintbox era was the start of digital art, and artists used it for their art and graphics, which would have been made on a software and not real programming.

Arts
Step-by-step answer
P Answered by PhD

The correct answer should be B. The paintbox era was the start of digital art, and artists used it for their art and graphics, which would have been made on a software and not real programming.

Try asking the Studen AI a question.

It will provide an instant answer!

FREE