1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
emmasim [6.3K]
1 year ago
10

Please solve this in JAVA Please see the attachment

Computers and Technology
1 answer:
Alina [70]1 year ago
3 0

Answer:

I'm going to do it but you should try these things for yourself or else you won't learn.

Explanation:

-First create a project (I'm using Netbeans 14 and the project is a Maven, but the code should work on any IDE)


-Name the project 'ShoppingCartPrinter' and leave the package name as it is. This is the main class so the main method is gonna be there already.

-Then you will create a second class named 'ItemToPurchase'. So I'll leave the code in the attachment (at the bottom of my answer it's written 'Download txt') or else brainly will think it's some sort of redirection to another websites because of the 'dots' and won't let me post it.






Download txt
You might be interested in
5. Drawing Conclusions If you were a person in
mr Goodwill [35]

Answer:

During the medieval period, having membership in a guild was important for trade. It would ensure the products traded/sold were held to the standard and sold for the fair price.

8 0
3 years ago
Daily IT Question
lilavasa [31]

Answer:

D

Explanation:

You would not have to make a whole new set of punch cards if you knew the card that had the mistake. Simply remove this card from the pile and make a new punch card in its place.

6 0
3 years ago
Read 2 more answers
A ___________ is used when an extra digit is added to a coded field to make sure it the entered data is correct (like social sec
Mamont248 [21]
A Check digit check is used when an extra digit is added to a coded field to make sure it the entered data is correct (like social security numbers).
7 0
4 years ago
Find the simple interest Jay owes on a five-year student loan of $48,000 with an annual interest rate of 5%.
borishaifa [10]
Use the equation I=prt where interest = principal times rate times time.

Fill it out, it becomes I= 48000(.05)(5)

I= 12000
3 0
3 years ago
Write the definition of a function named swapints that is passed two int variables. The function returns nothing but exchanges t
lisov135 [29]

Answer:

Following are the program in the C++ Programming Language.

#include <iostream>

//header file

using namespace std;

 //using namespace

void swapints(int &j, int &k){

 //definition of the function

int temp;

temp = j;

j = k;

k = temp;

}

// function declaration

void swapints(int &j, int &k);

int main() {

  // local variable declaration:

 int j = 15;

 int k = 23;

 std::cout << "Before the swapping, value of j : "<<j<<endl;

 std::cout << "Before the swapping, value of k : "<<k<<endl;

  /* calling a function to swap the values using variable reference.*/

 swapints(j, k);

 std::cout << "After the swapping, value of j : "<<j<< endl;

 std::cout << "After the swapping, value of k : "<<k<< endl;

 

  return 0;

}

Output:

Before the swapping, value of j : 15

Before the swapping, value of k : 23

After the swapping, value of j : 23

After the swapping, value of k : 15

Explanation:

Here, we define the header fine and namespace <iostream> and "std".

Then, we define a function named "swapints()" and pass two reference variables in parameter.

Then, inside the function, we perform the codes of swapping.

Then, we define the main() function inside it we define two integer variable "j" and "k" assign value "j" to 15 and "k" to 23 and print both the variables.

Then, inside main() function we call the function "swapints()" and pass value to its parameters.

4 0
3 years ago
Other questions:
  • What term refers to a piece of software that interfaces with the hardware on your computer?
    10·2 answers
  • Assume that the system has a multiple level queue with a variable time quantum per queue, and that the incoming job needs 80 ms
    14·1 answer
  • How to write an shortened if statement?
    6·1 answer
  • What is the term for the conversion of a bitmap image to a vector image?
    8·1 answer
  • Which of these is a major mobile game developer?
    9·1 answer
  • LILLE VIC LUNCUL ANCI.
    5·1 answer
  • File compression is only available on hard-disk drives. <br><br><br> a. True <br><br><br> b. False
    6·1 answer
  • Which is a feature of audio editing software?
    11·2 answers
  • It's about a truth table. No need to draw tables, 3 rows for the 3 columns is enough. Pls answer.
    10·1 answer
  • You are creating a program that can add up the amount of money the user spent that day. Right down to the penny! What kind of va
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!