-
- The senior citizens discount is 30% e If the membership is bought and paid for 12 or more months, the discount is 15% . If more than five personal training sessions are bought and paid for, the discount on each session is 20%. Write a menu-driven program that determines the cost of a new membership. Your program must contain a function that displays the general information about the fitness center and its charges, a function to get all of...
-
Please !create a java program for the follwing question.
19. The cost to become a member of a fitness center is as follows: (a) the Senior citizens discount is 30%; (b) if the membership is bought and paid for 12 or more months in advance, the discount is 15%; or (c) if more than 5 personal training sessions are purchased, the discount on each session is 20%. Write a menu driven program that determines the cost of a new membership...
-
C++ exercises
During the tax season, every Friday, the J&J accounting firm
provides assistance to people who prepare their own tax returns.
Their charges are as follows:
If a person has low income (<= 25,000) and the consulting
time is less than or equal to 30 minutes, there are no charges;
otherwise, the service charges are 40% of the regular hourly rate
for the time over 30 minutes.
For others, if the consulting time is less than or equal to...
-
JAVA
Hello I am trying to add a menu to my Java code if someone can
help me I would really appreacite it thank you.
I found a java menu code but I dont know how to incorporate it
to my code this is the java menu code that i found.
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ButtonGroup;
import javax.swing.JCheckBoxMenuItem;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JRadioButtonMenuItem;
public class MenuExp extends JFrame {
public MenuExp() {
setTitle("Menu Example");...
-
Write a Java program to convert octal (integer) numbers
into their decimal number equivalents (exactly the
opposite of what you have done in Assignment 4). Make sure
that you create a new Project and Java class file for this
assignment. Your file should be named “Main.java”.
You can read about octal-to-decimal number conversions on
wikepedia
Assignment 4 is at the bottom
Objective
Your program should prompt the user to enter a number of
no greater than 8 digits. If the...
-
Write a Java program to read customer details from an input text
file corresponding to problem under PA07/Q1, Movie Ticketing
System
The input text file i.e. customers.txt has customer details in
the following format:
A sample data line is provided below.
“John Doe”, 1234, “Movie 1”, 12.99, 1.99, 2.15, 13.99
Customer Name Member ID Movie Name Ticket Cost Total Discount
Sales Tax Net Movie Ticket Cost
Note: if a customer is non-member, then the corresponding
memberID field is empty in...
-
Please write it in Java language
2. (Myinterface.java) The program description below was found waaaaay back in the archives of the Equinox history database. It is the specification for a simply "computer store storefront". Even though computer stores are now extinct, you find the idea charming and decide to use the specification as inspiration to write an interface for one of the Equinox systems. Read carefully: write your own GUI for one of the Equinox systems, drawing inspiration from the...
-
Java 1
Some help Please......
1. Before You Begin
Anticipate where things can go wrong
Consider how to gracefully shut down the program and save the users
data and close files properly.
Typically there are two scenarios to make a distinction
between:
The first is one that which you have absolutely no control over;
such as if all the files are where they should be, and that the
user has not deleted one or accidentally moved it rather than
copied...
-
THIS MUST BE DONE ON VISUAL STUDIO
Write a C# program that computes a the cost of donuts at your
local Rich Horton’s store. The cost, of course, depends on the
number of donuts you purchase. The following table gives the break
down: Donuts Purchased Cost per Donut ($) = 15 0.75 A customer can
save on the HST (13%) if they buy 12 or more donuts so only charge
HST (use a constant) on the purchase if the customer...
-
CIT 149 Java 1 programming question
Use DrJava to compile the following try-catch program
? The Assignment
? Specifications
General
Structure your file name and class name on the following
pattern:
The first three letters of your last name (begin with upper
case.).
Then the first two letters of your first name (begin with upper
case.).
Follow this with the name of the program: TryCatch.
For a student called ’John Doe,’ the class name and file name
would be: DoeJoTryCatch...