The cost to ship a package is a flat fee of 75 cents plus 25 cents per pound. 1. Declare a const named CENTS_PER_POUND and initialize with 25. 2. Get the shipping weight from user input storing the weight into shipWeightPounds. 3. Using FLAT_FEE_CENTS and CENTS_PER_POUND constants, assign shipCostCents with the cost of shipping a package weighing shipWeightPounds.

#include
using namespace std;

int main() {
int shipWeightPounds;
int shipCostCents = 0;
const int FLAT_FEE_CENTS = 75;

/* Your solution goes here */

cout << "Weight(lb): " << shipWeightPounds;
cout << ", Flat fee(cents): " << FLAT_FEE_CENTS;
cout << ", Cents per lb: " << CENTS_PER_POUND;
cout << ", Shipping cost(cents): " << shipCostCents << endl;

return 0;
}

Answers

Answer 1

Answer:

Replace /* Your solution goes here */

with

const int CENTS_PER_POUND = 25;

cout << "Weight(lb): ";

cin >> shipWeightPounds;

shipCostCents = FLAT_FEE_CENTS + CENTS_PER_POUND * shipWeightPounds;

Explanation:

This line declares and initializes CENTS_PER_POUND as constant integer to 25

const int CENTS_PER_POUND = 25;

This line prompts user for weight of shipment

cout << "Weight(lb): ";

This line gets weight from the user

cin >> shipWeightPounds;

This line calculates the cost of shipment

shipCostCents = FLAT_FEE_CENTS + CENTS_PER_POUND * shipWeightPounds;

Answer 2

In this exercise we want to use computer and python knowledge to write the code correctly, so it is necessary to add the following to the informed code:

So we can see that in the attached image we find the code that corresponds to the answer to this question.

Are analyzing the code informed in the question we can say that:

This line declares and initializes CENTS_PER_POUND as continual number to 25, the code that we have is:

const int CENTS_PER_POUND = 25;

cout << "Weight(lb): ";

cin >> shipWeightPounds;

shipCostCents = FLAT_FEE_CENTS + CENTS_PER_POUND * shipWeightPounds;

See more about computer at brainly.com/question/950632

The Cost To Ship A Package Is A Flat Fee Of 75 Cents Plus 25 Cents Per Pound. 1. Declare A Const Named

Related Questions

Harlequin frogs are an endangered species that live in a small area of Costa Rica. The reasons for the species' decline is unknown. Scientists want to create a computer simulation of the frogs' environment and determine how best to protect the frogs.
Which of the following is NOT true about the scientists' simulation?
a. The scientists must be careful of how many variables they include in their simulation so they do not cause further harm to the frogs.
b. The scientists can try a variety of different simulations and analyze the data to see which one is the most effective.
c. Based on the results of the simulation, scientists can develop a plan to save the Harlequin frogs before they become extinct.
d. The scientists can incorporate other factors, such as square footage of protected land, in the simulation.

Answers

Answer:

a. The scientists must be careful of how many variables they include in their simulation so they do not cause further harm to the frogs.

Explanation:

It is not statistically accurate to assume that the number of variables included in the simulation would cause further harm to the frogs because we need to remember that a simulation is simply a computerized imitation of a real situation, which is usually not totally alike with a real process.

So in no way from a statistical standpoint, does the scientists' decision on the number of variables causes direct harm to the frogs.

You are a network technician for a small corporate network. The network is connected to the internet and uses DHCP for address assignment. The owner of the company in the executive office and a temporary employee in IT Administrator office both report that their workstations can communicate with some computers on the network, but cannot communicate with the internet. You need to diagnose and fix the problem.

In this lab, your task is to complete the following:

-Use the following troubleshooting tools to diagnose the problem in the network:
-the ping, ipconfig, or tracert command utility
-the network and sharing center in the windows 10 or windows server 2016 operating system
-the DHCP server console in the windows server 2016 operating system

Answers

Answer:

Explanation:

The first thing that you should do would be to ping the computer in the Networking Closet, if this fails then the next step would be to ping the service provider. If both of these pings fail it is most likely because the configuration of the IP addresses are configured wrong. In this case use the command prompt to type in the following

ipconfig /all

this will open up the entire configuration info. If the problem is truly the configuration then your DNS address should show up as not configured. This can happen when a DHCP is enabled. Check if DHCP is enabled, if so then you would need to type the following into the command prompt

ipconfig /renew

This will renew the ip address information from the DHCP server and should create the proper DNS configuration as well and solve the issue.

Following are the solution to the given question:

Initiate troubleshooting in the Executive by exploring the scope of the connectivity issue. Ping the laptop in the network closet from your workstation. A ping to a location failed.Ping your internet service provider. The ping to the address fails.Verify any connection issues here between workstations, the Network Closet computer, and also the ISP in the IT Administrator's office. (Pings to both locations failed.) The issue is now almost definitely due to the channel's IP setup.To examine the Local Area Connection setup, open the cmd in the Executive Office and type ipconfig /all. Some of the following issues must be noted: The workstation's default route and DNS server addresses have still not been configured.It implies that connectivity is confined to computers just on the local network.Its DHCP Enabled option has been enabled. Yes, a DHCP server is configured just on the workstation. Its line with the DHCP Server address wasn't shown. This means the workstation was unable to communicate with the DHCP server. This IP address corresponds to an APIPA domain (169.254.0.1 to 169.254.255.254). It shows that the computer assigns an IP address to it only. The workstation would be capable of communicating with the other hosts on the local network who have given their unique IP via APIPA.Verify that its DHCP service for the local area network is active and active in the Network Closet.CORPSERVER should be the first option in Hyper-V Manager. To see all the virtual machines, open the window. Join by correcting CorpDHCP (maximize the window for easier viewing if desired). For launch, the DHCP console in Server Manager, go to Tools > DHCP. CorpDHCP.CorpNet.com must be extended. IPv4 enlargement.Scope [192.168.0.1] Subnet1 has a dropdown, suggesting that this is not operational. Select Activate from the menu bar of Scope [192.168.0.1] Subnet1. The scope's "dislike" button has gone, and the DHCP service for the local network is now operational.Launch the command prompt inside the Executive and type ipconfig /renew. This will obtain the new Ip from the DHCP server and change the Ethernet connection settings.To check the Internet setup, type ipconfig /all. You should now see lines for the default gateway, DNS server, and DHCP server, and a new IP address in the DHCP scope for the local network.Ping the ISP in the Executive Office to confirm that the problem has been resolved. Your ping to the ISP is good.Rep step 6 in the IT Administrator Office to fix the dispute with the workstations.

Learn more:

brainly.com/question/14728944

Which internet service type forced users to choose between using the phone and using the internet

Answers

Answer:

User interface.

Explanation:

Click the crown at the top of this answer if this helped ;)

I can’t get answers because the ads won’t load help me

Answers

Answer: Get better wifi

Explanation: This maybe a router problem, Go to your router and reset it by unplugging the power chord, After 30 seconds plug it back in and wait for your wifi to start back up. Your ads should load now. Have a good day.

You need to replace a broken monitor on a desktop system. You decide to replace it with a spare monitor that wasn't being used. Even though the monitor is made by a different manufacturer than the desktop computer, it still works with the computer.

Which computer design concept makes this possible?


Firmware


Plug and play


Componentization


Standardization

Answers

Firmware hope this helps!!
The standardisation of connecting cables like DVI makes this possible
Other Questions
An aerospace engineering company borrowed $100,000 from the bank to get their company started. The company promised to pay a monthly payment of $500 to pay off the loan. The company could potentially turn profits of $20,000 a month. How long will it take the company to make $200000? * Write an equation to represent the measures of the angle When all the grains in a rock are large and easy to see, the rock is described as a. extrusive. b. fine grained c. coarse grainedd. nonbanded. If x 9 is a factor of x2 5x 36, what is the other factor? Mass is a type of property that can be measured using a scale. Is mass considered a physical property or a chemical property? How do you know? Its not a multiple choice Work out the surface area of this cylinder.Please help. In a binary ionic compound, the electrons are What is a nutrient? Define the term How did the expansion of slavery to the west cause conflict between the north and the south Select two ratios equivalent to the ratio of white socks to brown socks. pls help Agnes makes a round trip at a constant speed to a star that is 16 light-years distant from Earth, while twin brother Bert remains on Earth. When Agnes returns to Earth, she reports that she has celebrated 20 birthdays during her journey. (a) What was her speed during her journey Which one should I choose my brain cells dont exist at this point. What do I plug into a calculator to find the value of 777 after a 7% increase? a777 x 1.07 b777 + 7 c777 x 0.07 d777 x 0.17 A 40acre field produces 600 bushels of wheat. At the same rate, how many bushels will a 75acre field produce? How many cents are in $1 Write the following as an inequality.w is greater than -9 and less than or equal to 5Use w only once in your inequality. Nietzsche heavily critiques the church he seems to think that the church encourages in force people to Jethro humanity what do you think Nietzsche would have to say about the church today in your opinion or his criticism still valid 3N3 NWhat is the net force of the box? what is 220% of 15? ............ a stream of water holds thriving bacteria if dropped conditions caused the stream to dry up how would the bacteria most likely respond to survive