Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

the implementation of questions should be done in c++ 0.0 ARBA: 2021-01-21 20:50 VISARADO SUTANTO 143' 57 1 Write a program that asks the user

the implementation of questions should be done in c++ image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
0.0 ARBA: 2021-01-21 20:50 VISARADO SUTANTO 143' 57" 1 Write a program that asks the user for a positive integer value. The program should use TWO looping structures to get the sum of all the integers from 1 up to the number entered. For example, if the user enters 50, the loop will find the sum of 1, 2, 3, 4, ... 50. 4 Execution of the program would be: Please give me an integer (>1) to start: 50 The sum from 1 to 50 is 1275. (15.09) 2 527 U Ef 100.0 : 2021-01-21 20:50 VISARADO SUTANTO 143' 52" 3 4 2 Suppose of the University (ZJUT) wants to design an information quering system for the freshmen According to previous survey, the information needed most by freshmen are typically categorized as [M]ajor, (Campus, [S]cholarship and [H]istory. You are asked to help the university design such a system. 3 4 The information under each choice are: Campus: ZJUT has four campus, located in different cities in Zhejiang Province Major: ZJUT has all kinds of majors, covering human science, natural science, engineering, agriculture History: ZJUT has a history about 70 years. Scholarship: ZJUT provides different scholarship for the international students. Execution of the program would be: =========Information Query System=- 100.0 ARAU: 2021-01-21 20:50 VISARADO SUTANTO 143'41" 3 Monte Carlo is a method that minics the processe of random sampling to obtain numerical results. For example, consider a rectangle of size 2x2 which contains an incircle of radius 1 Putting this rectangle in an open area when it is raining, the amount of raindrops collected in the rectangle are propotional to the surface of the rectangle, the amount of rain drops collected in the incircle is propotional to the surface area of the incircle. That is rain in rectangle / rain in incirde 22/pi: 3 4 We can mimic the rain-drops as random points in Cartesian coordinates with (xy). By fixing -1 N incircle=1; 5) Repeat step 3-4) until I EN 6) approximate Plas: 4.0"N incirde /N 1 000 Os Spo 0.5 oo Odd -0.5 000

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Objects And Databases International Symposium Sophia Antipolis France June 13 2000 Revised Papers Lncs 1944

Authors: Klaus R. Dittrich ,Giovanna Guerrini ,Isabella Merlo ,Marta Oliva ,M. Elena Rodriguez

2001st Edition

3540416641, 978-3540416647

More Books

Students also viewed these Databases questions

Question

=+90 percent of all oil refineries) into several smaller companies

Answered: 1 week ago