1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Likurg_2 [28]
3 years ago
9

4.2 Code Practice: Question 1 Can someone help me write the code in python language?

Computers and Technology
1 answer:
alekssr [168]3 years ago
8 0

Answer:

number = int(input("Enter a number: "))

sum = number

c = 1

while (sum<=100):

   number = int(input("Enter a number: "))

   sum = sum + number

   c = c + 1

print("Sum: " + str(sum))

print("Numbers Entered: " + str(c))

Explanation:

Hope this helps lovely :)

You might be interested in
Marisol manages the online advertising campaigns for a chain of toy stores with both a physical and an online presence. Which Go
tatiyna

Answer:

Marisol must make use of the Shopping campaign for showing the image of her products, as well as advertise her company's online as well as the local inventory of the toys, as well as boost the traffic to their site and the local toy stores. These types of ads are displayed on Google Shopping which comes just after the search results and near the responsive and text ads.

Explanation:

Please check the answer section.

8 0
3 years ago
Which type of network allows backups and network security to be centrally located?
BlackZzzverrR [31]

Answer:

B

Explanation:

B is the answer.

3 0
2 years ago
Write a program to prepare the monthly charge account statement for a customer of CS CARD International, a credit card company.
WITCHER [35]

Answer:

import java.util.*;

import java.text.*;

class CreditCardBill

{

public static void main(String[] args)

{

Scanner sc = new Scanner(System.in);

NumberFormat defaultFormat = NumberFormat.getCurrencyInstance(Locale.US);

System.out.println("CS Card International Statement");

System.out.println("===============================");

System.out.print("Previous Balance: $");

double prevBalance = sc.nextDouble();

System.out.print("Additional Charges: $");

double addCharges = sc.nextDouble();

double interest;

if(prevBalance == 0)

interest = 0;

else

interest = (prevBalance + addCharges) * 0.02;

System.out.println("Interest: "+defaultFormat.format(interest));

double newBalance = prevBalance + addCharges + interest;

System.out.println("New Balance: "+defaultFormat.format(newBalance));

double minPayment;

if(newBalance < 50)

minPayment = newBalance;

else if(newBalance <= 300)

minPayment = 50.00;

else

minPayment = newBalance * 0.2;

System.out.println("Minimum Payment: "+defaultFormat.format(minPayment));

}

}

5 0
3 years ago
Illusions in physcology​
qaws [65]

<u>Illusions in Psychology​:</u>

An illusion is a mutilation of the faculties, which can uncover how the human mind typically sorts out and deciphers tangible incitement. Despite the fact that hallucinations twist our impression of the real world, they are commonly shared by a great many people.

They can happen for some reason, for example, the impact of light on an item, inadequate tangible data about an article, or mistakes in a person's handling of tactile subtleties.  

Most deceptions will, in general, hoodwink the eyes, ears, and skin, while there are a few fantasies that may misshape observation because of changes in interior body structures.

The three primary sorts of dreams incorporate optical fantasies, sound-related deceptions, and material figments. Likewise, Illusions give incredible insights into how the cerebrum forms data. Deductively, they can represent an issue for experimental research as they show the manners by which even direct perception can be deluding.

6 0
4 years ago
From everyday life, provide and discuss examples of :
lbvjy [14]

Answer:

Sequential Operations: Suppose we want to switch on the LED, fan and a PC. We can do it one by one and in a sequence. And it means step by step in a proper sequence, and that which is mentioned.

Conditional Operation: Suppose we are given a condition that if LED is switched on then you cannot switch on the PC. Such type is known as the conditional operation.

Iterative Operations: If you the number of times a given code is to be looped, or iterative, then we are dealing with the iterative operations.

In pseudo-code we represent them as:

Start

PC_State= Open

LED_State =Open

fan_State =Open

Stop

Condition Statement

If LED= Open

PC=Blocked

Iterative Statement:

For i =1 to 3

Open Device No <i>

And this way the three are different in everyday life, and hence in pseudocode.

Explanation:

Please check the answer section.

7 0
4 years ago
Other questions:
  • In Linux Operating System, what file extension is used forexecutable files?
    6·1 answer
  • Which of the following is not a danger of blogging
    7·2 answers
  • In this lab you used the sharing and storage management console to create a simple volume. what must you do to create a differen
    13·1 answer
  • Alice is an investor who has created a device controlled by an app that will water plants automatically. Alice has no experience
    9·1 answer
  • Fill in the blank
    15·1 answer
  • Which of the following best describes when a packet is addressed so that more than one destination can receive it and the first
    11·1 answer
  • WILL GIVE BRAINLEST!!!!!!!! 10 POINTS!!!!
    5·2 answers
  • What is the depth of the following tree?
    10·1 answer
  • When you are hired to develop a system for an organization. Is it important to follow all the requests/wants of the system owner
    14·1 answer
  • What is the maximum number of guesses it will take to find a number <br> between 1 and 64?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!