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
KIM [24]
4 years ago
6

This is A C++ PROGRAM BTW!! Define a class named Money that stores a monetary amount. The class should have two private integer

variables , one to store the number of dollars and another to store the number of cents. Add accessor and mutator functions to read and set both member variables . Add another function that returns the monetary amount as a double .
In main(), test the implementation of your class with two different Money objects . Ask the user to enter values for dollars and cents and then display the value as a double .
Computers and Technology
1 answer:
inessss [21]4 years ago
7 0
Jasminee accoo i'm very disappointed in you, this was a assignment that you were to do. Can you explain yourself?
You might be interested in
Heads or tails
Pani-rosa [81]

import random

heads = 0

tails = 0

i = 0

while i < 1000:

   rnd_value = random.randint(1, 2)

   if rnd_value == 1:

       heads += 1

       print("heads")

   else:

       tails += 1

       print("tails")

   i += 1

print("Heads appeared {} times and tails appeared {} times".format(heads, tails))

I hope this helps!

5 0
3 years ago
Janis is preparing a financial document. She needs to use the dollar symbol placed above the number key 4. Which key will Janis
andreyandreev [35.5K]

C. Shift hold down to shift and then press 4

3 0
3 years ago
Read 2 more answers
Drag the tiles to the correct boxes to complete the pairs.
LiRa [457]

The matchup are:

  • information support and services - providing technical assistance to users
  • network systems - creating interactive materials
  • programming and software development - designing and developing applications for an organization's use
  • web and digital communications -developing and implementing an
  • organization's technology infrastructure

<h3>What is network system?</h3>

A network is known to be made up of a set of computers, servers, network devices, and other devices that are linked so that it can allow data sharing.

Therefore, The matchup are:

  • information support and services - providing technical assistance to users
  • network systems - creating interactive materials
  • programming and software development - designing and developing applications for an organization's use
  • web and digital communications -developing and implementing an
  • organization's technology infrastructure

Learn more about network systems from

brainly.com/question/1326000

#SPJ1

6 0
2 years ago
░░░░░░░░██████████████████
ELEN [110]

OMG YUHHH

( Also I need one more brainliset until I get expert )

7 0
3 years ago
Write a recursive function, displayFiles, that expects a pathname as an argument. The path name can be either the name of a file
timama [110]

Answer:

Here is the Python function:

import os   #module used to interact with operating system

def displayFiles(pathname):  #recursive function that takes a pathname as argument

  if (os.path.isdir(pathname)):  #checks if specified path (argument) is an existing directory

      for content in os.listdir(pathname):  #gets the list of all files and directories in the directory and iterates through the items of this list of directory

          contents = os.path.join(pathname, content)  #joins contents of path

          displayFiles(contents)  #calls function recursively

  else:  #if pathname refers to a file

      filename=pathname  #sets filename to pathname

      file = os.path.basename(filename)  #gets base name in specified path

      print("File Name: ", file) #displays the name of file

      with open(filename, "r") as contents:  #opens file in read mode

          print("Content:")  #prints Content:

          for lines in contents:  #iterates through the contents of file

              print(lines)   #displays the contents of file

Explanation:

The recursive function  displayFiles contains a single argument  pathname which can either be a pathname or a filename  . If the given argument is pathname for directory  , then the directory is opened and os.listdir returns a list containing the names of the entries in the directory given by pathname and append these contents in the list. Then this function is called recursively to print each file name and this function is applied to each name in the directory. However if the pathname refers to a file then the pathname is set to filename , the file is opened in read mode and the contents of the file are displayed.

8 0
4 years ago
Other questions:
  • Sometimes we write similar letters to different people. For example, you might write to your parents to tell them about your cla
    9·1 answer
  • C. you have already verified the routing table entries for r1, now execute the show run | section interface command to verify vl
    11·1 answer
  • Adding all the three primary colors-red, green, and blue-at maximum intensity produces the color _____, while adding any two of
    9·1 answer
  • Which criterion can be used to select the appropriate type of network media for a network?
    8·1 answer
  • What does the following code segment do?
    13·1 answer
  • You are an online training company and stream a lot of training videos from your
    12·1 answer
  • Which statement is true for rapid prototyping? (A. It creates a two-dimensional model of a part or a product, from the original
    8·2 answers
  • What is Moodle in information communication and Technology?​
    5·1 answer
  • Write a program that creates a two-dimensional array initialized with test data. Use any data type you wish. Declare a two-dimen
    9·1 answer
  • Topic: Graphs.1.) Bob loves foreign languages and wants to plan his courseschedule for the following years. He is interested in
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!