Question
1) Decision-based Algorithm A cell phone company offers a plan with 450 minutes of voice communications at a monthly rate of $35.00. Any minutes over
1) Decision-based Algorithm
A cell phone company offers a plan with 450 minutes of voice communications at a monthly rate of $35.00. Any minutes over 450 are charged at a rate of 0.40 per minute.
Please write down an algorithm that allows the user to input the number of minutes a phone customer used during a particular month. The algorithm should determine the monthly charge. (Do not worry about taxes and other cell phone fees.)
Hint: You will need a decision statement that determines whether or not the user has exceeded his plan's minutes. The formula to calculate his monthly charge will differ slightly based on the result of this decision.
2) Object-Oriented Programming
An object-oriented programmer views the world in terms of objects, or entities, which must be defined within a program.
There are two parts to an objects definition: its attributes (or data) and its operations (the things the object can do or can be done to the object.)
Please write your own program for your college bookstore to track textbook inventory. List four or five attributes the program might use to describe the book object. List two or three operations that may apply to the book object.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started