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
vaieri [72.5K]
3 years ago
6

Write an expression that will print "Dollar or more" if the value of num_cents is at least a dollar (100 cents is a dollar). Sam

ple output with input: 109 Dollar or more
Computers and Technology
1 answer:
Free_Kalibri [48]3 years ago
7 0

Answer:

num_cents = 109

if num_cents >= 100:

   print('Dollar or more')

else:

   print('not a dollar')

Explanation:

  • Assign the value of 109  to num_cents.
  • Check if num_cents value is greater than 100, then print dollar or more .
  • Else the value entered is less than 100 cents so it is not a dollar .
You might be interested in
Many of the internal OS services are provided by the ___________ module, which contains the most important operating system proc
patriot [66]

Answer:

Kernal module

Explanation:

Modules are pieces of code that can be loaded and unloaded into the kernel upon demand. They extend the functionality of the kernel without the need to reboot the system.

6 0
4 years ago
Can someone help me on how to start this essay?
mezya [45]

Answer:

Start off with an interesting introduction (add questions) make it interesting.

6 0
3 years ago
Read 2 more answers
Which city is the largest within the Andean and midlatitude countries? A. Buenos Aires, Argentina B. La Paz, Bolivia C. Santiago
Westkost [7]
My best guess would be either B. or C. 
Hope I helped:)
8 0
3 years ago
Read 2 more answers
What is HTML? Please answer 15 points
yuradex [85]
HTML is short for “HyperText Markup Language”. If you described a webpage like a body, HTML would be that body’s skeleton; it’s how we give different parts of a web page meaning.

In HTML, for instance, we can define a header, a main article section, and a footer for a page, which we can later style in another language called CSS (short for Cascading Style Sheets)
6 0
4 years ago
Read 2 more answers
Write a program that reads in non-negative integers and stores and displays distinct numbers (i.e., if a number appears multiple
slavikrds [6]

Answer:

See explaination

Explanation:

#include <iostream>

using namespace std;

#define MAX 1005

bool already_present(int data[MAX], int input, int size)

{

int i;

for(i=0;i<size;i++)

if(data[i] == input)

return true;

return false;

}

int read_stdin(int data[MAX])

{

int input;

int size=0;

while(true)

{

cout<<"Enter a non-negative integer (negative to quit): ";

cin>>input;

if(input<0)

break;

if(!already_present(data,input,size))

data[size++] = input;

}

return size;

}

void print_stdout(int data[MAX],int size)

{

int i;

cout<<"You entered\n";

for(i=0;i<size;i++)

cout<<data[i]<<" ";

cout<<endl;

}

int main()

{

int data[MAX],size;

size = read_stdin(data);

print_stdout(data,size);

return 1;

}

4 0
3 years ago
Other questions:
  • Assuming a user enters 25 as input, what is the output of the following code snippet? int i = 0; Scanner in = new Scanner(System
    11·1 answer
  • The Analysis phase of the SDLC examines the event or plan that initiates the process and specifies the objectives, constraints,
    10·1 answer
  • Which categories format cells
    14·2 answers
  • Dr. Robbins wants to know if there are different opinions regarding the value of public school education between Native American
    11·1 answer
  • Below is a recursive implementation of the factorial function. For what value of n will this function not produce the desired re
    8·1 answer
  • What is the value of the variable index after the Python code below is executed? word = 'bAnana' index = word.find('a')
    10·1 answer
  • Why does Microsoft release new versions of its Windows operating system every few years?
    9·2 answers
  • Determine the number of character comparisons made by the brute-force algorithm in searching for the pattern GANDHI in the text
    7·1 answer
  • Which changes the natural world? <br> technology <br> science <br> prototypes <br> feedback
    5·1 answer
  • Guyssss......urgent helppp plsss answerrrr
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!