2. Following question 1, develop a main( ) function: (note: use the function whenever you can - this shows your ability

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

2. Following question 1, develop a main( ) function: (note: use the function whenever you can - this shows your ability

Post by answerhappygod »

2. Following question 1, develop a main( ) function: (note: use
the function whenever you can - this shows your ability to take
advantage of object-oriented programming) a. Declare part nut, part
number is 100, inventory is 1000, unitprice 0.15. b. Declare part
bolt, part number is 200, inventory is 300, unitprice 0.25. c.
Display the inventory of bolt: "Bolt: yyy. ." (yyy is the value) d.
Display the inventory of nut: "Nut: yyy." e. Check the inventory of
both. If anyone is low, buy 800 units. f. At the end, check whether
the inventory of the two parts are the same. Display the result
("Same" or "Not the same").
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply