Create a cash register application for a fish and chips tuck shop. The application must have the…

Create a cash register application for a fish and chips tuck shop. The application must have the following controls: 1. Combo box - combo boxes for chips with small, medium, and large options and fish with options snoek and hake. 2. Check box - check box to either choose a cool drink or rolls, or both. 3. Quantity text field - text fields to specify the quantity of the product being bought. 4. Amounts text fields - text fields for total, amount paid, and change amount. NB. The user must make selections (chips, fish, cool drink, or roll) and specify the quantity. In the amount text fields, the user must only enter the amount paid, and the app must calculate the total price and the change amount. Product price list:

Create a cash register application for a fish and chips tuck shop. The application must have the following controls: 1. Combo box – combo boxes for chips with small, medium, and large options and fish with options snoek and hake. 2. Check box – check box to either choose a cool drink or rolls, or both. 3. Quantity text field – text fields to specify the quantity of the product being bought. 4. Amounts text fields – text fields for total, amount paid, and change amount. NB. The user must mak

Read More

4. Write a program that implements and uses a class called MyRectangle. Data items should include:…

Write a program that implements and uses a class called MyRectangle. Data items should include: length, width, color, and label. Define properties with appropriate accessor functions for each of the data items. Methods should include a default constructor that sets values to the empty string or zero, a constructor that allows the user to specify all values for the data items, a member method that computes and returns the area of the shape, and a member method called DisplayShape that outputs all the information (including the area via the ComputeArea method for the given rectangle in a reasonable format.

Write a program that implements and uses a class called MyRectangle. Data items should include: length, width, color, and label. Define properties with appropriate accessor functions for each of the data items. Methods should include a default constructor that sets values to the empty string or zero, a constructor that allows the user to specify all values for the data items, a member method that computes and returns the area of the shape, and a member method called DisplayShape that outputs a

Read More

5. Write a program that implements a class called MyTeam. Your class should have the following…

5. Write a program that implements a class called MyTeam. Your class should have the following private data items: Id (int), Name (string), Slogan (string), Wins (int), and Losses (int). You need to define properties with appropriate accessor functions for each of the data items. Methods should include a default constructor that sets values to the empty string or zero, a constructor that allows the user to specify all values for the data items, a member method called DisplayTeamInfo that outputs all the information for the given toy in a reasonable format. Challenge Problem: Code your set accessors to restrict all numeric fields (Id, Wins, Losses) to positive numbers. You can determine how you want to report/respond to the error. (25 pts) The code below is my suggestion for your Main() method for Program 22 static void Main(string[] args) { MyTeam myHitchhikers = new MyTeam(); myHitchhikers.Id = 42; myHitchhikers.Name = "Ford Prefect et. al."; myHitchhikers.Slogan = "Don't panic!"; myHitchhikers.Wins = 525; myHitchhikers.Losses = 42; Console.WriteLine("nTeam 1 Information"); myHitchhikers.DisplayTeamInfo(); MyTeam mykitties = new MyTeam(); Console.WriteLine("nTeall 2 Information"); mykitties.DisplayTeamInfo(); MyTeam myPatriots = new MyTeam(2023, "UC Patriots", "One Big Team", 42, 3); Console.WriteLine("nTeam 3 Information"); myPatriots.DisplayTeamInfo(); //This will test your Challenge Problem Settings if you attempted them Console.WriteLine("nTeam 4 Information"); MyTeam mywinners = new MyTeam(13, "Winners", "We like to win more than you do", -20, -35); } myllinners.DisplayTeamInfo();

5. Write a program that implements a class called MyTeam. Your class should have the following private data items: Id (int), Name (string), Slogan (string), Wins (int), and Losses (int). You need to define properties with appropriate accessor functions for each of the data items. Methods should include a default constructor that sets values to the empty string or zero, a constructor that allows the user to specify all values for the data items, a member method called DisplayTeamInfo that outputs

Read More

Write a Python program for an online MoonBucks coffee order. Coffee is sold by the pound, and the price per pound

Write a Python program for an online MoonBucks coffee order. Coffee is sold by the pound, and the price per pound depends upon the quantity ordered according to the table shown below. Partial pounds are not sold. Shipping is $1.00 per pound, but free for coffee orders over $150 before tax. The user must enter the number of pounds desired from the keyboard. The program will then display the cost of the coffee, the 7% sales tax, shipping charges (if any) and the total amount due. All four values should be displayed in currency format with the $ sign right up against the first digit. See SAMPLE OUTPUTS below. MoonBucks Coffee Company - Coffee Prices 40 pounds or more $7.50 per lb. 20 pounds or more $8.75 per lb. 10 pounds or more $10.00 per lb. 1 to 9 pounds $12.00 per lb. Start with a comment that includes your name and course number. Include pseudocode that describes all steps required to solve the problem. Employ variable names that describe the values they store and adhere to Python naming conventions. Include additional comments as needed to annotate your code. Use correct spelling and grammar. SAMPLE OUTPUT How many pounds are you ordering? 15 Cost of coffee $150.00 7% sales tax $10.50 Shipping fee $15.00 Total payable $175.50 SAMPLE OUTPUT How many pounds are you ordering? 50 Cost of coffee $375.00 7% sales tax $26.25 Shipping fee $0.00 Total payable $401.25

Write a Python program for an online MoonBucks coffee order. Coffee is sold by the pound, and the price per pound depends upon the quantity ordered according to the table shown below. Partial pounds are not sold. Shipping is $1.00 per pound, but free for coffee orders over $150 before tax. The user must enter the number of pounds desired from the keyboard. The program will then display the cost of the coffee, the 7% sales tax, shipping charges (if any) and the total amount due. All four values s

Read More

Create a new project called Lab9 and copy the given .java files into the src folder of this lab project folder. Refresh the project in Eclipse to show the provided files there.

Exercise 1 - Iterative vs. recursive methods 1. Create a new project called Lab9 and copy the given .java files into the src folder of this lab project folder. Refresh the project in Eclipse to show the provided files there. 2. Open FibonacciDemo.java and FactorialDemo.java and examine the code. Carefully read through the ifib() and rfib() methods in FibonacciDemo and ifact() and rfact() in FactorialDemo. Compare the iterative and recursive approaches in both classes. Why do the iterative methods require so many variables? What are the base cases of the recursive methods? 3. Run the program and when asked for numbers, enter5,10,15, and 20 . Write down the running times reported by the algorithm. Experiment with other numbers too but note that Factorial will not work for numbers over 25 as the long type will not be able to hold numbers larger than that. 4. In FibonacciDemo, modify the code to include a new variable called methodCalls2 that keeps track of the number of calls made to methodrfib()when the value of the parameternis 2 and prints it out in the main() method. Run the program and enter the value 40 . How many calls are made torfib()when the value of the parametern=2? Write down this result. 5. Why is the recursive algorithm for computing Fibonacci numbers so slow compared to the iterative algorithm? Does the value of methodCalls2 make sense with this rationale?

Exercise 1 – Iterative vs. recursive methods 1. Create a new project called Lab9 and copy the given .java files into the src folder of this lab project folder. Refresh the project in Eclipse to show the provided files there. 2. Open FibonacciDemo.java and FactorialDemo.java and examine the code. Carefully read through the ifib() and rfib() methods in FibonacciDemo and ifact() and rfact() in FactorialDemo. Compare the iterative and recursive approaches in both classes. Why do the iterative method

Read More

(Characters around Circle) Write a program that displays a string “Welcome to Java” around the circle, as shown in Figure 14.44b (Book). Hint: You need to display each character in the right location with appropriate rotation using a loop.

(Characters around Circle) Write a program that displays a string "Welcome to Java" around the circle, as shown in Figure 14.44b (Book). Hint: You need to display each character in the right location with appropriate rotation using a loop. Sample output: Please submit the following: 1. The entire project folder containing your entire project ( That includes .java file) as a compressed file. (zip) 2. Program output−screenshot Also, 1. Copy and paste source code to this document underneath the line "your code and results/output " 2. Include screenshot or your running program Points will be issued on the following requirements: - Program Specifications / Correctness - Readability - Documentation - Code Efficiency - Meaningful variable names - Assignment Specifications Before submitting make sure that: - Did you submit required files? - Recheck if you have missed anything?

(Characters around Circle) Write a program that displays a string “Welcome to Java” around the circle, as shown in Figure 14.44b (Book). Hint: You need to display each character in the right location with appropriate rotation using a loop. Sample output: Please submit the following: 1. The entire project folder containing your entire project ( That includes .java file) as a compressed file. (zip) 2. Program output−screenshot Also, 1. Copy and paste source code to this document underneath the lin

Read More

Develop a program to simulate a mall consists of several stores, each store contains a group of items. Using the system you can add items to the shopping kart, remove them, edit their data, and confirm purchase according to the following rules:

Create a Java program A shopping lists. This could be done as a linked list of nodes where each node has its own child linked list of store options (Linked list of linked lists) as follows: Develop a program to simulate a mall consists of several stores, each store contains a group of items. Using the system you can add items to the shopping kart, remove them, edit their data, and confirm purchase according to the following rules: 1- Every store specializes in a specific type of items that is not found in any other store. 2- The item in each store is an object with the following attributes: a- Name: String b- Id: String c- Quantity: integer d- Price: integer e- StoreNumber: integer (store index in the Main list already defined based on the store type you decided) (The store number is according to your choice to arrange the stores in the original list (it is considered previously specified by you) 3- The addition of a new item the share should be ordered by name. 4- The deletion process will be performed based on the ID of the item. 5- The customer could search for any item in any store by entering the name and ID of that item, the system should display the store ID in which the item found and the available amount of that item. 6- Purchase process: a- Store cart: - The system should have a cart to store probable items to purchase (cart list). When adding an item to the cart list its quantity should be decreased from the store list based on the quantity ordered from the customer (for this task the quantity of the item should be checked). a- The items in the cart could be purchased or returned to the store. If the customer returned any item, it should be returned to the correct store, the items at that store should remain in the correct order, and the quantity of that item should be increased. b- Final step of the purchase process is to confirm the process. By confirming the purchase, items should be removed from the cart and the total price should be calculated and displayed to the customer. aThe whole system is shown in the following class diagram

Create a Java program A shopping lists. This could be done as a linked list of nodes where each node has its own child linked list of store options (Linked list of linked lists) as follows: Develop a program to simulate a mall consists of several stores, each store contains a group of items. Using the system you can add items to the shopping kart, remove them, edit their data, and confirm purchase according to the following rules: 1- Every store specializes in a specific type of items that is

Read More