Write a program that repeatedly asks the user to type in an integer until they input a multiple of 7

Answers

Answer 1

Answer:

 See the code in the explanation below

Explanation:

For this excersie we are going to be using C++, if you want me to produce the code in another language do let me know

// Online C++ compiler to run C++ program online

#include <iostream>

using namespace std;

int main()

{

int Number;

   do

{

 cout <<"Enter a  multiple of seven: ";

 cin >> Number;

 

 if(Number%7 == 0 ){

     cout<<"correct!!! the number is a multiple of seven";

 

 }

} while(Number%7 != 0);

}

   

   

 

   

   

   

   

       


Related Questions

What are the key components to planning a presentation? Check all that apply.
audience
conclusion
methods
purpose
thesis
title
topic

Answers

Answer:

I. audience

II. methods

III. purpose

IV. topic

Explanation:

Presentation can be defined as an act of talking or speaking formally to an audience in order to explain an idea, piece of work, project, and product with the aid of multimedia resources or samples.

Basically, any speaker who wish to create an effective presentation should endeavor to interact frequently with the audience by holding a conversation.

This ultimately implies that, to create an effective presentation, speakers are saddled with the responsibility of interacting more often with the audience by taking questions, making a joke, getting them to repeat informations loud at intervals etc.

Additionally, speakers are advised to be passionate and show enthusiasm during their presentation because it would enhance their ability to speak confidently and as such leading to an engaging presentation.

The key components to planning a presentation include the following;

I. Audience: these are the group of listeners to whom the speaker is making a presentation to.

II. Methods: the speaker should choose the most effective and efficient method to use in getting the message across to the audience (listeners).

III. Purpose: this is the main idea or reason for which the presentation is being created or done by the speaker.

IV. Topic: this is simply the title of the presentation and it describes the subject matter.

Suppose you have a certain amount of money in a savings account that earns compound monthly interest, and you want to calculate the amount that you will have after a specific number of months. The formula is as follows:

f = p * (1 + i)^t

• f is the future value of the account after the specified time period.
• p is the present value of the account.
• i is the monthly interest rate.
• t is the number of months.

Write a program that takes the account's present value, monthly interest rate, and the number of months that the money will be left in the account as three inputs from the user. The program should pass these values to a function thatreturns the future value of the account, after the specified number of months. The program should print the account's future value.

Sample Run

Enter current bank balance:35.7↵
Enter interest rate:0↵
Enter the amount of time that passes:100↵ 35.7↵

Btw, this does not work, but is presumably close to the answer.
p=float(input("Enter current bank balance:"))
i=float(input("Enter interest rate:"))
t=float(input("Enter the amount of time that passes:"))

print(p *(1+i)^t)

Answers

Answer:

The update code is:

p=float(input("Enter current bank balance:"))

i=float(input("Enter interest rate:"))

t=float(input("Enter the amount of time that passes:"))

print(p*(1+i)**t)

Explanation:

Required

Program to compute future value

Up to the third line, your program is correct.

The only correction that needs to be made is as follows:

On the fourth line, change p*(1+i)^t to p*(1+i)**t because Python use ** as raise to power and not ^

Type the correct answer in the box. Spell all words correctly.
Derek wants to share his digital portfolio with a wider audience. How can he do so?
Derek should publish his digital portfolio on the
, to show it to a wider audience.

Answers

Answer:

internet

Explanation:

Derek wants to share his digital portfolio with a wider audience. Then this can be done by the internet.

What is the internet?

An international network is a collection made up of linked networks that use standardized data exchange to provide a range of digital services.

Derek wants to share his digital portfolio with a wider audience. Then this can be done by the internet.

More about the internet link is given below.

https://brainly.com/question/13308791

#SPJ2

Which of the following are exclusively associated with copyright protection? (Select three.)

Right to reproduce small excerpts of a work

Right to apply for a patent


Right for anyone to display a work

Right to lend a work

Right to use a trademark

Right to make derivatives of a work

Right to reproduce a work

Answers

Answer:

Right to make derivatives of a work.

Right to reproduce a work.

Right to lend a work.

Explanation:

Just took the quiz on testout.

The rights which are exclusively associated with copyright protection are:

F. Right to make derivatives of a work. G. Right to reproduce a work. D. Right to lend a work.

Copyright protection has to do with an intellectual property law which makes it illegal for a person to copy the work of another, without approval, or adequate reference

As a result of this, we can see that the rights which are exclusively associated with copyright protection are the rights to make derivatives of a work, reproduce a work and to lend a work because they are the intellectual property of the author.

Therefore, the correct answers are options F, G, and D

Read more here:

https://brainly.com/question/23385572

Other Questions
What is the slope of the line y = 6x + 3?3-66-3 Adjectives and adverbs What is the measure of FGC? Pls help !! Will give brainliest What is the equation of the line in slope-intercept form? (5 points)Question 5 options:1) y = 36x 32) y = 3x + 363) y = 3x + 124) y = 12x + 3 a defamation suit for a famous person is harder to win than a defamation suit for a regular person. true or false SAP Inc. received a $1.5 million grant under its Small Business Innovation program. SAP invested the grant money and developed a system to remove metal contaminants from storm water in shipyards. The firm estimates that each shipyard spends $500,000 a year on storm water clean-up efforts. If SAP is able to sign up and retain four shipyards in the first year onwards, what is the present value (PV) of the project (net of investment) if the cost of capital for SAP is 14% per year Express 72km/h in meter per sec true or false: erosion takes very long to happen. How does the Church guide us to live as Catholics in a diverse world?How do our Catholic rituals and feasts teach us to respect dignity? Which is the most likely reason for storing patient information in a database?The information is integrated so that anyone, including health-care professionals and insurance companies, can freely access the information.The information is centralized and shared, which reduces errors, increases efficiency, and increases data integrity.The information is more secure because it is more difficult to breach the higher security provided through a database.The information is stored in a computer rather than in a paper file so it reduces the amount of paper that must be stored. I need Answer Immediately!!!!!!!!! Someone walked%s the length of this roomthen walked backward 4 the length of thisroom before walking forward / the lengthof the room and hiding the key there. Howfar across the room (as a fraction) is thekey? Use a "/" as a fraction bar in youranswer. which part of the body does the male sperm come from Identify like Terms 8x2 yx3 9x2 y2 5y Devin has a rectangular vegetable garden. He planted tomatoes in section of the garden with an area of 6 square yards. There were 30 square yards remaining for Devin to plant zucchini. Let g represent the total area of the garden. Which equation models the problem? Solve the equation to find the total area of the garden. g = brief summary about the Civil Rights movement. How do i find the answer to 6/2(1+298)? what does a magnet do? The price of a dozen eggs falls from $3 to $2.70. In response to this price change, the quantity supplied of eggs falls from 150,000 dozen eggs to 125,000 dozen eggs. What is the price elasticity of supply for eggs