#include <iostream>
using namespace std;

// function prototypes
float get_Price();
int get_Type();
void tax(float, int);

// start main function
int main() {
float price = 0; // should > 0

int type = 0; // 1 -> Electronic
// 2 -> Sports & Outdoor
// 3 -> Vaccine

price = get_Price;
type = get_type();

cout << "Price before tax = " << price << "\n\n";
tax(price, type);
cout << "Total price after tax = " << price << '\n';

return 0;
}

// start new user-defined functions
void get_Price() {
float p = 0;

while (p < 0) {
cout << "Item price (RM): ";
cin >> p;
}

return p;
}

float get_Type() {
int t == 0;

do {
cout << "\n";
cout << "1 -> Electronic\n";
cout << "2 -> Sports & Outdoor\n";
cout << "3 -> Vaccine\n";
cout << "Item type (1,2,3): ";
cin >> t;
} while (t > 1 || t < 3);

cout << "\n";
return t;
}

// tax is based on item types as follows:
// 1 -> Electronic => 5%
// 2 -> Sports & Outdoor => 3%
// 3 -> Vaccine => 1%
void tax(float p, int t) {
float tax = 0;
switch (t) {
case 1: tax = p * 5 / 100; break;
case 2: tax = p * 3 / 100;
case 3: tax = p * 1 / 100;
}

cout << "Tax cost = " << tax << "\n";
p += tax;
}

What problem?​

Answers

Answer 1

Answer:

10⁶666666666666666666666666

vgggjhhii9

Explanation:

uyyyyyyyy6666y6666666666


Related Questions

define an array of 12 structures of type DayMon. Name the array maps[] and initialize the array with the names of the 12 months in a year and the number of days in each month.

Answers

Answer:

#include<stdio.h>

int main(){

 

   int i,n;

   char* maps[] = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"};

   for(i=0;i<12;i++){

       printf("%s\n", maps[i]);

   }

   printf("\n");

 

   int days[] = {31,28,31,30,31,30,31,31,30,31,30,31};

   for(i=0;i<12;i++){

       printf("%s %d\n", maps[i], days[i]);

   }

   printf("\n");

 

   return 0;

}

Explanation:

The C source code above declares two arrays, the maps array which is initialized with the months of the year and the days array which is initialized with the number of days of each month in the maps array. Both arrays are printed out side by side like a table of months and the days in each month.

help with these 2 questions srry for the horrible pic​

Answers

Answer:

the first one is email address nd the second one is semi-blocked letters ? sorry if im wrong.

Explanation:

Answer:

I cant read

Explanation:

helpppp pleaseee thanksss​

Answers

Answer:

B!

Explanation:

i think... Here is an example

Line installers must complete a four-year university degree program in order to be hired.

True

False

Answers

Answer:

Line installers must complete a four-year university degree program in order to be hired.

Explanation:

true

Yes this fact is true

CAN SOMEONE DO OR LOOK UP THE PIE CHART FOR THIS ANSWER PLS AND I WILL MARK YOU BRAINLIEST BUT PLSSS HELP MEEEE!!!

Answers

Answer:

I highly recommened you use ggl charts.

Explanation:

It's free. ALL YOU NEED IS AN GGL ACCOUNT. You can also choose many types of graph you want.

create a pl/SQL block to retieve and display information for a specific pledge. Display the pledge ID, donor ID, Pledge Amount, total paid so far and the difference between the pledge amount and total paid amount

Answers

Answer:

SELECT pledge_ID,

             donor_ID,

              pledge_amount,

              total_paid,

              pledge_amount - total paid

   FROM pledges;

Explanation:

The SELECT statement initiates the display command. It states the variables to be selected.

The variables are usually separated by a comma.

The FROM statement indicates the location from which the variables ne selected from.

; signifies the end of the query, stating that the query should be run.

Which file format should Wilson use for sending these images?

Answers

I can’t see the answer choices but I would like to say it’s JPEG am not sure. Could you at least provide the answer choices? Thanks!
JPEG I assume, please leave more context clues next time

If you're a beginner to data analysis, what is the first thing you should check when you build data queries?
a. workflow diagrams
b. calculations
c. differentials
d. record counts

Answers

D. Record Counts, trust me I took notes on this and it’s also in my quizlet

Your colleague has made a suggested change to an important document you are both working
You disagree with their suggested change. They will be reviewing the changes you make before
the final version of the document is submitted to your boss. You both work remotely and are in
radically different time zones. What is the best step to take next?

Answers

Answer:

come to an agreement with your partner on how you can modify or change the suggested change

Explanation:

The best step to take is to set up a virtual meeting between both of you, find out why the reason for the disagreement, and then settle the issues.

What is the virtual meeting about?

Based on the fact that both of you cannot physically meet since both are in different location, the right thing to do is to set up a computer virtual meeting.

Conclusively, the parties involved can trash out issues and misconceptions before submitting to your boss.

Learn more about document from

https://brainly.com/question/16650739

#SPJ2

Consider six memory partitions of 128 KB, 512 KB, 192 KB, 256 KB, 512 KB, and 448 KB (in order). How would each of the first-fit and best-fit algorithms place processes of 210 KB, 420 KB, 110 KB, 450 KB, and 76 KB (in order)

Answers

Answer:

Following are the solution to the given question:

Explanation:

Please find the image file in the attachment.

The first fit (FF) System for both the allocation for capital for the first attach appends information to just the memory through scanning the very first space, that's at least wide enough to accommodate the data, from the start. So space is allocated to information.

Its best solution is to allocate the least stable division which meets the challenging performance effects. It assessment searches throughout the whole list of free partition for the very first time, taking into account the smallest appropriate hole. It tries to find another whole near the process required size.

Certification is a requirement in pursuing a career as a line installer.

True

False

Answers

Answer:

False

Explanation:

This is rue because, in line installation career, there is no single need for certification but rather to acquire the required skill.

The ability to learn how to be a line installer from an experienced personel is far important than someone who tried to obtain a certification without any acquired skilled to show for it.

Answer:

False

Explanation:

edg2021

Employer training or apprenticeships are required of electrical line installers and repairers. These programs often last up to five years. Certification is not mandatory; however, certification for line installers and repairers is available and does show that you have the right skills and knowledge for this technical job. Often learning on the job is the best way to get experience in this type of position, but it still requires basic understanding of equipment, data communications, and the physical layer of a network.

The tags are always enclosed within a pair of
(a) curly
(b) square
(©) angular​

Answers

Answer:

(©) angular​

Explanation:

The tags should always be enclosed with a pair of angular brackets

In the case of Hyper text markup language (HTML) the brackets that should be used is angular brackets i.e. (< and >)

So as per the given situation, the option c is correct

And, the rest of the options are incorrect

Therefore the tags that should always enclosed with a angular pairs

Answer:

(©) angular

Explanation:

The tags are always enclosed within a pair of angular.

If an element contains text or another element, it is marked using a ______tag set in which an opening tag and a closing tag enclose the element content.

a. single-sided
b. two-sided
c. one-sided
d. double-sided

Answers

Answer:

b. two-sided

Explanation:

If an element contains text or another element, it is marked using a two-sided tag set in which an opening tag and a closing tag enclose the element content.

For example, <p>it is very important to "check" the expiration date of goods before buying them.</p>. In this scenario, the <p> represents the opening tag while the </p> represents the closing tag in HTML programming.

It seems like no matter what I do this code is still giving me the error "
Program end never reached (commonly due to an infinite loop, infinite recursion, or divide/mod by 0).
Tests aborted"
import java.util.Scanner;
public class DivideByTwoLoop {
public static void main (String [] args) {
int userNum = 0;
userNum = 20;
while(userNum >= 1){ System.out.print(userNum + " ");
userNum = userNum/2;
}
if((userNum >1) && !(userNum ==0)){
System.out.print(userNum);
} else {
}
while(userNum !=0) System.out.print(userNum + " ");
System.out.println("");
return; }
}

Answers

Explanation:

I ran this on an online compiler with no issues, so I would try to use a different compiler if I were you. For example, sometimes the compiler can run a different program than the one you're currently on.

I would also recommend cleaning up the code. You don't need anything outside of the first part, as the latter 2 parts don't do anything because the number is already 0 by then.

Here's what I ended up with:

int userNum = 20;

       

       while(userNum >= 1){

           System.out.print(userNum + " ");

           userNum = userNum/2;

       }

       

       return;

My output is:

20 10 5 2 1

We have discussed four approaches to dealing with moral issues. Which approach is closest to your way of analyzing moral issues? Now that you are aware of different approaches, do you think you might modify your approach to include other perspectives? Explain why or why not.

Answers

Answer:

The four approaches are: The principle approach, in which decisions are made according to a principle such as the Ten Commandments or the Golden Rule The consequence approach, in which decisions are made according to their likely outcomes The virtue/character approach, in which decisions are made according to the ...


on the surface of a magnetic disk fragmentation occurs when file is stored in non-contigious sectors on the disks surface?

Answers

manyetik disk parçalanması, dosya disk yüzeyinde bitişik olmayan sektörlerde depolandığında meydana gelir.

Derek is creating an animation for his class project. What is the first step Derek should follow while creating the animation?
A. storyboarding
B. preparing a script
C. adding voices to the animation
D. choosing an animation tool

Answers

Answer:

1. Script,2.Storyboarding,3.Choosing a Animation tool, 4. Adding voices to the animation

Explanation:

Script comes first since that you have to follow everything on there, then you have to make a illustration of the storyboard, then it comes to choosing which animation tool is better, and last but definitely not least is adding voices to that animation.

Answer: preparing a script

Explanation:

From 1995 to 1997, the number of web users

Doubled
Tripled

Quadrupled

Remained the same

Answers

Quadrupled. I think sorry if you get it wrong i do not remember much
Yup it quadrupled in 1997

Repeated execution of a set of programming statements is called repetitive execution.

a. True
b. False

Answers

Answer:

False

Explanation:

(Comparable interface) Write Rectangle class that implements the Comparable interface. Override the equals method so that two Rectangle objects are equal if their areas are the same.

Answers

Answer:

class Rectangle(object):

   def __init__(self, area):

       self.area = area

   def __eq__(self,other):

       return self.area == other.area

d = Rectangle(43)

e = Rectangle(23)

print(d == e)

Explanation:

The python program defines a class called Rectangle that accepts one argument 'area' and compare one instance of the object with another instance. The '__eq__' method helps to define the equality of the instance based on their area values. If the areas are equal, the equality statement returns true and false if not.

1. How many column can you insert in a MS Word in maximum?
A. 40
B. 45
C. 50
D. 55
2 What​

Answers

Answer:

63 columns

Explanation:

In Microsoft Word you can insert a table with up to 63 columns, that is the limit to the number of columns allowed in a Word document.

brainliest? plz!

What term is the ability to restore service quickly and without lost data if a disaster makes your components unavailable or it destroys data

Answers

Answer:

"Recoverability" is the appropriate solution.

Explanation:

The above refers to either the DBMS work timetables where only certain processes are conducted out only when all transactions where such modifications are learned by the submission are implemented or operated. This technique is used to reinstate make informed even without system failures.

Suppose a webpage contains a single text field. We want to make the page such that a user can immediately start typing in the text field without clicking on it. What is correct way using?
1. .
2. .
3. .
4. Can't be done with only HTML5, need help of Javascript or something else.

Answers

Answer:

The answer is "Option 2".

Explanation:

In HTML5, text inputs use an autofocus attribute, which, when the page is loaded, uses a template to concentrate primarily on text fields. This attribute is a Boolean property that represents the HTML autofocus attribute, showing if the related <select> element will receive an output focus whenever the page loads if it is overruled by the user. An only form-associated entity can have this property specified in a text.

Evaluate a career in the telecommunications industry that most interests you. What about the career appeals to you?
What qualifications do you already possess to make you successful in this career? Which skills do you still need to
develop to pursue this career?
Your answer should be at least 150 words in length.

Answers

Answer:

Network administrator and programmer.

Am still in A-level, am doing Physics, chemistry, Maths and ICT.

I have an A in physics, B in Chemistry and Maths and A† in ICT

George wanted to make his website more interactive. He decided to create animation for his website. Which software can George consider to design this animation?

A. Reaper
B. Vegas Pro
C. Flash
D. Audacity
E. Quark Xpress

Answers

Answer:

C. Flash

Explanation:

Adobe Flash is a discontinued multimedia software platform used for production of animations, Rich web applications, desktop applications, mobile apps, mobile games, and embedded web browser video players. Flash displays text, vector graphics, and raster graphics to provide animations, video games, and applications.

-Wikipedia

Answer:

C.Flash

Explanation:

Select the statement below that would most likely appear in a description of the Link-State routing protocol. Assume the referenced routers are all part of the same network: Group of answer choices Each router talks, sends updates, to all other routers on the network Each router only talks, sends updates, to its neighbors Each router will be controlled by a large master router All of the above

Answers

Answer:

Each router only talks, sends updates to its neighbors

Explanation:

There are two types of routing protocol, they are, link-state and distance-vector routing protocol. The link-state protocol is performed by nodes or routers prepared for packet switching. Each node is responsible for mapping out the route of the network, using the reachability protocol to assert the connectivity to neighboring nodes, updating its route and sending the link-state update messages periodically to neighboring nodes.

A business owns a printer but the printer is used for cloud printing purposes. What type of resource is this?

Answers

I’m confused , what are the choices ?

Identify the potential problem(s) involved with generating or collecting valid data.
A. Cost.
B. Bias.
C. Error.
D. Access to data.
E. All of the above.
F. None of the above.

Answers

Answer:

B. Bias.

C. Error.

Explanation:

Two of the biggest problems that can occur when generating or collecting valid data are Bias and Errors. Biases automatically make the collected data invalid since this causes the data those involved to purposefully skew the data towards the direction that best suits their biases/beliefs which makes the entire study invalid and therefore the data as well. The second main problem would be human error such as entering the wrong data numbers, choosing the wrong subject, losing the data itself, etc. Humans make mistakes and making one during a study can immediately invalidate all of the data that has been collected.

Which one of the following choices identifies employer-sponsored health insurance?

a. NPI
b. CMP
c. NDC

Answers

Answer:

The answer is option A "NPI"

Explanation:

* The National Provider Identifier (NPI) is a Health Insurance Portability and Accountability Act (HIPAA) Authoritative simpleness Standard. The NPI is an unique ID number for covered medical services suppliers. Covered medical care providers and all well being plans and medical services clearing houses should use the NPIs in the managerial and monetary exchanges received under Health Insurance Portability and Accountability Act.

* The NPI is a 10-digit, insight free numeric identifier (10-digit number). This implies that the numbers don't convey other data about medical care providers, for example, the state in which they live or their clinical strength. The NPI should be used in lieu of inheritance supplier identifiers in the Health Insurance Portability and Accountability Act principles exchanges.

* In the US and different nations that don't have national health systems, employers frequently offer medical coverage as an advantage to workers.

Universal Containers (UC) wants to customize basic Salesforce Reports using Lightning Experience. In which two ways can Reports be customized? Choose 2 answers v A. Add a chart. B. Add a Lightning Component. C. Add links to external pages. D. Add a filter.

Answers

Answer:

A. Add a chart.

D. Add a filter.

Explanation:

Workflow management systems can be defined as a strategic software application or program designed to avail companies the infrastructure to setup, define, create and manage the performance or execution of series of sequential tasks, as well as respond to workflow participants.

An example of a work management system is Salesforce.com.

A Salesforce Reports using Lightning Experience refers to an intuitive and powerful software tool used for visualizing and analyzing Salesforce data such as customization, filtering, grouping and creating a summary report.

In this scenario, Universal Containers (UC) wants to customize basic Salesforce Reports using Lightning Experience.

Hence, the two ways in which Reports can be customized are by adding a chart and a filter.

Other Questions
A student adds different amounts of ice to four samples of water and records the change in temperature after 30 minutes. What is the independent variable in this investigation? please urgent please beg At the neighborhood grocery, 55 pounds of steak cost \$20.60$20.60. How much would it cost to buy 44 pounds of steak? (FOR PSYCHOLOGY) 25 pts!! Santa, at this time of year, is preparing for Christmas and he is going over lastyear's list of all the good stuff he brought the children of the world. As he is doingthis, his helpers are talking about what the children want this year. Explain whatmemory errors could occur on Christmas and why they could happen. Explain whatSanta can do to prevent them which is bigger -5/4 or 128%? Which correctly lists the three plates that border the Indo-Australian Plate? The cost of a high-quality 250-horsepower compressor was $13,500 when recently purchased. What would a 608-horsepower compressor be expected to cost Ella invested $2,700 in an account paying an interest rate of 5.4% compoundedmonthly. Assuming no deposits or withdrawals are made, how long would it take, tothe nearest year, for the value of the account to reach $4,020? 11. Businesses prefer to build factories in countries with the rule of law becauseA. businesses prosper under strict government regulationsB. the legal code favors producers over eonsumersC. the police are more likely to punish striking laborersD. it lessens the unpredictability that makes investing more tisky Which examples would be considered primary sources? Check all that apply.WHATTSSS THE ANSWER! a review of an academic paper a legal document a letter to a government official a chapter from a history textbook a PBS documentary a weapon from the Stone Age Plz help last question on my test50.Which type of cell must be produced more frequently than the other types?1)brain cells2)red blood cells3)muscle cells4)liver cells5)stomach lining cells Assume the following information about the market and RoseApple's stock. RoseApple's beta = 1.50, the risk-free rate is 2%, the market risk premium is 8.0%. Using the SML, what is the expected return for RoseApple's stock? Which of the objects below is used to sharpen your lpiz?A. El borradorB. La mochilaC. La grapadoraD. El sacapuntas can anyone help me with math 164 is 184% of what number? 72 is 0.04% of what number?please include proof In the diagram FEL ~ JOS Which ratios are equivalent to tan F? Select all that apply. (Dont just choose one) Two white keys on a music keyboard with a black key between them form a ______ second Minor Major What is the slope of this graph? And is it continuous or discrete? Where did the first public school in the colony develop?A.New England coloniesB. Middle ColoniesC. Southern ColoniesD. Both New England and Middle Colonies What type of triangle is formed by joining the points D(7, 3), E(8, 1), andF(4, -1)? Steam Workshop Downloader