Last week I was able to go to see the new Dr. Strange movie. I thought it was pretty awesome. When I was looking at buying tickets I wanted to make sure I got as many discounts as I could get. By default a movie ticket is $15. If you go before 5pm, the ticket price is $12.50. If you plan on buying in bulk (5 or more tickets) you will receive a 10% discount. If you are a student, you get a 15% discount.
Write a program that asks the user if they are going to the movie before 5PM (1 for yes, 0 for no), how many tickets they are going to buy (an integer greater than 1), and if they are a student (1 for yes, 0 for no). Print out the total cost for the amount of tickets you would like to buy.
Sample Case 1:
Are you going to the movie before 5PM? (1 - Yes, 0 - No)
0
How many people are going?
2
Are you a student? (1 - Yes, 0 - No)
0
The group’s price is $30.00.

Answers

Answer 1

The program is an illustration of conditional statements.

Conditional statements can have single condition or multiple conditions

The complete program

The program written in Python is as follows:

price = 15

timeCheck = int(input("Are you going to the movie before 5PM? (1 - Yes, 0 - No)"))

if timeCheck == 1:

   price = 12.5

numPeople = int(input("How many people are going?"))

if numPeople>= 5:

   price = price * 0.90 * numPeople

else:

   price = price * numPeople

student = int(input("Are you a student? (1 - Yes, 0 - No)"))

if student == 1:

   price = price * 0.85

print("The group's price is",price)

Read more about Python programs at:

https://brainly.com/question/13246781

#SPJ1


Related Questions

There are a number of Dealership stores opening, so a decision is made that when a car is created, it should be passed a pointer to its dealership along with its make and model. It should store the dealership pointer in an appropriate data member. Write the data member and necessary constructor declarations in the space provided.

Answers

The data member based on the information about the dealership stores is illustrated below.

What are data members?

Data members are the members that are declared with any of the fundamental types like the pointer, reference, array types, and user-defined types.

The data members and necessary constructor declaration will be:

class Car{

public :

string m_make ;

string m_model;

double m_earnedOnCar;

//Added data member for the car dealership

Car* m_dealerShip;

public :

Car(string str1,string str2){

this->m_make=str1;

this->m_model=str2;

}

//Address constructor to add the dealership to the car

Car(Car* car){

this->m_dealerShip=car;

}

//copy constructor to copy dealership of the car

Car(const Car &car) {

this->m_dealerShip=car.m_dealerShip;

}

//add method to add the dealership of the car

void add(Car* car){

this->m_dealerShip=car;

}

double getAmmountEarnedOnCar(){

return this->m_earnedOnCar;

}

Learn more about data on:

https://brainly.com/question/4219149

#SPJ1

In _________, the process requests permission to access and modify variables shared with others. A) entry section B) critical section C) exit section D) remainder section

Answers

In entry section, the process requests permission to access and modify variables shared with others.

What is Entry section?

Entry Section is known to be an aspect of any given process that tells the entry of a specific process.

Note that it often allows one process to enter and alter the shared variable and as such, In entry section, the process requests permission to access and modify variables shared with others.

Learn more about entry section from

https://brainly.com/question/1637572

#SPJ1

Given class triangle (in files triangle.h and triangle.cpp), complete main() to read and set the base and height of triangle1 and of triangle2, determine which triangle's area is larger, and output that triangle's info, making use of triangle's relevant member functions.
ex: if the input is:
3.0 4.0
4.0 5.0
where 3.0 is triangle1's base, 4.0 is triangle1's height, 4.0 is triangle2's base, and 5.0 is triangle2's height, the output is:
triangle with larger area:
base: 4.00
height: 5.00
area: 10.00
given (in main.cpp):
#include
#include "triangle.h"
using namespace std;
int main(int argc, const char* argv[]) {
triangle triangle1;
triangle triangle2;
// todo: read and set base and height for triangle1 (use setbase() and setheight())
// todo: read and set base and height for triangle2 (use setbase() and setheight())
// todo: determine larger triangle (use getarea())
cout << "triangle with larger area:" << endl;
// todo: output larger triangle's info (use printinfo())
return 0;
}

Answers

The C++ program that would complete the main () and set the base and height of triangle1 and of triangle2 is:

main.cpp

#include <iostream>

#include "Triangle.h"

using namespace std;

int main()

{

   Triangle Tri1;  

Triangle Tri2;

   double base1, height1, base2, height2;

   cout << "Enter a base for your Triangle1: ";

   cin >> base1;

   cout << "Enter a height for your Triangle1: ";

   cin >> height1;

   cout << endl;

   cout << "Enter a base for your Triangle2: ";

   cin >> base2;

   cout << "Enter a height for your Triangle2: ";

   cin >> height2;

   cout << endl;

   

   cout << "################################" << endl;

   

   cout << "Triangle with larger area:" << endl;

   if ((0.5)*base1*height1 > (0.5)*base2*height2){

      Tri1.setValues(base1, height1);

      Tri1.getValues();

      cout << "Area: " << Tri1.getArea() << endl << endl;

}

else{

 Tri2.setValues(base2, height2);

 Tri2.getValues();

    cout << "Area: " << Tri2.getArea() << endl;

}

   

   return 0;

}

Read more about C++ programs here:

https://brainly.com/question/20339175

#SPJ1

PHOTOGRAPHY: In 200 words or more explain the difference between deep and shallow depth field and when would you use either technique when taking a photograph?

Answers

The differences are:

A shallow depth of field is said to be a small area in view and its background is always blurred but a A deep depth of field is known to be one that captures a bigger area in view and its image are said to be sharp and clear.

What is the difference between deep and shallow focus?

The Images gotten in shallow focus is one that needs little or shallow depths of field, and its lenses also needs long focal lengths, and big apertures. But Deep focus images needs small focal lengths and long  depths of field.

In the case above i recommend deep depth field and therefore, The differences are:

A shallow depth of field is said to be a small area in view and its background is always blurred but a A deep depth of field is known to be one that captures a bigger area in view and its image are said to be sharp and clear.

Learn more about photograph from

https://brainly.com/question/13600227

#SPJ1

g A user receives an email from an unknown source with a link to a website asking for their password. The userenters in their password, but nothing happens. What is the user a victim of

Answers

Based on the information provided, this user is a victim of phishing.

What is phishing?

Phishing can be defined as a type of cyberattack which involves making an attempt to obtain sensitive user information such as a password, especially by disguising as a trustworthy entity in an electronic communication (email), which is usually over the Internet.

In this context, we can infer and logically deduce that this user is a victim of phishing because he or she received an email from an unknown source with a link to a website asking for their password.

Read more on phishing here: https://brainly.com/question/23850673

#SPJ1

Which kind of license is a legal agreement that allows multiple users to access the software on the server simultaneously?.

Answers

Answer:

A network license

Explanation:

Spectrum Technologies uses SHA 256 to share confidential information. The enterprise reported a breach of confidential data by a threat actor. You are asked to verify the cause of the attack that occurred despite implementing secure cryptography in communication. Which type of attack should you consider first, and why?

Answers

The type of attack in the case above that a person need to consider first, is Misconfiguration attack.

Why Misconfiguration attack?

Due to the fact that the company need to have configured a higher security hash algorithm instead of using the less-secure SHA 256 and as such the attack occurred.

Therefore, The type of attack in the case above that a person need to consider first, is Misconfiguration attack.

Learn more about Misconfiguration attack from

https://brainly.com/question/15702398

#SPJ1

Why is cyber security an important part of sending information using digital signals

Answers

Cyber security is an important part of sending information using digital signals. Because it keeps data safe while stored in the cloud and when they are transmitted. Option D is correct.

What are cybersecurity functions?

Analysts in cybersecurity defend an organization's hardware and network infrastructure against hackers and cybercriminals looking to harm them or steal confidential data.

When conveying information via digital signals, cyber security is a crucial component. because it protects data as it is sent and stored in the cloud.

Hence, option D is correct.

To learn more about cybersecurity  refer;

https://brainly.com/question/27560386

#SPJ1

2. How can Tailwind Traders ensure applications use geo-redundancy to create highly available storage applications?

Answers

Tailwind Traders CAN ensure applications use geo-redundancy to create highly available storage applications by:

Running one's application in read-only mode.Enforcing its use.

What is geo redundant storage?

Geo-redundant storage (GRS) is known to be a device that tends to copy one's data synchronously three times in the same or inside a single physical location in the primary region via the use of LRS.

Note that in the case above,  Tailwind Traders CAN ensure applications use geo-redundancy to create highly available storage applications by:

Running one's application in read-only mode.Enforcing its use.

Learn more about Geo-redundant storage from

https://brainly.in/question/6073238

#SPJ1

Nolan is writing an after action report on a security breach that took place in his organization. The attackers stole thousands of customer records from the organization's database. What cybersecurity principle was most impacted in this breach

Answers

The cybersecurity principle was most impacted in this breach is known to be confidentiality.

What is confidentiality?

Confidentiality is a term that connote the act of respecting a person's privacy, and not sharing personal or any sensitive information about a person to others.

Note that, The cybersecurity principle was most impacted in this breach is known to be confidentiality.

Learn more about confidentiality from

https://brainly.com/question/863709

#SPJ1

What is output? Item jar = new Item(); Item ball = new Item(); System.out.println(Item.count); public class Item{ public static int count = 1; public Item(){ count++; } } Group of answer choices 1 Error: syntax error 3 2

Answers

Answer:

It's 3

Explanation:

now if you pay attention, you've assigned count as 1 in the beginning and you've asked the class to increase the count variable by 1

and when the program is compiled the code is going to count ball and Jar as numbers

mean jar.count is 2

and ball.count is 3

that's all

Identify the true statements about the approach to privacy around the world. a. Uncertainty concerning the nature, extent, and value of privacy is widespread. b. The United States has the most centralized and consistent approach to personal privacy issues. c. A legal right to privacy as recognized within the United States is acknowledged by all western countries. d. Significant disagreement about privacy exists within the United States.

Answers

Answer:

a. Uncertainty concerning the nature, extent, and value of privacy is widespread.

d. Significant disagreement about privacy exists within the United States.

Given the doubt and uncertainty of a relational exchange, what is necessary to ensure the customer's ongoing commitment to the Spero brand?

Answers

The factor that is necessary to ensure the customer's ongoing commitment to the Spero brand is that:

Know your Customer Expectations.Study your Customer types and Journeys.Examine How Brand Perception Has been altered Over Time, etc.

How do one show commitment to customers?

This can be done by:

Giving your customer relevant and valuable content/brand.Form a customer community.Share success stories linked to the brand.

Therefore, The factor that is necessary to ensure the customer's ongoing commitment to the Spero brand is that:

Know your Customer Expectations.Study your Customer types and Journeys.Examine How Brand Perception Has been altered Over Time, etc.

Learn more about brand from

https://brainly.com/question/25689052

#SPJ1

A security specialist discovers a malicious script on a computer. The script is set to execute if the administrator's account becomes disabled. What type of malware did the specialist discover

Answers

The security specialist has discovers a malicious script on a computer known as a logic bomb.

Is logic bomb a type of malware?

A logic bomb is known to be a form of a malicious program that is set up or ignited if a logical condition is met, such as after a series of transactions have been done, or on a given date.

Therefore, The security specialist has discovers a malicious script on a computer known as a logic bomb.

Learn more about malware from

https://brainly.com/question/399317

#SPJ1

Answer:

Logic Bomb

Explanation:

Which load balancing method is not supported in equal cost multipath (ECMP) load balancing, but is supported in SD-WAN

Answers

The load balancing method that is not supported in equal cost multipath (ECMP) load balancing, but is supported in SD-WAN is Volume load balancing.

What is load balancing?

Load balancing is known to  be one that shares server loads in all of multiple resources  and also in all multiple servers.

Note that this method technique often works to reduce response time, and as such, The load balancing method that is not supported in equal cost multipath (ECMP) load balancing, but is supported in SD-WAN is Volume load balancing.

Learn more about load balancing from

https://brainly.com/question/13088821

#SPJ1

could you tell me the family link app code to unlock a phone please?

Answers

The family link app code needed to unlock a child's phone is typically generated on the parent's device.

Family Link

The family link app is an innovative feature which allows parents to lock and control their child's devices such as restricting the contents or apps on their child's phone, setting screen times, and many other parental control features.

You can learn more from a related question about parental control options here https://brainly.com/question/23509933

#SPJ1

You can use the keyboard/mouse, Insert Function box, and Sum button menu to insert functions in a formula. Which method do you prefer

Answers

The preferred method is using the keyboard/mouse to insert functions into formula

How to determine the preferred method?

The scenarios are given as:

Insert functions using the keyboard/mouse Insert functions without using the keyboard/mouse

Using the keyboard and the mouse to insert functions would be faster and more efficient, compared to not using the keyboard and the mouse

Hence, the preferred method is using the keyboard/mouse

Read more about keyboard and mouse at:

https://brainly.com/question/1245638?source=archive

#SPJ1

What is the process of identifying rare or unexpected items or events in a data set that do not conform to other items in the data set

Answers

Anomaly detection is the process of identifying rare or unexpected items or events in a data set that do not conform to other items in the data set.

What is Data?

This is referred to as a raw form of information and comprises of facts, numbers, etc.

Anomaly detection identifies abnormal data from a given set which is why it is the most appropriate choice.

Read more about Data here https://brainly.com/question/4219149

#SPJ1

Describe two features of a digital audio workstation that can be used to enhance a podcast

Answers

The two features of a digital audio workstation that can be used to enhance a podcast are DAW is truly vital in case you need expert sounding song. Or in case you need an unprofessional-sounding song.

What are the blessings of the use of a virtual audio workstation?

Digital audio workstations have revolutionized the manner song and audio recordings are made. With surely limitless tune counts, lightning-quick, specific modifying capabilities, plugins, and more, all of us can bounce in and begin recording and mixing.

Regardless of configuration, cutting-edge DAWs have a relevant interface that lets in the consumer to adjust and blend more than one recordings and track right into a very last produced piece. A computer-primarily based totally DAW has a few primary components: a computer, a legitimate card or audio interface, a virtual audio modifying software, and an audio or midi source.

Read more about the workstation :

https://brainly.com/question/24540334

#SPJ1

/* Stretch 1: Create a function called `getCountryWins` that takes the parameters `data` and `team initials` and returns the number of world cup wins that country has had.

Hint: Investigate your data to find "team initials"!
Hint: use `.reduce` */


fifa.js:
export const fifaData = [
{
Year: 1930,
Datetime: "13 Jul 1930 - 15:00",
Stage: "Group 1",
Stadium: "Pocitos",
City: "Montevideo",
"Home Team Name": "France",
"Home Team Goals": 4,
"Away Team Goals": 1,
"Away Team Name": "Mexico",
"Win conditions": "",
Attendance: 4444,
"Half-time Home Goals": 3,
"Half-time Away Goals": 0,
Referee: "LOMBARDI Domingo (URU)",
"Assistant 1": "CRISTOPHE Henry (BEL)",
"Assistant 2": "REGO Gilberto (BRA)",
RoundID: 201,
MatchID: 1096,
"Home Team Initials": "FRA",
"Away Team Initials": "MEX",
},

Answers

The function called `getCountryWins` which takes the parameters `data` and `team initials` and returns the number of world cup wins that country has had is:

The function

function getCountryWins(FRA) {

initialValue,

currentIndex,

return total + currentValue getCountryWins(FRA);

"World Cup wins": 2,

array.reduce(function(total, currentValue, currentIndex, arr), initialValue)

}

The above function calls the function that contains the data and team initials of the country France and then uses the reduce() method executes a reducer function for the array element.

Read more about javascript here:

https://brainly.com/question/16698901

#SPJ1

For which three everyday activities do people most typically use computers?

Answers

Answer:

Explanation:

People use computers to :

1. Communicate

2. Research

3. To better understand different aspects of their domain or just something they want to know.

4. Computers have the power to be obedient and do whatever people want, which makes them very efficient for a lot of tasks.

5. The fact that computers can run complex algorithms at an incredible speed is something that would be impossible for a person.

6. Computers can make people better understand the world.

7. An interesting fact, is that the brain works on electricity just like a computer, but also works like a computer. (imagine the neurons of the brain being bits.)

8. With the help of computers, we discovered more than 60 trillion of Pi's digits.

9. AI is a very powerful concept for computers because they can learn about anything over time, and get better than people at doing real-life tasks, which would make the overall human civilization better.

10. Computers could help us mathematically find Earth-like planets, which will be useful since in billions of years the sun will die.

11. The human robots, which would get one of the best human-made inventions, could simply change the world, into a way more efficient one, and the fact that our brain works just like the computer, makes us more like robots.

But, what if robots take over the world and kill all humans? Is that possible?

Nope. A robot will never kill anyone. Know why? Because robots will always be obedient to the code we write into them. Whatever if write into their chip, they will run(the code) that.

If a robot is coded to not kill anyone and kills someone, it is just like we wouldn't live in real life. No robot can overthink the code we put into them. People just think that robots will overtake control because of films and stories. That will never happen.

That's just how robots work. Humans are robots. But we can do whatever we want because the DNA doesn't program us to not do something. As humans, we can do whatever we think because we are programmed to not have limits in thinking. But, the robots have a limit. That limit is the script written into it.

Computers and AI have just advantages. No one will kill someone.

Write, compile, and test the MovieQuoteInfo class so that it displays your favorite movie quote, the movie it comes from, the character who said it, and the year of the movie: I GOT IT DONT WATCH AD.

class MovieQuoteInfo {
public static void main(String[] args) {
System.out.println("Rosebud,");
System.out.println("said by Charles Foster Kane");
System.out.println("in the movie Citizen Kane");
System.out.println("in 1941.");
}
}

Answers

Using the knowledge of computational language in JAVA it is possible to write a code that removes your favorite phrase from the movie. It consists of two classes in which one is driver code to test the MovieQuoteInfo class.

Writing code in JAVA:

public class MovieQuoteInfo { //definition of MovieQuoteInfo class

//All the instance variables marked as private

private String quote;

private String saidBy;

private String movieName;

private int year;

public MovieQuoteInfo(String quote, String saidBy, String movieName, int year) { //parameterized constructor

 super();

 this.quote = quote;

 this.saidBy = saidBy;

 this.movieName = movieName;

 this.year = year;

}

//getters and setters

public String getQuote() {

 return quote;

}

public void setQuote(String quote) {

 this.quote = quote;

}

public String getSaidBy() {

 return saidBy;

}

public void setSaidBy(String saidBy) {

 this.saidBy = saidBy;

}

public String getMovieName() {

 return movieName;

}

public void setMovieName(String movieName) {

 this.movieName = movieName;

}

public int getYear() {

 return year;

}

public void setYear(int year) {

 this.year = year;

}

//overriden toString() to print the formatted data

public String toString() {

 String s = quote+",\n";

 s+="said by "+this.saidBy+"\n";

 s+="in the movie "+this.movieName+"\n";

 s+="in "+this.year+".";

 return s;

}

}

Driver.java

public class Driver { //driver code to test the MovieQuoteInfo class

public static void main(String[] args) {

 MovieQuoteInfo quote1 = new MovieQuoteInfo("Rosebud", "Charles Foster Kane", "Citizen Kane", 1941);//Create an object of MovieQuoteInfo class

 System.out.println(quote1); //print its details

}

}

See more about JAVA at brainly.com/question/12975450

#SPJ1

What is the missing line of code? >>>from math th import >>> Point = [1,5) >>> bPoint [4.9]​

Answers

Answer:

I believe import math.

Do let me know if its correct.

Make up a python program that can do the following
Write a program to ask the user to input the number of hours a person has worked in a week and the pay rate per hour.​

Answers

The program to ask the user to input the number of hours a person has worked in a week and the pay rate per hour is as written below.

How to write a Python Program?

To write this program, we will pay the hourly rate for the hours up to 40 and 1.5 times the hourly rate for all hours worked above 40 hours. Thus

hrs = input("Enter Hours:")

h = float(hrs)

xx = input("Enter the Rate:")

x = float(xx)

if h <= 40:

 print( h  * x)

elif h > 40:

print(40* x + (h-40)*1.5*x)

Read more about Python Program at; https://brainly.com/question/26497128

#SPJ1

Kenny works with an IT company. His company is about to launch new software in the market. He has to ensure that this new software is functional and meets all of the quality standards set up at the planning stage. Which job profile is Kenny likely to have?
Kenny is likely to have the job profile of a _______.

Answers

The job profile that Kenny is likely to have is  software analyst.

What is a job profile?

This is known to be that which states the details of an employee in regards to their  job.

Note that a software analyst is known to be that person who examines and maintain the software development process, carry out configuration management, and others.

So, The job profile that Kenny is likely to have is  software analyst.

Learn more about job profile from

https://brainly.com/question/3700565

#SPJ1

C++ code only......
Overview:
Synopsis: Type in a word and get a point value. A point value is the sum of the points of the individual letters multiplied by any bonus multipliers (defined later).
In both Words With Friends and the scrabble game, a individual letters in a word are given specific values.
Your program will let me keep typing in words and giving me the point value until I stop the program.
---------------------------------------------------------------------------------------------------------------------------------------------
Basic Point values:
For this lab, calculate the value of a word with the following specific rules:
A, E, I, O, S, U are worth 1 point
D, F, G, L, M, N, R, T are worth 2 points
B, C, K, P, Y are worth 3 points
H, J, Q, V, W, X, Z are worth 5 points.
If the word was CAT, the value would be 3 + 1 + 2 or 6 points.
-------------------------------------------------------------------------------------------
Bonus Point multipliers
DOUBLE: Any word that contains two (or more) of the same letter in a row has it's value doubled. Some examples are 'asset' and 'little'. You can only double things once.
TRIPLE: Any word that has three (or more) 1 point letters has it's value triples. You can only triple a word once. 'asset' has 4 single point letters (a, s, s, and e), while little only has 2 (i and e)
You can both DOUBLE and TRIPLE a word.
--------------------------------------------------------------------------------------------------------------------------------------------
Dictionary Lookup
You also need to check to see if the word is in a dictionary. There's one at
http://www.csit.parkland.edu/~kurban/permanent/lists/ and it's called web2.txt
It contains one word per line and is already sorted. You can make your own smaller dictionary to test it if you like.
Please do not turn in the dictionary.
-----------------------------------------------------------------------------------------------------------------------
Requirements
Your program will ask the user for a word (without spaces) and print it's value.
Ignore any special characters or numbers that are entered. [I won't include these in my test cases].
If the word isn't in the dictionary, report that the word isn't a valid word.
You HAVE to use my rules or you will receive 0 credit!
----------------------------------------------------------------------------------------------------------
Examples:
asset = (1 + 1 + 1 + 1 + 2) * 2 * 3 = 18 (double letters, 3 single point letters)
little = (2 + 1 + 2 + 2 + 2 + 1) * 2 = 24 (double letters)
abacadabra = (1 + 3 + 1 + 3 + 1 + 2 + 1 + 3 + 2 + 1) * 3 = 56 (3 single point letters)
football = (2 + 1 + 1 + 2 + 3 + 1 + 2 + 2) * 2 * 3= 84 (double letters only double once, 3 single point letters)

Answers

Using the computational language C++ it is possible to write a code that adds the values ​​of the letters and does the multiplication as well.

Writting the code in C++:

#include <iostream> //for input/output functions

#include <string> //for C++ style strings

#include <cctype> //for toupper utility function

#include <fstream> //for file I/O

using namespace std;

//function to calculate the score of the given word

int getScore(string word)

{

int score = 0;

int singles = 0;

char c; //variable to hold the current character

char prev='0'; //variable to hold the previous character

//'0' so that prev is not equal to c in the first place

bool doubled = false;

for(int i = 0; i < word.length(); i++)

{

c = toupper(word[i]);

switch(c)

{

case 'A':

case 'E':

case 'I':

case 'O':

case 'S':

case 'U':

score = score+1;

singles++;

break;

case 'D':

case 'F':

case 'G':

case 'L':

case 'M':

case 'N':

case 'R':

case 'T':

score = score+2;

break;

case 'B':

case 'C':

case 'K':

case 'P':

case 'Y':

score = score+3;

break;

case 'H':

case 'J':

case 'Q':

case 'V':

case 'W':

case 'X':

case 'Z':

score = score+5;

break;

}

//if at any point, the previous character is the same as the current character, we double

if(c == prev)

doubled = true;

prev = c;

}

if(doubled) score *= 2;

//if 1 point characters are more than 3, we triple

if(singles >= 3) score *= 3;

return score;

}

//function to check if the given word is in the dictionary

bool inDictionary(string word)

{

//we assume that the dictionary is stored in a file called dictionary.txt

ifstream fin("dictionary.txt");

//check for file errors

if(!fin)

{

cout << "File did not load properly" << endl;

return false;

}

string current;

//read until the file ends

while(!fin.eof())

{

fin >> current;

//we found the word

if(current.compare(word) == 0)

return true;

}

return false;

}

int main(int argc, char const *argv[])

{

string word;

cout << "Please enter the word whose score you want to compute: ";

cin >> word;

cout << "Score is " << getScore(word) << endl;

if(inDictionary(word))

cout << "The given word was found in the dictionary." << endl;

else

cout << "The given word was not found in the dictionary." << endl;

return 0;

}

See more about C++ code at brainly.com/question/17544466

#SPJ1

A company's prospectus includes:
A) The company's investment options.
B) The company's guaranteed return strategy.
C) The company's revenue and net worth.
D) The company's research.

Answers

A company's prospectus includes: A. The company's investment options.

What is a prospectus?

A prospectus can be defined as a legal document that is formally required of companies by and filed with the Securities and Exchange Commission (SEC), so as to provide information about its investment options and offering that are for sale to the public.

This ultimately implies that, a company's prospectus must include information about the company's investment options.

Read more on prospectus here: https://brainly.com/question/27245796

#SPJ1

A value that is used in a computation is known as an _____. Group of answer choices operand operator function clause

Answers

A value that is used in a computation is known as an operand .

What is an operand value?

This is seen in assembly language as it is defined as a value or an argument via through which the instruction is said to operate.

Note therefore that A value that is used in a computation is known as an operand.

Learn more about operand from

https://brainly.com/question/6381857

#SPJ1

The more disks that are added to the tower, the more difficult the game becomes. What is the minimum number of moves it would take to move two disks from one peg to the other

Answers

The minimum number of moves it would take to move two disks from one peg to the other is first to make 1 move, then  3 moves.

What is the rule used in solving the Tower of Hanoi?

In the rules of this game, It state that just one disk is one that can be moved in case of some towers at any given time.

Note that just the "top" disk is one that can be removed and as such, The minimum number of moves it would take to move two disks from one peg to the other is first to make 1 move, then  3 moves.

Learn more about disks from

https://brainly.com/question/1558359

#SPJ1

Write a function named swapFrontBack that takes as input a vector of integers. The function should swap the first element in the vector with the last element in the vector. The function should check if the vector is empty to prevent errors. Test your function with vectors of different length and with varying front and back numbers.

Answers

Answer:

#include <iostream>

#include <vector>

using namespace std;

void swapFrontBack(vector<int>& nums) {

if(nums.size() < 2) {

return;

}

swap(nums[0], nums[nums.size()-1]);

}

void printit(vector<int>& arr) {

for(int i = 0; i < arr.size(); i++) {

cout << arr[i] << " ";

}

cout << endl;

}

int main() {

vector<int> num1;

swapFrontBack(num1);

printit(num1);

num1.push_back(1);

swapFrontBack(num1);

printit(num1);

num1.push_back(2);

swapFrontBack(num1);

printit(num1);

vector<int> num2(10, 1);

num2[9] = 2;

swapFrontBack(num2);

printit(num2);

return 0;

}

Explanation:

Other Questions
HELP!! What is the equation of the graphed line?(y=mx+b) What role does cellular respiration play in the carbon cycle?O A. Animals absorb oxygen. O B. Plants release oxygen. O C. Plants absorb carbon dioxide D. Animals produce carbon dioride What is the formula for the sum of the first n terms in the following sequence in terms of n:1, 1+2, 1+2+2^2, 1+2+2^2+2^3, ... the two lines graphed below are parallel. how many solutions are there to the system of equation Given the equation startfraction 2 x 2 over y endfraction = 4 w 2 what is the value of x? Choose the most convenient method to graph the line 3x2y=12.Select the correct answer below:Recognize the equation as that of a vertical line passing through the x-axis at 12.Recognize the equation as that of a horizontal line passing through the y-axis at 12.Identify the slope and y-intercept, and then graph.Find the x- and y-intercepts and then graph. Whose email address may the agent enter into the LEAN enrollment application? an appeal court will change a lower courts ruling only if? What can quantum computers do more efficiently than regular computers? All of the following products were important trade goods that came from India, except __________. A. coffee B. cotton C. spices D. tea [tex]\huge\fbox\purple{Question}[/tex]1)Find the H.C.F of the following set of numbers by finding all the possible factors.a)6 and 15b)12 and 18c)15 and 24d)24 and 36e)30 and 48f)36 and 54g)32,40 and 56h)28,42 and 70I)30,75 and 90Note=Answer with proper explanation required and all steps to be mentioned . Please help meRead the following passage: But does everyone on earth have an equal right to an equal share of its resources? The spaceship metaphor can be dangerous when used by misguided idealists to justify suicidl policies for sharing our resources through uncontrolled immigration and foreign aid. In their enthusiastic but unrealistic generosity, they confuse the ethics of a spaceship with those of a lifeboat. Which of the following best explains why the author uses words such as "dangerous," "suicidl," and "uncontrolled" in this passage? A. To appeal to the reader's emotions B. To attack the people who agree with him OC. To establish his credibility D. To present a logical argument Find the midpoint of the line segment joining the points P1 and P2. P1 = (x, 8); P2 = (0, 9) Who were two of the most famous writers of the northern renaissance? A company invests $32000. after 4 years of growth at the same rate each year, the investment is worth $42692. find the annual growth rate as a percentage. Which nation in EasternEurope began a labor unionin opposition of thecommunist rule of the SovietUnion.A. SpainB. BelarusC. Poland Read the following speech and answer the question that follows?Ladies and gentlemen of the city council, thank you so much for giving me this time to speak. While we have some great ideas on how to use our recent grant money, I believe that the money would be best used to create a skate park. There has been a debate on what do with the empty lot on Main St. for months now. By building a skate park we solve the problem of what to do with the lot and the grant at the same time. Skate parks provide a safe place for our children, encourage tourists to visit our city and encourage children to be active. We have had a problem with skaters in public places currently, and by providing them with a place to skate, we will solve this problem as well. The service the skate park serves is safe and should solve our situation. We need to build a skate park.What is the purpose of this speech? Two shops, Tisco and Azda, sell the same brand of baked beans with the following deals.Calculate the price per 12 items.Write down which shop is the best value in the comment box.azda:3 for 1.14tisco:4 for 1.56 When reviewing a comedy show for a movie magazine, how will yourwriting be?Critical and unbiasedSerious and biasedDescriptive.Narrative What is an advantage for Freeman XP, a brand experience company that organizes large events such as trade shows, of hiring union workers