Book Club Points
Serendipity Booksellers has a book club that awards points to its customers based on the number of books purchased each month. The points are awarded as follows:
■ If a customer purchases 0 books, he or she earns 0 points.
■ If a customer purchases 2 books, he or she earns 5 points.
■ If a customer purchases 4 books, he or she earns 15 points.
■ If a customer purchases 6 books, he or she earns 30 points.
■ If a customer purchases 8 or more books, he or she earns 60 points.
Write a
Trending nowThis is a popular solution!
Learn your wayIncludes step-by-step video
Chapter 3 Solutions
Starting Out with Python (3rd Edition)
Additional Engineering Textbook Solutions
Artificial Intelligence: A Modern Approach
Starting Out with Java: Early Objects (6th Edition)
Computer Science: An Overview (13th Edition) (What's New in Computer Science)
Software Engineering (10th Edition)
Objects First with Java: A Practical Introduction Using BlueJ (6th Edition)
Database Concepts (8th Edition)
- A serendipity bookseller has a book club that awards points to its customers based on the number of books purchased each month. The points are awarded as follows: If a customer purchases 0 books, he or she earns 0 points. If a customer purchases 1 books, he or she earns 5 points. If a customer purchases 2 books, he or she earns 15 points. If a customer purchases 3 books, he or she earns 30 points. If a customer purchases 4 or more books, he or she earns 60 points. W rite a program that asks the user to enter the number of books that he or she has purchased this month and then displays the number of points awarded. using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms; namespace Chapter_4_Problem_6___Seth{public partial class bookClubPoints : Form{public bookClubPoints(){InitializeComponent();}}} C# please code with this contextarrow_forwardJake’s Car Rental charges each customer a daily rental fee of $55. However, there is an additional charge for renting a luxury car. The additional charge is $10 if the customer has a Jake’s Luxury coupon; otherwise, the additional charge is $30. What are the primary and secondary decisions?arrow_forwardFinancial Assistance Application Create the Financial Assistance Application. A non-governmental organization needs your application to calculate the amount of financial assistance for needy families. The formula is as follows: • If the annual household income is between $30,000 and $40,000 and the house- hold has at least three children, the amount is $1,000 per child. • If the annual household income is between $20,000 and $30,000 and the house- hold has at least two children, the amount is $1,500 per child. • If the annual household income is less than $20,000, the amount is $2,000 per child. Implement a function for this computation. The program asks for the household income and number of children for each applicant, printing the amount returned by your function. Use -1 as a sentinel value for the input. The program output should be formatted as shown in the Sample Run. Note: You must use at least one function in your code.arrow_forward
- Please right solution only please fast u will like itarrow_forwardSerendipity Booksellers has a book club that awards points to its customers based on the number of books purchased each month. The points are awareded as follows: If a customer purchases 0 books, he or she earns 0 points. If a customer purchases 1 book, he or she earns 5 points. If a customer purchases 2 books, he or she earns 15 points. If a customer purchases 3 books, he or she earns 30 points. If a customer purchases 4 or more books, he or she earns 60 points. Creat an application in C# that lets the user enter the number of books that he or she has purchased this month and displays the number of points awarded.arrow_forwardOption buttons let the user no select from one of several choices. * True Falsearrow_forward
- IN EXCEL VBA FORMAT PLEASE Write a sub that uses the If Construct. If the value in cell B1 is greater than 75, cell B1 should be colored green. If not, it should be colored red.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_forwardThe condition to press the buttons in front of two competitors after reading the question in a quiz. They can answer questions with. When the button is pressed, the competitor who pressed first the light is on (when the digital is 1, the lamp lights up). 10 seconds to answer the question there is. If the question is not answered after the time is over, the lamp in front of the competitor turns off and the second The contestant can answer the question by turning on the lamp in front of him by pressing the button. As a result of pressing the button in front of the competition, the game of all competitors can be rotated. (When the buttons are pressed, the digital zero signal goes to the microcontroller.) Write the necessary software for the relevant competition with Arduino.arrow_forward
- Register assignments: a= $10, b=$1 Show two 1-way ifs. if (a < b + 3) b = b + aarrow_forwardChange 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.arrow_forwardTrue or False: A conditionally executed statement should be indented one level from the if clause.arrow_forward
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:CengageCOMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage