Write Program Receives Sequence 10 Letters User Prints Following Order B B Y Y Z Z Example Q43873667
Write a program that receives a sequence of (at most 10) lettersfrom the user, and prints them in the following order: A > a> B > b > … > Y > y > Z > z. For example, ifthe user inputs are
b S v A C d b c a
Then output should be
A a b b C c d S v
Expert Answer
Answer to Write a program that receives a sequence of (at most 10) letters from the user, and prints them in the following order: …
Write Program Repeats Phrase Given User Number Times User Requests Repeated Example User C Q43892015
Write a program that repeats a phrase, given by a user, thenumber of times a user requests it be repeated. For example, a usercould input the phrase `Lazy harp seal has no job`. Then the usercould input to repeat it `3` times. Given these inputs, the programshould (1) output the phrase three times and (2) output whichrepetition this is by starting each line with the repetition number(note the `1`, `2`, and `3` below): Input your phrase: Lazy harpseal has no job How many times should it be repeated? 3 1 Lazy harpseal has no job 2 Lazy harp seal has no job 3 Lazy harp seal has nojob Again, note the bold text in the example above: this indicatesa value that is typed and input by the user (i.e., Lazy harp sealhas no job, and 3). Your program should not be printing out thevalues you see in bold. The user should be able to type in anyphrase where you see Lazy harp seal has no job and any number oftimes to repeat it where you see 3. A correct program would alsowork like this for the following inputs:
Expert Answer
Answer to Write a program that repeats a phrase, given by a user, the number of times a user requests it be repeated. For example,…
Write Program Samjava Process Text File Use Scanner Read Lines Samtxt Write Code Modify Fi Q43902100
Write the program sam.java to process the text of this file. Usea Scanner to read lines from sam.txt, and write code to modify thefile. Translate all of the odd-numbered lines to all lower case,and all of the even-numbered lines to all upper case, skipping anyempty lines. That is, if the line before a blank line is the lowercase then the next line after the blank should be upper case,regardless of the offset line number. Leave the blank lines in youroutput file so that the formatting of the text remains thesame.
Write your output to a new file called samnew.txt. Use aPrintWriter object to write your translated output to the file.
Expert Answer
Answer to Write the program sam.java to process the text of this file. Use a Scanner to read lines from sam.txt, and write code to…
Write Program Segment Uses Single Loop Executes Loop Body Five Times Time Displaying Rando Q43805230
Write a program segment that uses a single while()loop whichexecutes its loop body five times, each time displaying a randomdigit from this set of values.
{1 , 2 , 3 , 4 , 5 , 6 }
Expert Answer
Answer to Write a program segment that uses a single while()loop which executes its loop body five times, each time displaying a r…
Write Program Showcases Function Returning Array Function Returning Pointer Program Show U Q43781770
Write any program that showcases a function returning an arrayand a function returning a pointer. It can be any program just toshow the understanding of the topic.
The program should contain a function returning a pointer and aprogram returning an array. The program must be in C#.
Expert Answer
Answer to Write any program that showcases a function returning an array and a function returning a pointer. It can be any program…
Write Program Simulate Tossing Coin Weightedsuch Lands Heads 60 Percent Time Shouldwrite F Q43834907
Write a program to simulate tossing a coin that has beenweightedsuch that it lands with heads up 60 percent of the time.You shouldwrite a functionimbalancedCoinFlip() that returns 1 if atails wasflipped and a 0 if a heads was flipped. You must alsowrite afunction performImbalancedFlips(int n), which takesthenumber ofimbalanced coin clips to execute. This function will printthenumber of heads and tails obtained to the console.
Expert Answer
Answer to Write a program to simulate tossing a coin that has been weightedsuch that it lands with heads up 60 percent of the time…
Write Program Solves Following Problem One Marker Costs 80 Cents Package Five Markers Cost Q43808423

Write a program that solves the following problem: One marker costs 80 cents. A package of five markers costs $3.50. This encourages people to buy complete packages rather than having to break packages open. The tax is 6.5% of the total. The shipping cost is 5% of the total (before tax). Your program will prompt for a number of markers (an integer). It will calculate and display: • The number of complete packages of markers • The number of separate markers (hint: use // and %) • The cost for the markers before shipping and tax • The cost of shipping • The cost of tax • The total cost of the markers after shipping and tax are added (the grand total) Program requirements: . Your program must label output properly. Your program must display all monetary amounts to exactly two decimal points, preceded by a dollar sign. Here is a sample of what the program’s input and output might look like. Your output does not have to look exactly like this, but it must contain the same information. In this example, the user inputs the number 7, and the program calculates and prints everything else. How many markers are you buying? 7 Number of packages: 1 Number of separate markers: 2 Subtotal: $5.10 Tax: $0.33 Shipping: $0.26 Total: $5.69 HINT: Write pseudocode or a flowchart before you start writing your program! Show transcribed image text Write a program that solves the following problem: One marker costs 80 cents. A package of five markers costs $3.50. This encourages people to buy complete packages rather than having to break packages open. The tax is 6.5% of the total. The shipping cost is 5% of the total (before tax). Your program will prompt for a number of markers (an integer). It will calculate and display: • The number of complete packages of markers • The number of separate markers (hint: use // and %) • The cost for the markers before shipping and tax • The cost of shipping • The cost of tax • The total cost of the markers after shipping and tax are added (the grand total) Program requirements: . Your program must label output properly. Your program must display all monetary amounts to exactly two decimal points, preceded by a dollar sign. Here is a sample of what the program’s input and output might look like. Your output does not have to look exactly like this, but it must contain the same information. In this example, the user inputs the number 7, and the program calculates and prints everything else. How many markers are you buying? 7 Number of packages: 1 Number of separate markers: 2 Subtotal: $5.10 Tax: $0.33 Shipping: $0.26 Total: $5.69 HINT: Write pseudocode or a flowchart before you start writing your program!
Expert Answer
Answer to Write a program that solves the following problem: One marker costs 80 cents. A package of five markers costs $3.50. Thi…
Write Program Solves Following Problem One Marker Costs 80 Cents Package Five Markers Cost Q43810910
PLE HELP ME BY PYTHON

PLE HELP ME BY PYTHON
Write a program that solves the following problem: One marker costs 80 cents. A package of five markers costs $3.50. This encourages people to buy complete packages rather than having to break packages open. The tax is 6.5% of the total. The shipping cost is 5% of the total (before tax). Your program will prompt for a number of markers (an integer). It will calculate and display: • The number of complete packages of markers • The number of separate markers (hint: use // and %) • The cost for the markers before shipping and tax • The cost of shipping • The cost of tax • The total cost of the markers after shipping and tax are added (the grand total) Program requirements: • Your program must label output properly. • Your program must display all monetary amounts to exactly two decimal points, preceded by a dollar sign. Here is a sample of what the program’s input and output might look like. Your output does not have to look exactly like this, but it must contain the same information. In this example, the user inputs the number 7. and the program calculates and prints everything else. How many markers are you buying? 7 Number of packages: 1 Number of separate markers: 2 Subtotal: $5.10 Tax: $0.33 Shipping: $0.26 Total: $5.69 HINT: Write pseudocode or a flowchart before you start writing your program! Show transcribed image text Write a program that solves the following problem: One marker costs 80 cents. A package of five markers costs $3.50. This encourages people to buy complete packages rather than having to break packages open. The tax is 6.5% of the total. The shipping cost is 5% of the total (before tax). Your program will prompt for a number of markers (an integer). It will calculate and display: • The number of complete packages of markers • The number of separate markers (hint: use // and %) • The cost for the markers before shipping and tax • The cost of shipping • The cost of tax • The total cost of the markers after shipping and tax are added (the grand total) Program requirements: • Your program must label output properly. • Your program must display all monetary amounts to exactly two decimal points, preceded by a dollar sign. Here is a sample of what the program’s input and output might look like. Your output does not have to look exactly like this, but it must contain the same information. In this example, the user inputs the number 7. and the program calculates and prints everything else. How many markers are you buying? 7 Number of packages: 1 Number of separate markers: 2 Subtotal: $5.10 Tax: $0.33 Shipping: $0.26 Total: $5.69 HINT: Write pseudocode or a flowchart before you start writing your program!
Expert Answer
Answer to Write a program that solves the following problem: One marker costs 80 cents. A package of five markers costs $3.50. Thi…
Write Program Take N Elements Insert Heap One One Include Function Print Elements Heap B W Q43778764
A) Write a program to take n elements and insert them into aheap one by one. Include a function to print out the elements inthe heap.
B) Write a program to take n elements and insert them into abinary tree. Include a function to print out the elements in thetree.
Add commenting if possible so I can learn from the code.Thanks!
Programming language C++ please.
Expert Answer
Answer to A) Write a program to take n elements and insert them into a heap one by one. Include a function to print out the elemen…
Write Program Takes Arithmetic Expression String Returns Value Example User Enters 5 3 2 4 Q43894554
Write a program that takes an arithmetic expression as a stringand returns its value. For example, if the user enters “5*3+2+4”then the program should return 21. Assume that the user enters avalid expression. The program should handle the followingarithmetic operators *, +, /, -. Bonus (20 points): Add the abilityto handle parentheses. Note: You must use a null terminatedcharacter array to represent a string. In other words, you cannotuse the class string.
In C++ please
Expert Answer
Answer to Write a program that takes an arithmetic expression as a string and returns its value. For example, if the user enters �…