A cycle merchant allows 15% discount on the marked price of a bicycle and still he makes a profit

of 20%. Write a program to calculate Marked price and Cost price of cycle if the he offers Rs. 600 as

discount to the customer.
in java program
please do it​

Answers

Answer 1

Answer:

The program in Java is as follows:

public class Main{

public static void main(String[] args) {

 double discount_percent = 0.15;

 double discount_amount = 600;

 double profit = 0.20;

 double marked_price = discount_amount/discount_percent;

 double cost_price = marked_price/(1 + profit);

 System.out.println("Marked Price: "+marked_price);

 System.out.println("Cost Price: "+cost_price);

}}

Explanation:

For explanation purpose, let

[tex]MP \to[/tex] Marked Price

[tex]\%D \to[/tex] Percentage discount

[tex]D \to[/tex] Discounted amount

[tex]\%P \to[/tex] Percentage Profit

[tex]C \to[/tex] Cost Price

The marked price (i.e. selling price) is calculated discount using:

[tex]MP = \frac{D}{\%D}[/tex]

The derived formula of the cost price from percentage profit and Marked Price is:

[tex]C = \frac{M}{1 + \%P * 100}[/tex]

So, the explanation is as follows:

The next three lines declare and initialize the given parameters

 double discount_percent = 0.15;

 double discount_amount = 600;

 double profit = 0.20;

Calculate marked price

 double marked_price = discount_amount/discount_percent;

Calculate cost price

 double cost_price = marked_price/(1 + profit);

Print marked price

 System.out.println("Marked Price: "+marked_price);

Print Cost price

 System.out.println("Cost Price: "+cost_price);


Related Questions

Based on the information in the table, which of the following tasks is likely to take the longest amount of time when scaled up for a very large company of approximately 100,000 customers

Answers

Answer:

Task A

Explanation:

Hannah's prior status updates, pictures, and profile data will be hidden from view and deleted from servers 30 days after posting.

What amount of time when scaled up large company?

When a set of symbols is used to represent a number, letter, or word during coding, that symbol, letter, or word is said to be being encoded. The collection of symbols is referred to as a code. A set of binary bits is used to represent, store, and transmit digital data.

Binary code is another name for this category.The values of the subject attributes can be stored in numerous rows for large data subjects. Data from long data sets may span several columns.

Therefore, The only system that is adaptable enough to allow for the representation of data other than numbers is the binary number system.

Learn more about scaled up here:

https://brainly.com/question/28966944

#SPJ2

spreadsheets: what is a row

Answers

Answer:

Rows run horizontally across the worksheet and ranges from 1 to 1048576. A row is identified by the number that is on left side of the row, from where the row originates. Columns. Columns run vertically downward across the worksheet and ranges from A to XFD - 1 to 16384.

Explanation:

Tommy loves taking care of homing pigeons. He sent a note to his crush who lives 24.0 km away from his house. These birds fly at a rate of 48.2 km/h. How long will the note reach Tommys crush?​

Answers

Answer:

0.5 hours or 1800 seconds.

Explanation:

Given the following data;

Distance = 24km

Speed = 48.2 km/h

To find the time;

Time = distance/speed

Time = 24/48.2

Time = 0.50 hours

Converting the time to seconds;

1 hour = 3600 seconds

0.5 hour = 1800 seconds

Therefore, it would take 1800 seconds or 0.5 hours for the note to reach Tommy's crush.

Using the speed - distance relationship, it will take the pigeon about 29.88 minutes to reach Tommy's crush.

Given the Parameters :

Speed of pigeon = 48.2 km/hr

Distance to be covered = 24 km

Recall the Time taken relation :

Time taken = (Distance ÷ Speed)

Time taken = (24 ÷ 48.2) = 0.4979253 hours

Converting to minutes :

0.4979253 × 60 = 29.875 minutes

Therefore, it will take the pigeon about 29.88 minutes to reach her destination.

Learn more : https://brainly.com/question/23313999

why is information called a resource​

Answers

Answer:

Explanation:

Information is a resource due to its nature of limited availability, usefulness and its reliability when making references to it.

Answer:

Information is a resource due to its nature of limited availability, usefulness and its reliability when making references to it.

How do I make a game from scratch, what program should I use, and what tutorial should I follow, I want to make a 2D platformer with some 3D elements in there.

Answers

Honestly just buy a decent GUI and gets scripts for other games and piece it together it’s how was made

Claudette is shocked to discover that her company's data has been stolen, and their Web site shut down, by a malicious ex-employee. She had thought their security was airtight! Two recent changes they made were migrating their database to a private, on-premises cloud and installing IoT devices that communicate with the database continually. What most likely occurred

Answers

Answer:

The answer is "Ex-employee hack IoT firms from Claudette to access them".

Explanation:

Computer system hacking is only a breach between both the access as well as the stealing or misuse of critical information between both computer software from the target system. In this sense, a malicious attacker uses a computer device or even a network to access or illicitly exploit information.

What is a ternary operator? Explain with the help of an example.
The ternary operator deals with three operands. It is also known as a conditional operator. In this operator, the value of the variable depends on the logical expression.
Example:
int a = 5:
int b = 3;
int max = (a > b)? a : b;​

Answers

Answer:

A ternary operator, also called a conditional operator, is a special kind of operator used in some programming languages as a shorter way of writing an if..else block. It is denoted by a question mark and then a colon (? : ). It takes 3 operands:

i. A boolean expression which would evaluate to a true or a false.

ii. A first value that will be assigned if the boolean expression gives a true.

iii. A second value that will be assigned if the boolean expression gives a false.

The general format is:

variable = boolean expression ? first_value : second_value;

For example:

A ternary expression can be written as;

String f = (3 > 5) ? "yes" : "no";

In the above expression;

The boolean expression is 3 > 5

The value to be assigned, to f, if the boolean expression is true is "yes"

The value to be assigned, to f, if the boolean expression is false is "no"

So in this case, since (3 > 5) evaluates to false, "no" will be assigned to f.

Therefore, the above expression will give the same result as;

String f = "no"

Another example:

=================

int a = 5:

int b = 3;

int max = (a > b)? a : b;​

==================

In the above code snippet,

Since a > b i.e 5 > 3, the first value a (which is equal to 5) will be assigned to max.

Therefore, int max = 5.

The value of max is 5

PS:

These examples and explanations are given using Java. Similar scenario, maybe different syntax, will be obtainable in other programming languages.

In a voice over IP setup (VoIP), what kind of device converts signals from a campus's analog phone equipment into IP data that can travel over a phone company's analog telephone lines

Answers

Answer:

VoIP gateway

Explanation:

A VoIP stands for the voice over IP. The VoIP gateway is defined as a hardware device which is used to convert the telephony traffic into the packets of data that is used for transmission over the internet. It acts as the bridge and connects the VoIP with the worlds of the legacy telephony.

In a VoIP setup, the signals form the analog phone of the campus equipment  are converted to the IP data which can travel over the analog telephone lines of the phone company.

Write a program that repeatedly asks the user to type in an integer until they input a multiple of 7

Answers

Answer:

 See the code in the explanation below

Explanation:

For this excersie we are going to be using C++, if you want me to produce the code in another language do let me know

// Online C++ compiler to run C++ program online

#include <iostream>

using namespace std;

int main()

{

int Number;

   do

{

 cout <<"Enter a  multiple of seven: ";

 cin >> Number;

 

 if(Number%7 == 0 ){

     cout<<"correct!!! the number is a multiple of seven";

 

 }

} while(Number%7 != 0);

}

   

   

 

   

   

   

   

       

PLEASE HELP WITH MY COMPUTER
this thing is popped up and it's annoying. I'm on a HP laptop how do i get rid of it?​

Answers

Answer:

Escape or turn it off then back on??

Explanation:

I'm not very sure what is going on but idfk

Why do you think there is a difference between good, clean designs compared to the bad, cluttered designs below?.

Answers

Answer:

Good, clean designs depicts the logic link of the company and easy to remember as compared to the bad, cluttered designs

Explanation:

The major difference between the good, clean designs and the bad, cluttered designs is that the good, clean designs depicts the logic link of the company and it is easy to remember such symbols but in case of bad, cluttered designs it is not that easy to find the logic link and also it is difficult to remember the logo.

true or false: erosion takes very long to happen.​

Answers

the answer is true. erosion takes place over time

Answer:

True

Explanation:

By definition, erosion is the gradual destruction or diminution of something.

1) Erosion can take many forms

2) The 3 main types of erosion are water, wind, and ice

3) The process of erosion can take up to thousands of years

4) Erosion affects humans because it creates dust that pollutes the air and on average carries around 20 different diseases including anthrax and tuberculosis

can some one tell me how to screen shot on a pc computer

Answers

Answer:

click 'prt sc' which is print screen.

and then save it somewhere..like paint or something and DONE.

thenks for the points btw.

Answer:

You just press the (Win+PrtSc) key.

Or sometimes you just have to press the (PrtSc) key

Which computer specifications would be best suited for the following scenario? The marketing department wants to buy two new computers. One computer will be used for their graphic artist to create graphics and videos for the Web, and a second one for the secretary to keep track of billing and hours. What would you advise the department to purchase? Two computers with identical specifications A computer with a high-capacity CMOS RAM chip for the graphic artist and a computer with multiple sockets for the secretary A computer with a large power supply for the graphic artist and a computer with multiple internal buses for the secretary A computer with a multicore, high-speed processor for the graphic artist and a computer with a slower processor for the secretary

Answers

Answer:

A computer with a large power supply for the graphic artist and a computer with multiple internal buses for the secretary.

HELP PLS 10 MINUTES LEFT!! In this unit you have learned about ways to be faster at word processing. In 3 to 4 sentences, describe one or two skills
you have learned that will make you faster at word processing.​

Answers

Answer:

The answer is below

Explanation:

There are many skills I have learned which have made me faster at word processing, some of which are:

1. Copying, Cutting, and Pasting: in word processing, one can easily copy or cut words, sentences, paragraphs within a word document and pasted them somewhere else, either inside the same word document or another word documents entirely. This made the work faster as I wouldn't need to re-type all over again. To do this, I can use either the in design key combinations like Ctrl+C for copying, Ctrl+X for Cutting, Ctrl+P for pasting.

2. Spelling and Grammar Check: while the word processing app (Microsoft word) has a way of notifying users of errors concerning grammar and spelling, instead of rewriting or looking for the correct spelling or grammar, I can quickly use the inbuilt function in the Microsoft word to check and make the correction. To do this, I can right-click the mouse on the error, and select the appropriate spelling or grammar

What are your thoughts about this re-designed Logo? Is it good? Or is poorly designed? Explain your answer below.

Answers

Answer:

It is good but the back is not good enough.

Write the output of the following program:

CLS

a=20

FOR x = 1 to a

IF x MOD 2 < > 0 THEN

S S+x

END IF

NEXT X

PRINT S

END​

Answers

Answer:

Expression A

Explanation:

In this Pseudocode, the output would be 100. This is because the code is looping from 1 to 20 and adding together all of the odd numbers between 1 and 20. Since it is checking to make sure that the remainder of each number is not equal to 0 which would indicate an odd number, and if it is odd then it adds it to the variable S. Therefore, the odd numbers between 1 and 20 are the following...

1 + 3 + 5 + 7 + 9 + 11 + 13 + 15 + 17 + 19 = 100

8. A boy leaves his house at 9.30 a.m. for his
school. The school is 2 km away and classes start at
10.00 a.m. If he walks at a speed of 3 km/h for the
first kilometre, at what speed should he walk the
second kilometre to reach just in time?​

Answers

Answer:

i would say 4km

Explanation:

On the Direct Marketing worksheet, create appropriate range names for Design Fee (cell B8), Cost Per Ad (cell B9), Total Clicks (cell B10), Profit Per Click (B11), and Gross Profit (cell B12).

Answers

Answer:

See explanation below

Explanation:

Named ranges are a very important tool in Microsoft Excel. It is used in assigning a name to a particular number of cells. It is great for automation and makes formula much easy to understand and use.

One way to create named ranges is theory the Name Box.

To create named ranges in the design marketing sheet we do this;

1) We click on cell B8 and then navigate to the name box at the top right corner of the sheet just above the column A.

•The name box is where the cell address of any cell that is active is displayed.

•You would see that “B8” is displayed on the name box.

• Double click on the name box and type in the appropriate name, in this case - Design_Fee.

• Press enter and you have your named range.

You do the same for the other named ranges.

Note that: Named ranges must contain letters, numbers or underscore.

waluigi for smash who agrees ​

Answers

Answer:

I do

Explanation:

Well, if i didnt, i wouldn't be part of the internet, now would I?

(can i get brainliest? pls?)

totally i agree-even tho i dont really play anymore

Description
How many minutes of video would fill an iPhone with 8 GB of
storage, where 3 GB is already used.
One minute of video takes 150 MB of storage.
One GB (gigabytes) is about 1000 MB (megabytes).
Hint: Do all of your calculations in megabytes (MB).

Answers

33.33 minutes of video

3 GB already used which means you have 5 GB left, 5GB is the same as 5000 MB

So 5000 MB divided by 150 MB is 33.33 minutes of video that can be stored on the iPhone

Select the correct answer.
What type of media is/are only used for one-time backups?
A.
internal hard disk
B.
external hard disk
C.
DVD, optical media, and removable media
D.
remote shared folder
E.
tape

Answers

Answer:

E

Explanation:

Answer:

It's D I promise

Explanation:

i did it! D is right

Web design incorporates several different skills and disciplines for the production and maintenance of websites. Do you agree or disagree? State your reasons.

Answers

Answer:

Yes, I do agree with the given statement. A further explanation is provided below.

Explanation:

Web design but mostly application development were most widely included throughout an interchangeable basis, though web design seems to be officially a component of the wider website marketing classification.Around to get the appropriate appearance, several applications, as well as technologies or techniques, are being utilized.

Thus the above is the right approach.

what is the decimal value for the jump control?

Answers

Answer:

24

Explanation:

11000 is equivalent to 24 because if you look at a flippy do, the base is 2. so going from right-left, 2^0 is 1 for the first 0. second zero would be 2^1 which is 2. then the third zero is 4 (2^2). since they are zero’s, they are turned off, but the 1’s indicate that those bases are turned on. the first one going from right to left would then be 8 (2^3) and the last 1 going from right-left is 16 (2^4). so 16+8=24!

edit: didn’t mean to rate myself 1 star lol

What is a variable in programming?
1) A symbol or set of characters in a programming statement whose value can
be changed
2) A symbol in a mathematical equation
3) The characters that make up a string
4) The output when code is printed

Answers

A symbol or set of characters in a programming statement whose value can be changed

How can learning opportunities for AI be extended to all

Answers

Answer:

Learning opportunities for AI can be extended to all through the inclussion of courses and different teaching methods related to Artificial Intelligence, new technologies, computer science, programming and, in short, everything related to the digital world, in the educational plans at the national level. This is so because artificial intelligence and computer systems are the basis for the development of the new tools jobs of tomorrow. Thus, education in these subjects is essential so that citizens can enter the labor market once they acquire the necessary age, having the knowledge to do so in a proper way.

chnology
Submit Test
Reader Tools
35
Select the correct answer.
For an entry-level worker in the web and digital communications pathway, which educational qualification would be needed to move to the
position of a multimedia designer or web developer?
A. high school diploma
B. certificate diploma
C. associate's degree
D.
doctoral degree
E.
bachelor's degree
Undo
Next

Answers

Answer:

Option B

Explanation:

For an entry level worker in the web and digital communications pathway, a certificate course is only required.

Graduation, post-graduation and doctoral degrees are required for higher roles and research works.

Hence, option B is correct

Multiple
Choice
What will be the output?
class num:
def __init__(self,a):
self. number = a
def_mul__(self, b)
return self.number + b.number
numA = num(5)
numB = num(10)
product = numA * numb
print(product)
50
O 5
an error statement
15

Answers

Answer:

15

Explanation:

Edge 2021

write any two web browers​

Answers

Answer:

G00gle and bing

Explanation:

Which statement best describes the problem statement below?

Vision: We want to decrease errors in our billings to clients.

Issue: Clients complain that they receive multiple bills for the same month. We have one software that keeps track of services made to clients, another software that keeps track of the charges of those services, and another software that bills the clients.

Method: Print out services and charges, and enter these values into a billing software.
This problem statement is a clear, well-defined problem statement.
This problem statement does not clearly define the issues.
This problem statement will help stakeholders participate in addressing the problem.
This problem statement does not provide a useful statement of method.

Answers

Answer:

B

Explanation:

This problem statement does not clearly define the issues.

Answer:

B

Explanation:

Other Questions
A college professor hands out a list of 10 questions, 5 of which will appear on the final exam for the course. One of the students taking the course is pressed for time and can prepare for MATH 270 Assignment 2 W. Li 2 only 7 of the 10 questions on the list. Suppose the professor chooses the 5 questions at random from the 10. a) What is the probability that the student will be prepared for all 5 questions that appear on the final examination i never meant to say, say just how i felt kinda just slipped out and now im lying on the ground feeling a bit stressed out i think i've gone too far i think i've said too much i'm tryna figure out if you might feel the same if we're on the same pagewhat do yall think? i had to write a song for class (it isn't finished) but do yall think it's too personal? Write a short story that starts with this line: I should have known it was a bad idea, but that didn't stop me yoo please help me out i need help please help me Lilbabyonme hahahahahahahahahahahahay not good with bio pls help ! HELP ME PLEASEEEEEEEEEEEEEE 2.List two changes an unbalanced force can cause. if your good at precalculus and don't mind doing word please leave a comment down below. HELP ME PLEASE I DON'T UNDERSTAND find the range 15,2,3,7,8,4,3,2,16,2,4 Find the measure of each numbered angle or are. ILL MARK YOU BRAINLEIST pls help me out with this . what are some equations using the digits 0-9 whose soultion is 1/2. (i need three equations) Limestone:rock::calcite:____ What is the common difference of the arithmetic sequence graphed below?GOan1.-11123456789n-2-345-6 (1.-3.75) (2, -4.5)(3, -5.25) (4, -6)(5.-6.75)(6.-7.5) (7.-8.25) (8, -9)-7-8-9-10 The man known as the Father of the Constitution is __________. how to solve this plzzzzz mark you brinlast make a word that means to send out in iready If the atomic number of chlorine is 17 and the atomic mass is 35.5 amu, then the molar mass of chlorine is?