Zy 12 Rybook Ucccst 1620mbackspring2o Chapte Pection 2 Ne 12 Programming Basics Activi 125 Q26380416

zy 12 rybook ucCcst 1620mbackSpring2o/chapte//pection/2 ne> 1.2: Programming basics ACTIVI 1.2.5: Read multiple user inputs Write two scnr.nextint statements to get input values into birthMonth and birthYear. Then write a statement to output the month, a slash, and the year. End with newline The program will be tested with inputs 1 2000, and then with inputs 5 1950. Exc If the input is 1 2000, the output is 1/2000 scnr.nextInt): Note. The input values come from user input, so be sure to use scnr.nextint statements, as in birthMonth to get those input values (and dont assign values directly as in birthMonth1 1 isport Seve.util.Scanner 3 public class IsputExanple ( 4 public static void main String 3 angs) f Scanner scnr- new Scenner(System.In)i Int birthrionth Int birtYeer; /. your solution pes herezy 12 rybook ucCcst 1620mbackSpring2o/chapte//pection/2 ne> 1.2: Programming basics ACTIVI 1.2.5: Read multiple user inputs Write two scnr.nextint statements to get input values into birthMonth and birthYear. Then write a statement to output the month, a slash, and the year. End with newline The program will be tested with inputs 1 2000, and then with inputs 5 1950. Exc If the input is 1 2000, the output is 1/2000 scnr.nextInt): Note. The input values come from user input, so be sure to use scnr.nextint statements, as in birthMonth to get those input values (and don’t assign values directly as in birthMonth1 1 isport Seve.util.Scanner 3 public class IsputExanple ( 4 public static void main String 3 angs) f Scanner scnr- new Scenner(System.In)i Int birthrionth Int birtYeer; /. your solution pes here Show transcribed image text

Zybooks Ibrary Itos 1 140 Home 716 Lab 7 Part 2 Z Books Catalog Hela Faq Laura Holmes 716 Q26953838

Ξ zyBooks My ibrary > ITOS 1 140 home 7.16: Lab 7, Part 2 Z)Books catalog ? Hela/FAQ Θ Laura Holmes 7.16 Lab 7, Part 2 Case You have been tased to create program that drows box Your program needs to sk the user for tne d mensions of the box or length and width. The program wil then print out your bax. Since the cimensions of the box will vary each time you runthe program, here Is a sample output when the user entered 5 for the box width and 10 for the box length. Part 2 Instructions In Zybooks, write the code that creates the box. Since the inputs will vary, you will need to use a loop to create the box. To start, remove the two print stotements that tested your inputs. To create a little space between your input storements and the box, add an empty print (or print)) statement undemeath your input statements. This will produce the following when 5 is entered for the width and 10 for the length Enter the wdin of your box: 10 Enter the length of yourbo: 5 Some Help: To get a border that varies with the width input you could write: borderwidth print [border If the user enters 10 for the width, the ollowing wil princ: Additionally dont forge. you can use sting concatenation to fill in the middle of the box. For nstance borda print border) This wil printIn Python

Ξ zyBooks My ibrary > ITOS 1 140 home 7.16: Lab 7, Part 2 Z)Books catalog ? Hela/FAQ Θ Laura Holmes 7.16 Lab 7, Part 2 Case You have been tased to create program that drows box Your program needs to sk the user for tne d mensions of the box or length and width. The program wil then print out your bax. Since the cimensions of the box will vary each time you runthe program, here Is a sample output when the user entered 5 for the box width and 10 for the box length. Part 2 Instructions In Zybooks, write the code that creates the box. Since the inputs will vary, you will need to use a loop to create the box. To start, remove the two print stotements that tested your inputs. To create a little space between your input storements and the box, add an empty print (or print)) statement undemeath your input statements. This will produce the following when 5 is entered for the width and 10 for the length Enter the wdin of your box: 10 Enter the length of yourbo: 5 Some Help: To get a border that varies with the width input you could write: borderwidth print [border If the user enters 10 for the width, the ollowing wil princ: Additionally dont forge. you can use sting concatenation to fill in the middle of the box. For nstance borda print border) This wil print Show transcribed image text Ξ zyBooks My ibrary > ITOS 1 140 home 7.16: Lab 7, Part 2 Z)Books catalog ? Hela/FAQ Θ Laura Holmes 7.16 Lab 7, Part 2 Case You have been tased to create program that drows box Your program needs to sk the user for tne d mensions of the box or length and width. The program wil then print out your bax. Since the cimensions of the box will vary each time you runthe program, here Is a sample output when the user entered 5 for the box width and 10 for the box length. Part 2 Instructions In Zybooks, write the code that creates the box. Since the inputs will vary, you will need to use a loop to create the box. To start, remove the two print stotements that tested your inputs. To create a little space between your input storements and the box, add an empty print (or print)) statement undemeath your input statements. This will produce the following when 5 is entered for the width and 10 for the length Enter the wdin of your box: 10 Enter the length of yourbo: 5 Some Help: To get a border that varies with the width input you could write: borderwidth print [border If the user enters 10 for the width, the ollowing wil princ: Additionally dont forge. you can use sting concatenation to fill in the middle of the box. For nstance borda print border) This wil print

Zip File Put File Post Bottom Question Sure Need File Beside Put Put Identical Popular Soc Q28733517

That zip file is the out put file which i post it to the bottomof this question not sure what you need? there no other file besidethe out put that out put has to be identical

The popular social network Facebook™ was founded by MarkZuckerberg and his classmates at Harvard University in 2004. At thetime, he was a sophomore studying computer science. Design andimplement an application that maintains the data for a simplesocial network. Each person in the network should have a profilethat contains the person’s name, optional image, current status,and a list of friends. Your application should allow a user to jointhe network, leave the network, create a profile, modify theprofile, search for other profiles, and add friends. The code andthe output for this part are in the ZIP archive. Your program’soutput must be identical to the output of the sample run,

out put has to be similar to this

run:

Creating profiles and adding to database.

Name: John Doe

Status: My name is John.

Picture: BufferedImage@52e922

# of friends: 0

Friends:

Name: Jane Doe

Status: My name is Jane.

Picture: BufferedImage@25154f

# of friends: 0

Friends:

Name: Billy Bob

Status: My name is Billy Bob!

Picture: BufferedImage@10dea4

# of friends: 0

Friends:

Name: John Smith

Status: My name is also John.

Picture: BufferedImage@647e05

# of friends: 0

Friends:

————————————-

Creating friendships.

Name: John Doe

Status: My name is John.

Picture: BufferedImage@52e922

# of friends: 2

Friends:

Jane Doe

John Smith

Name: Jane Doe

Status: My name is Jane.

Picture: BufferedImage@25154f

# of friends: 3

Friends:

John Doe

Billy Bob

John Smith

Name: Billy Bob

Status: My name is Billy Bob!

Picture: BufferedImage@10dea4

# of friends: 2

Friends:

Jane Doe

John Smith

Name: John Smith

Status: My name is also John.

Picture: BufferedImage@647e05

# of friends: 3

Friends:

John Doe

Jane Doe

Billy Bob

————————————-

Changing statuses / names.

Name: John Doe

Status: My name is John.

Picture: BufferedImage@52e922

# of friends: 2

Friends:

Jane Smith

John Smith

Name: Jane Smith

Status: Now Mrs. Smith!

Picture: BufferedImage@25154f

# of friends: 3

Friends:

John Doe

Billy Bob

John Smith

Name: Billy Bob

Status: My name is Billy Bob!

Picture: BufferedImage@10dea4

# of friends: 2

Friends:

Jane Smith

John Smith

Name: John Smith

Status: Just got married!

Picture: BufferedImage@647e05

# of friends: 3

Friends:

John Doe

Jane Smith

Billy Bob

————————————-

Ending a friendship.

Name: John Doe

Status: My name is John.

Picture: BufferedImage@52e922

# of friends: 2

Friends:

Jane Smith

John Smith

Name: Jane Smith

Status: Now Mrs. Smith!

Picture: BufferedImage@25154f

# of friends: 3

Friends:

John Doe

Billy Bob

John Smith

Name: Billy Bob

Status: My name is Billy Bob!

Picture: BufferedImage@10dea4

# of friends: 2

Friends:

Jane Smith

John Smith

Name: John Smith

Status: Just got married!

Picture: BufferedImage@647e05

# of friends: 3

Friends:

John Doe

Jane Smith

Billy Bob

————————————-

Removing John.

Name: Jane Smith

Status: Now Mrs. Smith!

Picture: BufferedImage@25154f

# of friends: 2

Friends:

Billy Bob

John Smith

Name: Billy Bob

Status: My name is Billy Bob!

Picture: BufferedImage@10dea4

# of friends: 2

Friends:

Jane Smith

John Smith

Name: John Smith

Status: Just got married!

Picture: BufferedImage@647e05

# of friends: 2

Friends:

Jane Smith

Billy Bob

BUILD SUCCESSFUL (total time: 0 seconds)

Zip Zip Two Lists List 2 Tuples 1 Def Zip B Write Recursive Function Zip B B Lists Zip B R Q30538558

PYTHON 3..please help and explain using comments

zip - zip two lists into a list of 2-tuples 1- def zip(a, b): Write a recursive function zip(a,b) where a and b are lists. zip(a,b) returns a list of 2-tuples where the first tuple is (a 01,bI0]), the second is (a[1],b[1]), etc # your code here Zipping stops when the shorter list runs out. For example if len (a) is 3 and len (b) is 5 then len (zip(a,b)) is 3 Programming Requirements Solve this problem using recursion. You are allowed to use only the following programming constructs » if statements; . return statements; * assignment; recursive function calls (if you use any helper functions then these must all be recursive as well); comparison operations!, etc.) list indexing and slicing; list concatenation/extension. Solutions that go outside these constructs, e.g., by using for/while loops or list comprehensions, will not get credit.

zip – zip two lists into a list of 2-tuples 1- def zip(a, b): Write a recursive function zip(a,b) where a and b are lists. zip(a,b) returns a list of 2-tuples where the first tuple is (a 01,bI0]), the second is (a[1],b[1]), etc # your code here Zipping stops when the shorter list runs out. For example if len (a) is 3 and len (b) is 5 then len (zip(a,b)) is 3 Programming Requirements Solve this problem using recursion. You are allowed to use only the following programming constructs » if statements; . return statements; * assignment; recursive function calls (if you use any helper functions then these must all be recursive as well); comparison operations!, etc.) list indexing and slicing; list concatenation/extension. Solutions that go outside these constructs, e.g., by using for/while loops or list comprehensions, will not get credit. Show transcribed image text

Zippy Corporation Sold 30 Million Convertible Bonds Conversion Ratio 40 1 000 Bond Convert Q27957141

Zippy Corporation just sold $30million of convertible bonds with a conversion ratio of 40. Each$1,000 bond is convertible into 25 shares of Zippy’s stock.

a. What is the conversion price ofZippy’s stock?

b. If the current price of Zippy’s stock is $15 and theCompany’s annual stock return is normally distributed with astandard deviation of $5, what is the probability that investorswill find it attractive to convert the bond into Zippy stock in thenext year?

Kindly write the answer in MS words..

Zn S Zn2 Aq 000200 M Cl Aq 0100 M Agcl S Ag S Standard Potentials Zn2 Zn Agcl Ag Cl Couple Q28286235

Zn(s)ïZn2+(aq, 0.00200 M)||Cl–(aq, 0.100M)ïAgCl(s)ïAg(s)
If the standard potentials of the Zn2+/Zn andAgCl/Ag,Cl– couples are –0.76 and +0.22 V, respectively,at 25oC, calculate the voltage of the cell. Answer is+1.12V

Zn2 20 M Ai1 050 M Would Non Standard Cell Using Relationships G Nf Go Nfe Come Equation C Q28247772

If the [Zn2] -2.0 M and [Ai1 -0.50 M, this would be a non-standard cell Using the relationships ?G -nF? and ?Go--nFe we can come up with an equation to calculate non-standard cell potentials, the Nernst equation nF n # moles of electrons in the balanced half-reactions F = faradays constant 96,000 C/mol e. Q reaction quotient, [products]/ [reactants where 4. Calculate non-standard cell potential () at 298 K when the [Zn2+1.-2.0 M and [A)-0.50 M. Calculate ?G and ?G° and discuss the difference in the work being done, in terms of [products] and [reactants). 5. 6, What is the effect on ? of doubling the size of the aluminum electrode? 7, what is the effect on ? of adding 500 mL of water to the cathode, assuming there was 1 L of the solution to begin with?If the [Zn2] -2.0 M and [Ai1 -0.50 M, this would be a non-standard cell Using the relationships ?G -nF? and ?Go–nFe we can come up with an equation to calculate non-standard cell potentials, the Nernst equation nF n # moles of electrons in the balanced half-reactions F = faradays constant 96,000 C/mol e. Q reaction quotient, [products]/ [reactants where 4. Calculate non-standard cell potential () at 298 K when the [Zn2+1.-2.0 M and [A”)-0.50 M. Calculate ?G and ?G° and discuss the difference in the work being done, in terms of [products] and [reactants). 5. 6, What is the effect on ? of doubling the size of the aluminum electrode? 7, what is the effect on ? of adding 500 mL of water to the cathode, assuming there was 1 L of the solution to begin with? Show transcribed image text If the [Zn2] -2.0 M and [Ai1 -0.50 M, this would be a non-standard cell Using the relationships ?G -nF? and ?Go–nFe we can come up with an equation to calculate non-standard cell potentials, the Nernst equation nF n # moles of electrons in the balanced half-reactions F = faradays constant 96,000 C/mol e. Q reaction quotient, [products]/ [reactants where 4. Calculate non-standard cell potential () at 298 K when the [Zn2+1.-2.0 M and [A”)-0.50 M. Calculate ?G and ?G° and discuss the difference in the work being done, in terms of [products] and [reactants). 5. 6, What is the effect on ? of doubling the size of the aluminum electrode? 7, what is the effect on ? of adding 500 mL of water to the cathode, assuming there was 1 L of the solution to begin with?

Zoo Tycoon Requirements Animal Class Animal Class Following Member Variables Age Adult Age Q28563724

Zoo Tycoon

Requirements:

Animal Class

The Animal class has the following member variables:

Age

Adult if age >= 3 days

Baby if age < 3 days

Cost

Tiger cost $10,000

Penguin cost $1,000

Turtle cost $100

Number of Babies

Tigers have 1 baby

Penguins have 5 babies

Turtles have 10 babies

Base Food Cost

You can get this base food cost from the user or set it as aconstant. Example base food cost per animal per day: $10.

Tigers have a feeding cost of 5 times the base cost

Penguins have a feeding cost that is the same as the basecost

Turtles have a feeding cost that is 50% the base cost

Payoff

A tiger’s payoff per day is 20% of their cost per animal. (notcounting bonus)

A penguin’s payoff per day is 10% of their cost per animal

A turtle’s payoff per day is 5% of their cost per animal

Note: please do not modify the variables names or add moremember variables to this class.

Game Flow:

The player begins with a specific amount of money in the bank,e.g. 100,000 dollars. At the start, the user needs to buy threetypes of animals (tigers, penguins, turtles) to start the business.Each type should have a quantity of either 1 or 2. For each animalbought, the cost is subtracted from the bank. All newly boughtanimals are 1 day old.

Each turn is a “day”. At the beginning of the day, all animalsincrease age by 1 day, and the user needs to pay the feeding costof each animal. Feeding is required so the animals don’t die. Afterthe feeding cost is subtracted from the bank, one randomized eventtakes place during the day. You can determine how to implement therandom functions by yourself. The random function will pick onerandom event from the following list:

Random Events:

A sickness occurs to an animal in the zoo:

Pick an animal at random that will die

Remove one animal of that type from the exhibit. (dynamic arrayin the zoo)

A boom in zoo attendance occurs:

Generate a random bonus for the day, 250-500 dollars for eachtiger in the zoo

Add the bonus payoff for each tiger to the total payoff of theday as a reward

A baby animal is born:

Pick an animal at random to have a baby

Check if there is an animal old enough to be a parent (age >=3), add babies to the zoo depending on the “number of babies”specific to the type of animal. If no animal is old enough of therandomly selected type, pick another type of animal. Baby animalsstart at age 0. For simplicity, you don’t need to consider thegender of the adult animals in order to have babies. One adultanimal is good enough to have babies.

Note: If no animals are able to give birth to baby animals inthe zoo, your program needs to be able to recognize this andrecover.

4. Nothing happens

After the random event, calculate the profit for the day basedon the number of each animals and their payoff. If there is a bonusfor the day, add it to the profit as well. Before the day ends, askthe player if they would like to buy an adult animal. If they do,ask for the type of animal they would like, then add the animal tothe zoo and subtract that cost from the bank. The adult animal thatis bought will be 3 days old.

After the end of a day, prompt user whether to keep playing orend the game. If the user has no money, print a message to tell theuser the game is over, and end the game.

Class requirements

The following classes are required: zoo, animal, tiger, penguin,and turtle. The program also must use inheritance; the tiger,penguin, and turtle class must inherit from animal class.

Also, the zoo class should have a dynamic array for each type ofanimal. Each dynamic array should have a capacity of 10 animals tostart with. If more animals are added, you should resize thedynamic array by doubling the starting capacity to hold moreanimals.

Input Validation

Make sure to check for incorrect data types entered by the userand continue to re-prompt for input until valid input isreceived.

Extra Credit

New Animal: (5pts)

Add a new class for your new animal. It should also inherit fromthe Animal class. This should also allow the user to dynamicallycreate a new animal during runtime, re-prompting them for eachtrait.

Status messages: (5pts)

Put a message into a text file for each random event. Forexample, during a boom in zoo attendance, print:

“Today is National Tiger Day! Tigers generate money today! Youmade: 360 extra dollars for each tiger you own!”

Use ifstream to read messages from the created text file.

Different Feed Types: (5pts)

Allow user to pick between 3 different types of feed at thestart of each day.

Cheap: Half as expensive for all animals, sickness becomes twiceas likely to occur.

Generic: behaves normally.

Premium: Twice as expensive for all animals, sickness becomeshalf as likely to occur.

Zazada Singapore S Latest Online Shopping Website New Entry Competitive E Commerce Scene Z Q30062478

Using Microsoft visual studio c++
Zazada is Singapores latest online shopping website As a new entry to the competitive e-commerce scene, Zazada is very aggressive in its sales promotions In order to further promote itself and gain popularity with online shoppers, Zazada works with a number of banks to provide discounts when shoppers pay with credit cards from different banks. The credit card promotion would work as below: After a shopper has selected a number of items in his cart and check-out for payment, he could key in a promotional code If the promotion code entered is valid, the relevant discount scheme would be applied and the final payment amount after discount would be shown. In the month of July, Zazada is working with CitibankA bank for its sales promotion There are 2 promotional codes marketed to attract more online shoppers, especially those with CitibankA credit cards Zazada Promotional Code Discount Scheme Valid only for new customers. CITI100FF Zazada offers 10% off total check-out value with Citibank card. Valid for existing customers. CITI5OFF Zazada offers 5% off total check-out value with Citibank card Table 1: Promotional Code Below shows a sample calculation for promotion code CITI100FF Purchased 4 quantities of Brand A Fragrant Rice Total check-out value 4 30.80 $123.20 Calculated savings 0.10 123.20 S$12.32 Final payment value123.20 12.32S$110.88media%2Fc12%2Fc129aa21-4622-4aa2-a16e-7emedia%2Fdad%2Fdad278e3-bd6f-436a-ba90-5emedia%2F292%2F2923a934-e641-4668-913a-c8media%2F73e%2F73e03eee-b521-4dfd-9ec3-3fZazada is Singapore’s latest online shopping website As a new entry to the competitive e-commerce scene, Zazada is very aggressive in its sales promotions In order to further promote itself and gain popularity with online shoppers, Zazada works with a number of banks to provide discounts when shoppers pay with credit cards from different banks. The credit card promotion would work as below: After a shopper has selected a number of items in his cart and check-out for payment, he could key in a promotional code If the promotion code entered is valid, the relevant discount scheme would be applied and the final payment amount after discount would be shown. In the month of July, Zazada is working with CitibankA bank for its sales promotion There are 2 promotional codes marketed to attract more online shoppers, especially those with CitibankA credit cards Zazada Promotional Code Discount Scheme Valid only for new customers. CITI100FF Zazada offers 10% off total check-out value with Citibank card. Valid for existing customers. CITI5OFF Zazada offers 5% off total check-out value with Citibank card Table 1: Promotional Code Below shows a sample calculation for promotion code “CITI100FF Purchased 4 quantities of Brand A Fragrant Rice Total check-out value 4 30.80 $123.20 Calculated savings 0.10 123.20 S$12.32 Final payment value123.20 12.32S$110.88 Show transcribed image text

Zoom Programming Assignment 2 Assignment Objective Programming Assignment Intended Put Pra Q28780302

ZOOM Programming Assignment #2 Assignment Objective This programming assignment is intended to put into practice the concepts that you have learned so far. For this assignment, you are to develop a JavaFX application, called RestaurantApp Your Restaurant Application has two parts to it: 1. A Map, which will keep track of reservations. This map will include dinner reservations between 4 pm to 11 pm, in 15 minute increments. To simplify things, you can only take the reservation for a single party for each time slot. The reservation shall include the guest name, number of people in the party and the guest phone number 2. A Queue or Linked List, which will contain a walk-in standby list. This queue operates First-In, First-Out. The Queue will include the guest name and the number of people in the party This application will be developed as a Graphical User Interface (GUI), the design is left to you Your solution should have reasonable error checking and data validation A flowchart or pseudocode is required for this lab Task(s) Implement a restaurant waiting list application with the following features/functionality: A Reservation class which contains the customer name, number in the party and the phone number A WaitingList class which contains the customer name and the number in the party The reservation map will be empty until an entry is added. The map will grow for each entry. The application shall provide a dialog to add a new reservation, including the necessary information. The application must ensure that only one guest is added for each time. If duplicate time, it must keep the guest information while prompting for a new time. You must provide a way to both list the reservations and search for a reservation, as well as change the time for a reservation The waiting list will be empty until an entry is added. The application shall provide a dialog to add a new waiting list entry. The application should be able to pull of the longest waiting person off of the list, and keep track of the total number of customers that are currently on the waiting list. Project Evaluation Your assienment will he praded hased unon all tasks heine nerformed and handed in with all reauiredPlease help me with thislab.

ZOOM Programming Assignment #2 Assignment Objective This programming assignment is intended to put into practice the concepts that you have learned so far. For this assignment, you are to develop a JavaFX application, called RestaurantApp Your Restaurant Application has two parts to it: 1. A Map, which will keep track of reservations. This map will include dinner reservations between 4 pm to 11 pm, in 15 minute increments. To simplify things, you can only take the reservation for a single party for each time slot. The reservation shall include the guest name, number of people in the party and the guest phone number 2. A Queue or Linked List, which will contain a walk-in standby list. This queue operates First-In, First-Out. The Queue will include the guest name and the number of people in the party This application will be developed as a Graphical User Interface (GUI), the design is left to you Your solution should have reasonable error checking and data validation A flowchart or pseudocode is required for this lab Task(s) Implement a restaurant waiting list application with the following features/functionality: A Reservation class which contains the customer name, number in the party and the phone number A WaitingList class which contains the customer name and the number in the party The reservation map will be empty until an entry is added. The map will grow for each entry. The application shall provide a dialog to add a new reservation, including the necessary information. The application must ensure that only one guest is added for each time. If duplicate time, it must keep the guest information while prompting for a new time. You must provide a way to both list the reservations and search for a reservation, as well as change the time for a reservation The waiting list will be empty until an entry is added. The application shall provide a dialog to add a new waiting list entry. The application should be able to pull of the longest waiting person off of the list, and keep track of the total number of customers that are currently on the waiting list. Project Evaluation Your assienment will he praded hased unon all tasks heine nerformed and handed in with all reauired Show transcribed image text