C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN: 9781337102087
Author: D. S. Malik
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Question
error_outline
This textbook solution is under construction.
Students have asked these similar questions
PYTHON PROGRAMMING
Write a program that perform the following tasks:
a) Request a description of the item, the year of purchase, the cost of the item, the number of years to be depreciated (estimated life), and the method of depreciation
b) Display a year-by-year description of the depreciation in a table setting
Output Example:
Enter name of item purchased: computer
Emter year purchased: 2016
Enter cost of item: 2000
Enter estimated life of item <in years>: 5
Enter method of depreciation <SL or DDB>: SL
Description: computer
Year of purchase: 2016
cost: $2,000.00
estimated life: 5 years
method of depreciation: straight-line
(I did that ^ the only thing im having trouble with is the table setting) (see attached)
Change the order of the numbered Use Case Definition steps to correspond to the following problem definition: A college provides every incoming freshman with a gift card for a choice of two specialty restaurants within the cafeteria. Students should select one specialty restaurant they want. A program opens a window that displays each specialty restaurant one picture at a time when a student clicks the corresponding button. After making a decision, the student should click the Select Restaurant button. After selecting a restaurant, the student should exit the application.
A company accepts user orders for its products interactively. Users might make the following errors as they enter data:
The item number ordered is not numeric, too low (less than 0), or too high (more than 9999).
The quantity is not numeric, too low (less than 1), or too high (more than 12).
The item number is not a currently valid item.
The company’s current inventory consists of the following items listed in Table:
item number price
111 0.89
222 1.47
333 2.43
444 5.99
Create a class that stores an array of usable error messages; save the file as OrderMessages.java. Create your own OrderException class that stores one of the messages; save the file as OrderException.java. Create an application that contains prompts for an item number and quantity. Allow for the possibility of nonnumeric entries as well as…
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Individual variables are great for storing and processing lists of data. True or False.arrow_forwardMore data is always better than less data when making a programming choice, but you shouldn't make a call based only on performance.arrow_forwardA loan application takes as input loan amount, credit scores, salary history, tax history and other relevant data and produces a single result: either the customer is credit worthy or not. What data type is the variable "result"?arrow_forward
- First you should ask for the number of tasks to perform. Then you should create a list of tasks with that many entries. Ask the user if they have completed each task. Report the tasks that have yet to be completed.arrow_forwardEmployee view attendance report The employee must be logged in to the system to perform this function. The employee selects the report period (range of dates: from - to). The employee selects "show report". Range of dates for the report must be maximum 3 months, so if the range is invalid, the system displays an error message. The system displays every working day in the report with the status of the employee in this day, which could be one of the following: on time, late, did not come. One actor? One use case name? One class ? Attributes for the class ? One relation between classes ?arrow_forwardExplain procedure return code briefly.arrow_forward
- Slappy’s Software Sales AssignmentYou have been hired by Slappy’s Software Sales to write a program to figure thetotal cost to customers that order Slappy’s software packages.Discounts are given based on the number of units sold:Number of Units Sold Discount Amount1 – 9 None10 – 19 20%20 – 49 30%50 – 99 40%100 or more 50%Create a form similar to this:The three boxes are labels. Remember to use the Auto Size and Border Styleproperties.The program should read the number of units sold and figure a base cost. Theunits cost $99 each. A discount should then be figured and subtracted from thebase cost. The subtotal, discount amount and total cost should be displayed, ascurrency, in the appropriate labels.Here are some screen shots of the running program:Set the tab order and access keys.Put comments in your program as to what each section is doing.Use constants for the discount rates and base price.arrow_forwardThis is a screen shot of the assignment. Thank youarrow_forwardWrite a program that allows the user to initially enter information on 4 students and 10 courses. Have the program associate each student to at least four courses for a semester session. The program will display a report showing the assigned courses for each students with the total number of credits. The student information should include: 1. student ID 2. first name 3. last name The course information should include: 1. Course ID 2. Course name 3. Number of credits Design requirement: Have the program be menu driven, for example: Main Menu: 1. Enter all students in the database 2. Enter all courses in the database 3. Assign 4 existing courses for an existing student 5. Display a report 6. EXIT The report will show a list students with the 4 courses that were assigned to them along with total number of credits. The report will only display when all of the requirements below are met. Option 3 shouldn't work if you have no students and courses in the database. Option 1 forces the…arrow_forward
- Assignment #2 Design an application to search in a database table of employee records. Each employee record consists of an ID, first name, last name, job title. The user interface should look similar to the sketch shown below. A text field is used to input the search query. A combo box is used to choose the search criteria (e.g. search by ID, search by first name, search by last name). By choosing any criteria and clicking on the "search" button, the correct results should be shown on the "results" pane. Search Query Search criteria Search Results Item1 Item2 Item3 otes E Notes Comments 2:38 PM ENG 3/8/202arrow_forwardMSIT 501/BMME 8050 Project #1 Description: You are working for a carpeting and flooring company. You need a program to create an estimate for customers. There are three types of rooms that customers might have: square, rectangle and circle. Yes, some people have houses with rooms that are circles. The program should ask for the customer’s name and address. Then ask for the dimensions of the room, in feet. It should then determine the cost to put flooring in the room. We compute flooring based upon the area of the room in square feet. Flooring material costs $2.00 per square feet and installation costs $1.50 per square foot. The equations for calculating the square footage of rooms are as follows: • Square: area = side1 ^ 2 • Rectangle: area = side1 * side2 • Circle: area = radius ^ 2 * pi Once the user has entered the information, the program should print out the customer information. Then it should print the total square feet in the room followed by the estimate for the materials and…arrow_forwardIN C LANGUAGE A well-known showroom allows managers to keep track of how many appliances are available or have been sold. Ask the user to input the following information for n number of appliances in the showroom: Code, Price, Status(Available/Sold) Create the following files: 1. “available_appliances.txt” that displays all the information of appliances available in the showroom. 2. “sold_appliances.txt” that displays all the information of sold appliances.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Java random numbers; Author: Bro code;https://www.youtube.com/watch?v=VMZLPl16P5c;License: Standard YouTube License, CC-BY