Skip to content

pakizehjam/CNA340_Mohammad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

CNA340_Mohammad

Project Title

this the project of Zybook lab 5.2. For this project, the user will input a wall's height and width. Calculate and output the wall's area. Second, calculate and output the amount of paint in gallons needed to paint the wall (floating point). Assume a gallon of paint covers 350 square feet. Store this value in a variable. Output the amount of paint needed using the %f conversion specifier. Third, calculate and output the number of 1 gallon cans needed to paint the wall. Hint: Use a math function to round up to the nearest gallon. Next, the user for a color they want to paint the walls. Calculate and output the total cost of the paint cans depending on which color is chosen. Hint: Use a dictionary to associate each paint color with its respective cost. Red paint costs $35 per gallon can, blue paint costs $25 per gallon can, and green paint costs $23 per gallon can.

Getting Started

This project can be run on local computer.

Prerequisites

The Pyton PyCharm must be installed on local computer. Downloading Python Installer.

Running

This project lab 5.2.py can run in PyCharm IDE. The additional way to run the program: This project can run in cmd console by navigating to home directory where lab 5.2.py saved. Runing example is below. C:\Users\moham\AppData\Roaming\JetBrains\PyCharmCE2020.1\scratches\lab 5.2.py

## Thanks 
     I worked on that by my self.

About

IT MANAGMENT CNA 340

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages