Write a program that reads a list of integers, one per line, until an * is read, then outputs those integers in reverse. For simplicity in coding output, follow each integer, including the last one, by a comma. Note: Use a while loop to output the integers. DO NOT use reverse() or reversed(). Ex: If the input is:

Answers

Answer 1

Answer:

I'm just going to copy my pseudocode into an answer:

x = array()

i = 0

while (true)

j = input()

if j = "*" then break

x[i] = j

i++

print x.join(", ")

Explanation:

Answer 2

The program that read a list of integers, one per line, until an * is read, then outputs those integers in reverse can be found in explanation.

What is programming?

Computer programming is the process of carrying out a specific computation, typically by designing and constructing an executable computer program.

Programming tasks include analysis, algorithm generation, algorithm accuracy and resource consumption profiling, and algorithm implementation.

The program that reads a list of integers, one per line, until a * is read, then reverses the output of those integers is:

x = array()

i = 0

while (true)

j = input()

if j = "*" then break

x[i] = j

i++

print x.join(", ")

Thus, it can be concluded that the above mentioned is the program for the given scenario.

For more details regarding programming, visit:

https://brainly.com/question/11023419

#SPJ5


Related Questions

Until 2016, the popular song _____ was covered by copyright law, unusually long after it was written in 1893.

A.
Happy Birthday

B.
Merry Christmas, Everyone

C.
Hava Nagila

D.
Auld Lang Syne

Answers

Answer: Happy Birthday

Explanation:

Answer is A. Happy Birthday

does anyone know how to make a astronaut hop while using loop?

Answers

Answer:

In Java

Explanation:

package application;

import java.util.Scanner;

import entities.Astronaut;

public class Main {

public static void main(String[] args) {

 Scanner sc = new Scanner(System.in);

 

 System.out.print("How is the astronaut's energy in a scale of 0 to 100? ");

 int energy = sc.nextInt();

 

 Astronaut fakeArmstrong = new Astronaut();

 

 while (energy > 0) {

  fakeArmstrong.hop();

  energy--;

 }

 

 System.out.println("The astronaut is tired eh? Let him rest you psychopato");

 sc.close();

}

}

----------------------------------------------------------------------------------------------

package entities;

public class Astronaut {

private int bodyEnergy;

 

public Astronaut() {

 

}

 

 

public int getBodyEnergy() {

 return bodyEnergy;

}

public void hop() {  

 System.out.println("up and down!");    

}

}

List four types of Web browsers

Answers

Answer:

internet explorer safari tor firefox

Explanation:

Kaitlin likes a particular design theme, but she is not sure about every single color for bullets, backgrounds, etc. found in the theme. Which feature should she apply to modify the theme to her liking?

it's C. Theme variants

Answers

Answer:

c. Theme variants

Explanation: is correct. post protected

Answer:

C

Explanation:

________ is a group meeting-based process for requirements collection. a. Reverse engineering b. Joint application design c. Human-computer interface d. Computer-aided design e. Total ownership

Answers

Answer:

a) reverse engineering

How to make headers without bootstrap angular.

Answers

Answer:

The idea is page should be fixed and cannot be scroll. Header and footer always stick to top and bottom. the middle part is content which is scroll-able only. contents should not be overlapped by header and footer. Layout should work with different type of devices and screen.

Explanation:

How to install windows 11 on unsupported hardware.

Answers

Answer:

It requires modification of the installation media to bypass compatibility checks

Explanation:

You should not do this as it could prevent your computer from not functioning properly. More details: https://support.microsoft.com/en-us/windows/installing-windows-11-on-devices-that-don-t-meet-minimum-system-requirements-0b2dc4a2-5933-4ad4-9c09-ef0a331518f1

In Java, a reference variable is ________ because it can reference objects of types different from its own, as long as those types are related to its type through inheritance.

Answers

Answer:

polymorphic

Explanation:

An example of polymorphic reference, suppose you have 3 classes: Main, Product and SpecificProduct. If SpecificProduct extends Product this means it is a product class but with something else to complement.

Say you want to reference an object of product in the main class, you can do it the classic way:

Product pd = new Product();

Or you can do it polymorphic, like this:

Product pd = new SpecificProduct();

The program will accept just fine because SpecificProduct is extending Product. When you do it like this, we say the reference you made was a polymorphic reference

The _____ database structure is more flexible and stores data as well as instructions to manipulate the data.

Answers

Answer:

Databace

Explanation:

You need to manage a process in the foreground by pressing Ctrl+C on the keyboard. Which signal code is sent to the process?

Answers

The signal code is copy

What are the names of the methods which are used to control an i/o device??.

Answers

Answer: 1

Explanation:

i took the quiz and it was correct

In Super Mario 64, a character called Lakitu follows Mario around on a cloud, filming him with a camera as though he were shooting a news broadcast. What type of character perspective is this an example of?

Second-person perspective
First-person perspective
third-person perspective
over-the-shoulder perspective

Answers

Answer:

A second person prespective

Explanation:

Answer:

i had dat gam i think its 3rd person but i am not positive... i have never even heard of over the shoulder perspective.

An agile team has which two characteristics? (choose two. ).

Answers

A SAFe Agile teams are often known to be Scrum Master and Product Owner. An Agile team characteristics are:

A small group typically 5 - 11 dedicated individuals who have the skills necessary to define, build, test, and deploy increments of value.

A group of dedicated individuals who are empowered, self-organized, self-managing, and deliver value.

A SAFe Agile team is a cross-functional group  as they are made up of about of 5-11 people who set apart, build, test, and deliver an increment of value in a short time box.

Agile team are known to be cross functional as they can define, build , test and Deploy.

See full question below

An Agile team has which two characteristics? (Choose two.)

A) A small group typically 5 - 11 dedicated individuals who have the skills necessary to define, build, test, and deploy increments of value

B) A stand-along unit of individuals who do not require input fro other teams to complete their tasks

C) A large group of individuals who all work together to create value for the client

D) A group of dedicated individuals that work in phase-gate steps to complete their PI Objectives

E) A group of dedicated individuals who are empowered, self-organized, self-managing, and deliver value

Learn more from

https://brainly.com/question/24390635

Amelie is planning a gingerbread house making workshop for the neighborhood, and is writing a program to plan the supplies. She's buying enough supplies for 15 houses, with each house being made out of 5 graham crackers. Her favorite graham cracker brand has 20 crackers per box. Her initial code:

Answers

The line of code that successfully calculates and stores the number of leftover crackers in the final box is extras ← crackersPerBox - (neededCrackers MOD crackersPerBox).

From the complete information, her initial code is given as:

numHouses ← 15

crackersPerHouse ← 5

crackersPerBox ← 20

neededCrackers ← crackersPerHouse * numHouses

It was depicted that Amelie realizes that she'll need to buy more crackers since the crackers come in boxes of 20.  Therefore, to calculate how many graham crackers will be leftover in the final box, the line of code from the options will be extras ← crackersPerBox - (neededCrackers MOD crackersPerBox).

Read related link on:

https://brainly.com/question/25663035

What core components are involved with all games?

Player actions, humor, rewards, coins

Player goals and actions, rules, challenges

Challenges, riddles, mind-benders, tasks

Injury, re-birth, rules, questions

Answers

Answer:

B.) Player goals and actions, rules, challenges

Explanation:

I recorded a video on my windows PC, but when i tried to play it i got this message:

Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to compress the file

is there a free online way i can fix this

Answers

Answer:

rename the file then type ".MP4" at the end and it should work

by the way big warriors fan as well

Explanation:

Help please match them if you just put a link or say “I don’t know but thanks for the points” I’ll report your answer and you won’t get the brainliest

Answers

Answer:

Input: The user clicks a button

Output: A song is played

User interface: A screen with buttons, images, and text

Explanation:

Angular unit test how to use jest with karma.

Answers

Answer:Explanation:An environment to run angular tests is being created using all the imports at the beginning of the file. TestBed is a powerful unit testing tool provided by angular, and it is initialized in this file. Finally, karma loads all the test files of the application matching their names against a regular expression.

You want to connect an external hard drive for backups. Which is the fastest connection used by current external hard drives

Answers

Answer:

thunderbold proly

Explanation:

_______ is the use of software to assist in the creation, analysis, and modification of the design of a component or product.

Answers

Answer:

C) Computer-aided Design

Explanation:

Options:

a. Computer-aided engineering

b. Computer-aided evaluation

c. Computer-aided design

d. Computer-aided manufacturing

C) Computer-aided design is correct answer

(Hope this helps can I pls have brainlist (crown)☺️)

______ focuses on filtering data as it enters the system to determine which data to keep and which to discard.

Answers

The answer is Stream processing

which of the following online creation tools will be used if a person wants to create a video presentation?

a. Piktochart
b. Prezi
c. Powtoon
d. Zamzar​

Answers

Answer:

C

Explaination:

Powtoon

A common attack in which a client's cookies, security tokens, or other personal information is obtained and used to impersonate the user is referred to as

Answers

Answer:

Identity Theft. i hope this helps :D

How to set encapsulation angular component.

Answers

Answer: anyone know?

Explanation:

HELP ME!!!!!!! %) select all the correct answer. What will be the output of using the element in the given HTML code? 1011 2 A. 10112 B. 10112 C. 21011 D. 21011

Answers

Answer:

A or B

Explanation:

I'm not sure I used HTML a bit but I am not a pro on it so this might be not correct

Tell me if I'm wrong :)

Answer:

The answer is B: 1011 with the two under

Explanation:

I got it correct on my test.

What are this Chinese logo map

Answers

Answer:

hope it's helpful to you

A user is troubleshooting a mobile device app that is displaying errors and has contacted the app manufacturer’s technical support team for assistance. The support technician needs specific information from the device about how the app is responding and what is happening to cause the errors.

Answers

Answer:

D. The method for retrieval is dependent on the specific app or device’s operating system.

which scenario describes a function provided by the transport layer?

Answers

The scenario that best describes a function provided by the transport layer of the open systems interconnection (OSI) model is: C. A student has two web browser windows open in order to access two web sites. The transport layer ensures the correct web page is delivered to the correct browser window.

OSI model is an acronym for open systems interconnection and it comprises seven (7) main layers, which typically starts from the hardware layers (layers in hardware systems) to the software layers (layers in software systems) and they include the following in sequential order;

Physical LayerData link LayerNetwork LayerTransport LayerSession LayerPresentation LayerApplication Layer

The transport layer accept data packets from session layer, breaks them into smaller units and then transmits (sends) them to the network layer, without any duplication of data.

In this scenario, a function provided by the transport layer of the open systems interconnection (OSI) model is transportation (transmission) of the correct web page (data) to the correct browser window (software application), especially through the use of source and destination port numbers assigned to the software application.

Read more: https://brainly.com/question/22883762

Your question is lacking the necessary answer options, so I will be adding them here:

A. A student is using a classroom VoIP phone to call home. The unique identifier burned into the phone is a transport layer address used to contact another network device on the same network.

B. A student is playing a short web-based movie with sound. The movie and sound are encoded within the transport layer header.

C. A student has two web browser windows open in order to access two web sites. The transport layer ensures the correct web page is delivered to the correct browser window.

D. A corporate worker is accessing a web server located on a corporate network. The transport layer formats the screen so the web page appears properly no matter what device is being used to view the web site.

unlike tv or newspaper ads, internet communications are interactive, and consumers can choose which messages and information they receive. for this reason, company web offerings can be tailor-made for the ________.

Answers

Companies often engage the services of Advertising firms to market their products. Company web offerings can be tailor-made for the consumers.

Advertising agencies are firms that makes, plan and handle the advertising needs of any business. They are known for handling negotiations creating tailored marketing campaigns.

A lot of agencies do not want to talk about pricing until they know what you can afford to spend.

Tailored content are delivered experiences that speak directly to customers.

This agencies uses their connections and resources to make one's campaign successful and cost-efficient.

Learn more from

https://brainly.com/question/23477855

Try to crack the code:

00110111 01001010 00110011 01011001 00111001 00100000 00110010 01001100 01000010 00110110 01000101 00100000 00110110 01001000 01010001 01010011 01001010

Answers

Answer:001101110010010100011011010110010011100100100000001100100100110001000010001101100100010100100000001101100100100001010001010101001101001010

Explanation:

i copied

Other Questions
A fresh start ! Essay 5(2) = help me please ill give brainlist Which court decision protected students rights to free speech as early as 1969?EarlTinkerActon Answer this in your own words and no copying (NO LINKS) The body paragraphsadequately explain, exemplify,define or in some other waysupport the topic sentence.O A TrueOB. FalseReset Selection an atom of ordinary hydrogen consists of an electron and a 33. Due to some error in a weighing scale, it shows the following reading when at rest (no weight is placed on it). Neerja measured her weight on this scale. The weight shown on the scale was 28 kg. What should she do to find out her correct weight?(A) Add 2 kg to the weight shown. (B) Subtract 2 kg from the weight shown.(C) Subtract 28 kg from the weight shown. (D) Add 4 kg to the weight shown Serenas average speed during her training run was 8 kilometers per hour over the 2 hours that she ran. What was the total distance that she ran?Use the formula d = rt, where d represents the distance, r represents the rate, and t represents the time.4 km Evaluate the expression for p = 2.4 and q = 8.Write your answer as a decimal or whole number.pq = How to convert acceleration to velocity. Why was Andrew Carnegie able to control the entire steel industry? The diagram below shows the same type of molecules in area A and area B. With the passage of time, some molecules move from area A to area B. This movement is the result of which process? 1) active transport2) diffusion3) transpiration4) respiration Someone plz help me :( Write the linear equation in slope-intercept form and simplify.4x + 13y = 7 How to factor a tri, quad, or polynomial. PLEASE HELPPPPPPPP!!!!!!!! Which claim about boasting does the author make in "The Fish I Didn't Catch"? Boasting makes a person look foolish. Boasting is a natural human tendency. Boasting ensures that credit is given. Boasting about undone work is motivating. A shipment of 8 computers contains 3 with defects. Find the probability that a sample of size 2, drawn from the 8, will not contain a defective computer.What is the probability that a sample of 2 of the 8 computers will not contain a defective computer?(Type an integer or a simplified fraction.) How do you Form an equation for x and then solve to find the value of x Molly can received her weekly paycheck and she earned a total of $339.25. If she makes$14.75 per hour, how many hours, h. did she work? Acid hydrolase, a digestive enzyme, would most likely be found in which organelle?