Please continue the build for my project as everything on my PC stopped working. import java.util.*; import java.io.*; p

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Please continue the build for my project as everything on my PC stopped working. import java.util.*; import java.io.*; p

Post by answerhappygod »

Please continue the build for my project as everything onmy PC stopped working.
import java.util.*;import java.io.*;
public class Main {
public static void main(String[] args) {//generate random prices for itemsRandom rand = new Random();int max = 100;int min = 1;int randomNum = rand.nextInt((max - min) + 1) + min;
//allow user to select an itemSystem.out.println("Please select an item: ");String item = input.nextLine();
//allow user to set price for itemSystem.out.println("Please set a price for your item: ");int price = input.nextInt();
//if statement to check if prices have droppedif (price > randomNum) {System.out.println("Your selected item has dropped in price, hurryup before prices rise again!");}
//loop to check if prices are about to changewhile (price == randomNum) {System.out.println("Prices are about to change");}
//change pricesSystem.
WHAT TODO:
a Java program (implementing web app with mobilenotifications)
an app where it posts items for sale at a randomly generatedprices (with the request of the user to change the prices or not)and being able to select an item for watch out until the prices ofthat items drops and notifies the user with a notification đź”” sayingsomething similar to "Your selected item has droppedin price, hurry up before prices rise again !" .
and notifies the user when the items are about to changeand do change for something else.
Please write with detailed comments explaining the loops and IFsand other necessarily things.
Provide full code and screenshot of final results.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply