创建一个伪代码程序 [英] Create a pseudo code program

查看:162
本文介绍了创建一个伪代码程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个程序,该程序可以估算项目的材料和人工成本,然后通过模型计算来确定利润

一个程序,用于确定在给定墙壁,门和窗户尺寸的情况下,粉刷一个房间所需的油漆罐的数量,以及以一英尺为单位的一罐油漆的覆盖范围.

A program to estimate the cost of materials and labor for a project and then figure makup to determine profit

A program to determine the number of cans of paint necessary to paint a room when given the walls, doors and windows dimensions, and the coverage from one can of paint in a aquere feet.

推荐答案

我们不是在这里为您做作业.我们在这里为您在做作业时遇到的特定问题提供帮助,并遇到一些特定的问题,这些问题在经过谷歌搜索之后似乎无法解决.

但是如果您真的想要一些伪代码...
这是一些VB中的油漆罐(因为您甚至懒于指定一种语言!)
We are not here to do YOUR homework for you. We are here to help with specific problems you encounter when YOU do YOUR homework and run into some specific trouble that, after doing some googling, you just can''t seem to fix.

But if you really want some pseudo code...
Here is some for the cans of paint in VB (because you were to lazy to even specifiy a language!)
Public Class Room

   ' The Wall Class contains info on doors, windows and
   ' square feet of the wall.
   Public Property Walls As IEnumerable(Of Wall)
   
   Public Function GetNumberOfPaintCans As Integer
      ' Do your calculations here using the Walls Property.
   End Function

   ' Duh -.-
End Class


这篇关于创建一个伪代码程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆